Page 1 of 1

VLC captured video stream not ogg

PostPosted: Mar 21st, '12, 20:24
by mark9117
Mageia 1 Linux
2.6.38.8-server-10.mga
VLC media player 1.1.12 The Luggage (revision exported)
VLC version 1.1.12 The Luggage (exported)

I am working on a script to capture a stream as an ogg file. The operant details are:

Code: Select all
cvlc  http://<stream_source> --sout file/ogg:test


This appears to produce a valid test file (including the "-vvv" option) with no errors of any kind. Unfortunately, attempting to play that file won't work in anything but VLC.

Does anybody have any idea what's going on here and what I should do to resolve it? I posed the questoin over at the VLC forums and nobody is touching it.

Thanks.

Mark

Re: VLC captured video stream not ogg

PostPosted: Mar 21st, '12, 22:41
by doktor5000
Where did you get the command from? You can get a working one by using the Media -> Convert/Save option, and using "Stream" on the lower-right-hand dropdown list next to "Convert/Save" button and according to the settings you pick, you'll see the command line used. Your command will only save the stream into a file, without transcoding it.

For reference, here's a small one-liner i use to convert any video in a particular folder to audio-only 128kbps MP3:

Code: Select all
for i in ./*; do cvlc -v "$i" :sout="#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100}:file{dst=\"$i.mp3\"}" vlc://quit \
done

Re: VLC captured video stream not ogg

PostPosted: Mar 22nd, '12, 21:33
by mark9117
doktor5000 wrote:Where did you get the command from?


The Internet.

You can get a working one by using the Media -> Convert/Save option, and using "Stream" on the lower-right-hand dropdown list next to "Convert/Save" button and according to the settings you pick, you'll see the command line used. Your command will only save the stream into a file, without transcoding it.

For reference, here's a small one-liner i use to convert any video in a particular folder to audio-only 128kbps MP3:

Code: Select all
for i in ./*; do cvlc -v "$i" :sout="#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100}:file{dst=\"$i.mp3\"}" vlc://quit \
done


K, this is a simple command to capture an http audio stream via the command line. I'm still interested in the info, though I've moved on to a very simple solution using wget.

Thanks for the attention on this.

Mark