[FFmpeg-user] Detect Missed or freezed sound, Video in DVB an restart the FFMPEG Command

Spyer spyer spyer_spyer at outlook.com
Fri May 5 19:14:04 EEST 2017

Hello, i use ffmpeg with Tvheadend to transcode DVB to my mobilephone. In some case I habe no sound, But Video or no Video, But sound, or the Video has freezer. After close ffmpeg and Start again its work Fine. How can i implement a automatic detection to restart ffmpeg?

Now my pipe is:

/usr/local/bin/ffmpeg \
-i $url \
-i /home/logo/HD.png \
-filter_complex overlay=main_w-overlay_w-10:main_h-overlay_h-10 \
-vcodec h264_qsv \
-b 2000k \
-minrate 2000k \
-maxrate 2000k \
-bufsize 2000k \
-preset fast \
-s 1280x720 \
-acodec aac \
-ab 128k \
-ar 44100 \
-ac 2 \
-strict \
-2 \
-metadata service_provider="Team" \
-metadata service_name=$name \
-f mpegts pipe:1

exit 0

Best reguards

More information about the ffmpeg-user mailing list