Fixing DTS in h264 video during the conversion to mp4
Monyz Wacon
monyz.ww at gmail.com
Sun Feb 28 15:19:57 UTC 2016
Hello,
I'm trying to wrap h.264 video to mp4 container. The conversion is done in
this way:
gst-launch-1.0 filesrc location=test.h264 ! h264parse ! qtmux ! filesink
location="test.mp4"
The problem is that during the playback using playbin, there is just shown
a static image from the video for several seconds and nothing more. The
command is:
gst-launch-1.0 playbin uri=file:///home/monyz/test/test.mp4
The problem doesn't occur with mplayer - I am able to playback it. However
there are printed warnings like:
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f3f4cdf4600]Non-increasing DTS in stream 0:
packet 2 with DTS -140462610, packet 3 with DTS -140462610
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f3f4cdf4600]Non-increasing DTS in stream 0:
packet 3 with DTS -140462610, packet 4 with DTS -140462610
[...]
When the video is converted using avconv, then I am able to playback it
with gstreamer playbin plugin:
avconv -i test.h264 -c copy test.mp4
however there are warnings during the conversion about DTS like:
Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing
to 1. This may result in incorrect timestamps in the output file.
Non-monotonous DTS in output stream 0:0; previous: 1, current: 0; changing
to 2. This may result in incorrect timestamps in the output file.
[...]
Is there a way to fix these DTS with gstreamer during the conversion?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160228/3cfbd4cf/attachment.html>
More information about the gstreamer-devel
mailing list