Page 1 of 1

0kb streaming audio file

Posted: 04 Nov 2011 02:58
by arkennedy75
I'm trying to record a m3u url with VLC using a batch file. The output file is 0 kb. Here is my bat file:

"C:\Program Files\VideoLAN\VLC\vlc.exe" http://www.surfmusic.de/media/wtvn-am.m3u :sout=#duplicate{dst=std{access=file,mux=raw,dst=C:\Radio\test_028.mp3}}

Any ideas why my output file is 0 kb? Thank you.

Re: 0kb streaming audio file

Posted: 04 Nov 2011 06:25
by bat999
. Here is my bat file:

"C:\Program Files\VideoLAN\VLC\vlc.exe" http://www.surfmusic.de/media/wtvn-am.m3u :sout=#duplicate{dst=std{access=file,mux=raw,dst=C:\Radio\test_028.mp3}}

Any ideas why my output file is 0 kb?
Hi
That stream is aac, not mp3. :?

This command will work with VLC for your bat file:-

Code: Select all

"C:\Program Files\VideoLAN\VLC\vlc.exe" http://www.surfmusic.de/media/wtvn-am.m3u --sout "#std{access=file,mux=mp4,dst=C:\Radio\test_028.m4a}"
8)

Re: 0kb streaming audio file

Posted: 04 Nov 2011 14:06
by arkennedy75
Thank you! That works.

One more question, I would like the output file name to include the record date. I saw the script below from a couple other threads to add the date. When I add the date script to my bat file it doesn’t record the stream or add the output file. Is the date script syntax correct? Thank you.

"C:\Program Files\VideoLAN\VLC\vlc.exe" http://www.surfmusic.de/media/wtvn-am.m3u --sout "#std{access=file,mux=mp4,dst=C:\Radio\mystreamfile%date:~7,2%_%date:~4,2%_%date:~10,4%.m4a}