VLC captured video stream not ogg

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

VLC captured video stream not ogg

Postby mark9117 » Mar 21st, '12, 20:24

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
Let's just reboot everything all the time.
User avatar
mark9117
 
Posts: 395
Joined: Sep 12th, '11, 20:32
Location: Eastern New Mexico -- Not Hell, but you can see it from here.

Re: VLC captured video stream not ogg

Postby doktor5000 » Mar 21st, '12, 22:41

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18015
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: VLC captured video stream not ogg

Postby mark9117 » Mar 22nd, '12, 21:33

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
Let's just reboot everything all the time.
User avatar
mark9117
 
Posts: 395
Joined: Sep 12th, '11, 20:32
Location: Eastern New Mexico -- Not Hell, but you can see it from here.


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest