Page 1 of 1

vlc linux command line saving a stream

Posted: 18 Mar 2008 01:43
by lunix
I am using SUSE 10.3 kernel 2.6.22.17-0.1-default #1 SMP
VLC media player 0.8.6d Janus
Intel(R) Pentium(R) 4 CPU 3.00GHz
Nvidia GeForce 6500
82801G (ICH7 Family) AC'97 Audio Controller

I want to record to a file via cron calling a bash script.
This has been working for years via streamripper but
the source has now changed from mp3 stream to asf.
I can listen to the stream via VLC which is good news.

Apparently streamripper doesn't handle asf streams.
However, vlc does.

What I want to know how to do is to not have the vlc GUI
player show up on the screen and how to
cause VLC to convert the .ASF file to MP3 or OOG
creating a file during that process. It would be ok to
just save the .ASF file too if that is needed.

I have been reading the VLC man pages but I am finding
it turse (what else is new) and over my head.

Re: vlc linux command line saving a stream

Posted: 18 Mar 2008 12:11
by EdoM
same problem here

i managed to transcode the stream as:

vlc -vvv _STREAM_URL_ --sout '#transcode{ab=128,aenc=vorbis,channels=2}:standard{access=file,mux=ogg,dst="prova.ogg"}'

but i can't fix the recording duration..
i found a --stop-time option but maybe is working only in a windows enviroment!

Re: vlc linux command line saving a stream

Posted: 20 Mar 2008 21:08
by muse
I am using SUSE 10.3 kernel 2.6.22.17-0.1-default #1 SMP
VLC media player 0.8.6d Janus
Intel(R) Pentium(R) 4 CPU 3.00GHz
Nvidia GeForce 6500
82801G (ICH7 Family) AC'97 Audio Controller

I want to record to a file via cron calling a bash script.
This has been working for years via streamripper but
the source has now changed from mp3 stream to asf.
I can listen to the stream via VLC which is good news.

Apparently streamripper doesn't handle asf streams.
However, vlc does.

What I want to know how to do is to not have the vlc GUI
player show up on the screen and how to
cause VLC to convert the .ASF file to MP3 or OOG
creating a file during that process. It would be ok to
just save the .ASF file too if that is needed.

I have been reading the VLC man pages but I am finding
it turse (what else is new) and over my head.

Hi, i'm using cron+vlc & scheduler to record an .asf stream every week.. i wrote a tutorial here :

http://www.insanet.org

It's in italian.. i think i'll translate it in english soon..

Re: vlc linux command line saving a stream

Posted: 22 Mar 2008 23:35
by lunix
Thanks to those that responded. I now have it working properly
but would have never succeeded without your help.

However, here is another mystery. When I used streamripper
to record the very same 3 hour program to MP3 the
resulting file was around 32,000,000 bytes.

VLC recording to an ogg file, which I always thought
was more efficient on disk space, came out around
200,000,000 bytes. Quit a big difference.

This is all voice I am recording and not music.

Any suggestions for how to make the resultant file smaller?

Re: vlc linux command line saving a stream

Posted: 23 Mar 2008 06:20
by lunix
I now have the byte count down to 65,000.000 roughly.
I simply dropped the audio bit rate from 128KBPS to 48KBPS.
I would have liked to have taken it down to 24KBPS but VLC
wouldn't deal with that value for some reason.