[FFmpeg-user] Tnascode H.264 HLS to MPEG2 UDP TS (for DVB-C broadcast)

Andrey Utkin andrey.krieger.utkin at gmail.com
Wed Feb 27 17:14:02 CET 2013


2013/2/27 Roman A. Tarasov <roman at barsmedia.ru>:
> Hello. Need some help.
> I need to transcode stream h.264  ( get by the HLS) and broadcast it to
> DVB-C in MPEG2 by UDP.
>
> ffmpeg.exe -muxpreload 30 -re -threads 0 -i
> "http://127.0.0.1/stream.m3u8" -c:v mpeg2video  -pix_fmt yuv420p
> -me_method epzs -g 50 -b:v 5000k -bt 300k -c:a mp2 -ac 2 -b:a 256k -ar
> 48000 -bf 2 -b_strategy 1 -trellis 2 -cmp 2 -subcmp 2 -vstats -mbd rd
> -copyinkf -flags +ilme+ildct+qprd+mv0 -flags2 +fast+skiprd -fflags
> +genpts -metadata service_provider="TestProv" -metadata
> service_name="TestChannel" -mpegts_start_pid 500 -streamid 1:700 -f
> mpegts -tune zerolatency
> "udp://127.0.0.1:10000?pkt_size=1316&ttl=64&buffer=7000000"
>
> Now I use the following command:
>
> Existing problems:
> 1. Random hangs (on the server with Xeon E5450 2.4Ghz loaded by 25-30%),
> even when reading files from a local web server

Please provide full uncut console output, with option -loglevel debug
Check that you use recent version.

> 2. HLS in the playlist starts to play with the predictions of the last
> movie, and not from the beginning of the playlist.

Please elaborate what you mean.

> 3. Bitrate jumps from 4000 to 6000.

Maybe try x264 video encoder, it may be more flexible and developed.
Maybe it will control bitrate more precisely.
BTW -tune zerolatency is x264 encoder option, mpeg2video encoder does
not support it.

-- 
Andrey Utkin


More information about the ffmpeg-user mailing list