Page 1 of 1

Streaming DivX and TV

Posted: 24 Nov 2003 12:26
by dignified
I have been able to stream certain MPEGs doing a unicast stream in vls but I want to be able to stream any type of file, namely all my divX. How can I do this?

Also, I finally got my TV card set up. It is just a simple WinTV card with plain DVB-T. I want to stream my cable, however in the docs it says I need a dvbrc file. I have no clue how to set one of these up. Does anyone have one I can use?

-thanx
ryan

Re: Streaming DivX and TV

Posted: 24 Nov 2003 13:12
by zorglub
I have been able to stream certain MPEGs doing a unicast stream in vls but I want to be able to stream any type of file, namely all my divX. How can I do this?
You should use VLC for this (namely the stream output functions). This is documented.
Also, I finally got my TV card set up. It is just a simple WinTV card with plain DVB-T. I want to stream my cable, however in the docs it says I need a dvbrc file. I have no clue how to set one of these up. Does anyone have one I can use?
If you use Linux, you can use the satscan program to create your dvbrc file (this file is the list of all programs available on a satellite)

If you use Windows, you cannot stream satellite or cable, except maybe using DirectShow, but for this you need to wait the 0.7.0-test1 version that is due out within one or two days.

Posted: 24 Nov 2003 13:53
by dignified
I can use tvtime to watch tv and mencoder to record it but I'm trying to scan right now with the 'scan' program packaged with linux-dvb and I can't get it to work. Here is the error it gives me:

root@iggy:/home/the251/dl/linuxtv-dvb-1.0.1/apps/scan# ./scan -c
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
main:1768: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 2 No such file or directory

I don't have these devices. Everything is coming from /dev/video0 I believe for tvtime and mencoder.

Posted: 24 Nov 2003 15:40
by zorglub
Ok, sorry, I did not know these devices.

If it comes from /dev/video0, then it is not really DVB-T, it is already video.

Try the v4l access, I think this should be the right one to use for you

Posted: 24 Nov 2003 16:47
by dignified
I can record TV using v4l drivers and mencoder. I am trying to get the mencoder to redirect to stdout and then pipe that in to vls to stream tv. But none of this is working.

I can only output to an avi file. I am using this syntax:

mencoder -tv driver=v4l:width=640:height=480:norm=NTSC:adevice=/dev/dsp:forceaudio:forcechan=1 tv:// -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1200 -oac mp3lame -lameopts cbr:br=128:mode=3 -endpos 0:00:05 -o out.avi

With this codec the out.avi won't stream using vls either so I need to find a codec that will let me stream.

Posted: 24 Nov 2003 17:02
by zorglub
Hello,
With this codec the out.avi won't stream using vls either so I need to find a codec that will let me stream.
You should try to encode your stream directly with VLC or VLS rather than mencoder.

Have a look here: http://www.videolan.org/doc/videolan-ho ... oding.html
(this example encodes to MPEG4)

(Note: vls can't stream avi files, anyway, you must use vlc stream output for this to work)