Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 17th January 2024, 21:54   #1  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 997
ffmpeg command help

I want wav in and wav out, and... mp3 conversion in the middle as "filter". And all that working in one instance.

Code:
ffmpeg -i in.wav out.wav
VoodooFX is offline   Reply With Quote
Old 17th January 2024, 22:56   #2  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,844
what do you mean with "in the middle"? You want to encode to wav but pack in an mp3 stream "in the middle"? I don't think this is possible
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 17th January 2024, 23:27   #3  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 997
In "the middle" I want to encode to mp3 and decode to wav.
Who knew that degrading audio with mp3 can be useful as some magic "filter"...

Actually I solved it with pipe, still interested if it can be done without pipe.
VoodooFX is offline   Reply With Quote
Old 18th January 2024, 14:04   #4  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,844
Don't think it's possible without piping.
kolak is offline   Reply With Quote
Old 18th February 2024, 22:10   #5  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 997
@Jiyasharma

Your example writes mp3 to wav, I meant "wav" as PCM wav.
VoodooFX is offline   Reply With Quote
Old 19th February 2024, 03:14   #6  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,428
The facetious answer? Take the code for LAME's psychoacoustics model(s) and make it into a filter library that just does generic processing on PCM samples so it could be inserted into arbitrary audio pipelines.

Barring that, you'd have to study the exact steps those models perform and attempt to replicate it using the audio filters in libavfilter, SoX, etc. It almost certainly won't be 1:1, but you might be able to get close.
qyot27 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:26.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.