Since I completely dead in the water getting smem working - I'm looking for alternatives.
I need to extract audio from mp4 and produce a WAV or PCM file - hence my interest in smem in another post
I found this on the WiKi
vlc -I dummy -vvv "input.mp3" --sout=#transcode{acodec=s16l,channels=2,ab=128,samplerate=44100}:standard{access=file,mux=wav,dst="output.wav"} vlc://quit
This works and does exactly what I want ... except I want to do it NOT by running vlc.exe - but from my program using libvlc.
I revised my creation arg list to that below and it works beautifully
const char * const vlc_args[] = {
"-I", "dummy", // No special interface
"--ignore-config", // Don't use VLC's config
"--plugin-path=./plugins",
"--extraintf=logger", // Log anything
"--verbose=2", // Be much more verbose then normal for debugging purpose
"--sout", "#transcode{acodec=s16l,channels=2,ab=128,samplerate=44100}:standard{access=file,mux=wav,dst=\"output.wav\"}"
It works in my libvlc program but I don't know how to detect when the conversion is completed and how to close the output file except by closing the program.
Question - can you point me in the direction to documentation that would help me identify when the conversion was complete and how to close the output file (what libvlc call returns this status and performs output file close)
That way --- I can monitor the status, then rename the out file to the name I want ... and can process multiple files without having to restart after each one.
Thanks.
Joe