h264parse: Calculate PTS from DTS (and vice-versa)
Submitted by Roman Gaufman
Link to original bug (#659489)
Description
GST_DEBUG=*:2 gst-launch filesrc location=bluecherry_test.raw ! h264parse ! mp4mux ! filesink location=test.mp4
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.020372638 31723 0x250b600 WARN codecparsers_h264 gsth264parser.c:1697:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0
0:00:00.020507003 31723 0x250b600 WARN qtmux gstqtmux.c:3217:gst_qt_mux_video_sink_set_caps:<mp4mux0>
pad video_00 refused caps video/x-h264, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au
0:00:00.020542600 31723 0x250b600 WARN baseparse gstbaseparse.c:2738:gst_base_parse_loop:<h264parse0>
error: streaming stopped, reason not-negotiated
ERROR: from element /GstPipeline:pipeline0/GstH264Parse:h264parse0: GStreamer encountered a general stream error.
Additional debug info:
gstbaseparse.c(2738): gst_base_parse_loop (): /GstPipeline:pipeline0/GstH264Parse:h264parse0:
streaming stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
gst-typefind bluecherry_test.raw
bluecherry_test.raw - video/x-h264, stream-format=(string)byte-stream
Full debug here: http://itstar.co.uk/gst-h264parse-mp4mux-debug.log
Test file here: http://itstar.co.uk/bluecherry_test.raw