Page 1 of 1
transcode and Stream live TV
Posted: 10 Jan 2010 22:58
by wakelt
Greetings All;
I have an Hdhomerun tv tuner that streams out mpeg2 over IP. I'd like to use VLC the transcode the mpeg2 to h264
and stream it out in real time (a couple seconds delay is fine). Can VLC do this ??
Any insight would be much appreciated.
thanks,
wk
Re: transcode and Stream live TV
Posted: 11 Jan 2010 17:27
by RĂ©mi Denis-Courmont
Yes, if your CPU is powerful enough and if your VLC build includes h264 encoding (i.e. the x264 plugin).
Re: transcode and Stream live TV
Posted: 13 Jan 2010 05:20
by wakelt
Thanks so much for the reply..
How would such a setup be configured ??
Would it be a 2 step process:
1) start VLC converting the mpeq2 to h264, and save to file
2) start a second VLC, that streams from the file to the network ??
Any tips/suggestions would be appreciated.
thanks,
walter
Re: transcode and Stream live TV
Posted: 15 Jan 2010 14:18
by rh
for instance you can do this:
Streaming machine:
cvlc -d <SourceMedia> :http-caching=4000 :sout="#transcode{vcodec=h264,vb=800,scale=1,acodec=mp4a,ab=64,channels=2,samplerate=44100,audio-sync,height=220}:duplicate{dst=std{access=http,mux=asf,dst=<IPStreamingMachine>:<PortAbove2048>}}"
Client:
open VLC Networkstream http://<IPStreamingMachine>:<PortAbove2048>
There are many useful tips in this forum and the vlc wiki
Re: transcode and Stream live TV
Posted: 15 Jan 2010 22:08
by wakelt
I don't believe the last post properly addresses what I'd like to do..
I'd like VLC to rx mpeg-2 from the network, and on the fly, transcode it to h264, and then stream
it out to a VLC client.
Unless I'm misunderstanding the previous post (which is very possible), I believe its referring
to streaming from a VLC streamer to VLC client. I need to know how to setup the streamer
to take mpeg-2 from the network and transcode it in real-time, then stream out.
thanks again..
Re: transcode and Stream live TV
Posted: 18 Feb 2010 22:52
by doug4321
:bump
Does anyone know if this is possible? I need to stream a stream also using the HDHomeRun.
I have the stream working from the HDHomeRun but I can't get that stream to stream.
Re: transcode and Stream live TV
Posted: 16 May 2010 22:44
by diegodambra
Yes, absolutely possible if you've enough CPU power.
Something like this should do it - depending on CPU power available tweak vb, scale, fps, ab, channels, samplerate and possible other settings.
IP_ADDR = IP address of the machine that should convert the stream
PORT = TCP port remote clients must connect to
Code: Select all
#set channel and program
hdhomerun_config FFFFFFFF set /tuner1/channel auto:FREQUENCY
hdhomerun_config FFFFFFFF set /tuner1/program NUMBER
#setup stream and transcode it
cvlc udp://@:5000 :sout="#transcode{vcodec=h264,vb=600,scale=0.5,deinterlace,fps=20,acodec=mp4a,ab=64,channels=1,samplerate=11250,venc=x264{keyint=20,bframes=0}}:standard{access=http,mux=ts,dst=IP_ADDR:PORT}" -v
#ask hdhomerun to begin streaming
sleep 2
hdhomerun_config FFFFFFFF set /tuner1/target IP_ADDR:5000
To view the converted stream on a remote client, simply start VLC -> Open Network Stream... -> Protocol: HTTP, Address: IP_ADDR:PORT -> Play