adding video stream to internet radio - CPU usage

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
michaeldjcox
Blank Cone
Blank Cone
Posts: 61
Joined: 08 Dec 2008 13:06

adding video stream to internet radio - CPU usage

Postby michaeldjcox » 08 Jan 2009 08:38

I'm attempting to use VLC to get a rather video-centric media center to do internet radio by adding a video stream to internet radio e.g.

cmd /c start \"VLC\" \"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --intf=telnet -vvv EMPTY.MPG --input-slave=INTERNET_RADIO_STATION --sout=\"#transcode{vcodec=mp2v,vb=800,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst=NEW.MPG}}\"

(your probably asking why, I know, I know its a long story)

This approach is clearly a very CPU intensive solution to this problem.

Is it possible to reduce the CPU usage with the above command line but get perfect audio?

If I find the right EMPTY.MPG file would that reduce the CPU usage?

I'm currently using an episode of family guy but perhaps a steady blank screen would be better?

Many thanks for any help

Michael

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: adding video stream to internet radio - CPU usage

Postby Jean-Baptiste Kempf » 08 Jan 2009 11:40

If you do that with a complete interface, does it work better?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

michaeldjcox
Blank Cone
Blank Cone
Posts: 61
Joined: 08 Dec 2008 13:06

Re: adding video stream to internet radio - CPU usage

Postby michaeldjcox » 08 Jan 2009 18:34

I removed the --intf=telnet so that the GUI appears.

It seemed to use slightly more CPU with the GUI.

michaeldjcox
Blank Cone
Blank Cone
Posts: 61
Joined: 08 Dec 2008 13:06

Re: adding video stream to internet radio - CPU usage

Postby michaeldjcox » 08 Jan 2009 18:52

I also tried swapping EMPTY.MPG and INTERNET_RADIO_STATION around so that the mpg is the input-slave

But that doesn't seem to work at all - any ideas?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: adding video stream to internet radio - CPU usage

Postby Jean-Baptiste Kempf » 09 Jan 2009 01:44

The CPU required is for the transcoding.
If you play and not transcode, does it take much CPU?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

michaeldjcox
Blank Cone
Blank Cone
Posts: 61
Joined: 08 Dec 2008 13:06

Re: adding video stream to internet radio - CPU usage

Postby michaeldjcox » 13 Jan 2009 08:13

Yes the CPU is spent transcoding.

I have managed to achieve my objectives by lowering the video bit rate and reducing the size of the video.

Thanks for your help.

nthorwir
New Cone
New Cone
Posts: 1
Joined: 19 Mar 2009 06:44

Re: adding video stream to internet radio - CPU usage

Postby nthorwir » 19 Mar 2009 06:49

michaeldjcox:
this is interesting you managed to merge the files. I've seen several unanswered questions about it.
I could not reproduce your solution, using e.g.
--input-slave=http://www.radioparadise.com/musiclinks/rp_128-1.m3u as RADIO_STATION,
a file with a 1fps frm rate that plays fine in vlc. The resulting output NEW.MPG does not have sound for me.
Do you use windows, XP ? and vlc 0.9.8a ?
Thanks!


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: JanB1 and 92 guests