avdec_h264 and output-corrupt

Peter Randeu peter.randeu at spintower.eu
Mon Oct 17 07:38:04 UTC 2016


Hello everyone,

Doing some experiments with avdec_h264 (Debian Gstreamer packages 
version 1.8.3-1) and packet loss, I am wondering what the 
"output-corrupt" property of avdec_h264 does?

I have the following test pipe:

gst-launch-1.0 \
  videotestsrc pattern=ball is-live=true ! \
  x264enc bitrate=2048 key-int-max=60 ! \
  video/x-h264,profile=baseline ! \
  identity drop-probability=0.05 ! \
  h264parse ! \
  avdec_h264 output-corrupt=false ! \
  xvimagesink \
  --gst-debug=*av*:9 2>&1 | grep corrupt

No matter how I set "output-corrupt", corrupt frames are always 
displayed. According to the debug output, avdec_h264 never detects a 
corrupt frame and always prints:
libav gstavviddec.c:1381:gst_ffmpegviddec_video_frame:<avdec_h264-0> 
corrupted frame: 0

Is that behavior intended?
Is there another way to detect incorrect decoded frames?

Thanks,
Peter


More information about the gstreamer-devel mailing list