transcode and Stream live TV

About encoding, codec settings, muxers and filter usage
wakelt
New Cone
New Cone
Posts: 8
Joined: 06 May 2009 20:38

transcode and Stream live TV

Postby wakelt » 10 Jan 2010 22:58

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15263
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: transcode and Stream live TV

Postby Rémi Denis-Courmont » 11 Jan 2010 17:27

Yes, if your CPU is powerful enough and if your VLC build includes h264 encoding (i.e. the x264 plugin).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

wakelt
New Cone
New Cone
Posts: 8
Joined: 06 May 2009 20:38

Re: transcode and Stream live TV

Postby wakelt » 13 Jan 2010 05:20

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

rh
Cone that earned his stripes
Cone that earned his stripes
Posts: 158
Joined: 21 Sep 2006 13:11
VLC version: 2.0.2
Operating System: Lin / Win / Andr
Location: Germany

Re: transcode and Stream live TV

Postby rh » 15 Jan 2010 14:18

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
scarcely you do it right it works ...
Greetings, rh

wakelt
New Cone
New Cone
Posts: 8
Joined: 06 May 2009 20:38

Re: transcode and Stream live TV

Postby wakelt » 15 Jan 2010 22:08

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..

doug4321
New Cone
New Cone
Posts: 1
Joined: 18 Feb 2010 22:39

Re: transcode and Stream live TV

Postby doug4321 » 18 Feb 2010 22:52

: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.

diegodambra
New Cone
New Cone
Posts: 1
Joined: 16 May 2010 22:19

Re: transcode and Stream live TV

Postby diegodambra » 16 May 2010 22:44

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 5 guests