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

Roman A. Tarasov roman at barsmedia.ru
Wed Feb 27 16:47:24 CET 2013


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 
2. HLS in the playlist starts to play with the predictions of the last
movie, and not from the beginning of the playlist. 
3. Bitrate jumps from 4000 to 6000. 
4. I cannot adjust the buffering of input and output (need preload  ~30
seconds of input stream and ~1 second output buffer). 

In VLC errors:

main warning: buffer way too early (-126202), clearing queue
main warning: timing screwed, stopping resampling
main debug: audio output is starving (-822504), playing silence
main warning: buffer too late  (75712), up-sampling
main warning: timing screwed, stopping resampling
main warning: buffer too late  (135950), up-sampling
main warning: buffer way too late (199666), dropping buffer
main warning: buffer way too late (181035), dropping buffer
main warning: resampling stopped after 7038679 usec (drift: -24118)

Please, help me configure ffmpeg for TV channel broadcasting.

WBR, Roman.


More information about the ffmpeg-user mailing list