vlc linux command line saving a stream

*nix specific usage questions
lunix
New Cone
New Cone
Posts: 5
Joined: 18 Mar 2008 01:15
VLC version: 2.2.2-5
Operating System: Linux
Location: Felton, CA USA

vlc linux command line saving a stream

Postby lunix » 18 Mar 2008 01:43

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.

EdoM
New Cone
New Cone
Posts: 2
Joined: 18 Mar 2008 12:07

Re: vlc linux command line saving a stream

Postby EdoM » 18 Mar 2008 12:11

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!

muse
Blank Cone
Blank Cone
Posts: 30
Joined: 18 Jul 2006 10:31
VLC version: 0.86c
Operating System: Linux
Location: Italy
Contact:

Re: vlc linux command line saving a stream

Postby muse » 20 Mar 2008 21:08

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..
The only winning move is not to play

lunix
New Cone
New Cone
Posts: 5
Joined: 18 Mar 2008 01:15
VLC version: 2.2.2-5
Operating System: Linux
Location: Felton, CA USA

Re: vlc linux command line saving a stream

Postby lunix » 22 Mar 2008 23:35

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?

lunix
New Cone
New Cone
Posts: 5
Joined: 18 Mar 2008 01:15
VLC version: 2.2.2-5
Operating System: Linux
Location: Felton, CA USA

Re: vlc linux command line saving a stream

Postby lunix » 23 Mar 2008 06:20

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.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 8 guests