It just drives me crazy. VLC simply can't save to file, the file is always 0 bytes. Not from the GUI, nor (following the few posts available) from the CLI.
It's a syntax issue. It's cross-platform. Tried Linux and Windows, same thing--0 bytes.
Even the automagically-generated stream output string you find in the GUI is wrong.
The VLC folks must finalize their CLI syntax once and for all and stick to it.
Anyway, I found this clue (luckly, it pertains to the current version of VLC, but wait! It's going to be obsolete just as soon as the new syntax is upgraded/improved )
http://forum.videolan.org/viewtopic.php?f=4&t=63879
So, here it is:
Code:
vlc http://URL-of-your-radio-feed --sout="#transcode{acodec=mpga,ab=128,channels=2,samplerate=44100}:duplicate{dst=std{access=file,mux=raw,dst=/home/user/audiotest.mp3}}"
Or, if you want to listen at the same time, add this at the end: .../user/audiotest.mp3},dst=display}
So the complete command is:
Code:
vlc http://URL-of-your-radio-feed --sout="#transcode{acodec=mpga,ab=128,channels=2,samplerate=44100}:duplicate{dst=std{access=file,mux=raw,dst=/home/user/audiotest.mp3},dst=display}"
Of course, change /home/user/audiotest.mp3 to the appropriate path/filename.
It's the position of the double quotes that did the trick for me. Other posts suggest something like
'--sout=#transcode.......}'
The single quotes don't work. No single quotes don't work either.
Oh, BTW: this won't fix your .ogg problem. But at least you won't get a 0-byte file...
Good luck.
Bookmarks