<div dir="auto">I was going through your thread, and you made no mention of how you configured your appsrc. Have you forgot to set the appsrc format to time ? Default is bytes.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 12 juill. 2019 17 h 40, jles <<a href="mailto:jlesquer@gmail.com">jlesquer@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Nicolas,<br>
<br>
Thanks for the help, <br>
<br>
Just FYI I'm using now mpegtsmux element instead mp4mux but results/issues<br>
are identical.<br>
<br>
Piece of code where the timestamps are done:<br>
.....<br>
        GST_BUFFER_PTS (buffer) = timestamp;<br>
        GST_BUFFER_DURATION (buffer) = gst_util_uint64_scale_int (1, GST_SECOND,<br>
(guint8) fps);<br>
        timestamp += GST_BUFFER_DURATION (buffer);<br>
.....<br>
Here there are a few the time stamp values and frame rates, for all capture<br>
images:<br>
<br>
  timestamp (nanoseconds): 77961018 fps: 29<br>
  timestamp (nanoseconds): 112443776 fps: 29<br>
  timestamp (nanoseconds): 146926534 fps: 29<br>
  timestamp (nanoseconds): 181409292 fps: 29<br>
  timestamp (nanoseconds): 215892050 fps: 29<br>
....<br>
<br>
And running "gst-discoverer-1.0 --verbose output.ts" I've got:<br>
<br>
  Analyzing file:///media/test/output.ts<br>
  Done discovering file:///media/test/output.ts<br>
<br>
  Topology:<br>
    container: video/mpegts, systemstream=(boolean)true, packetsize=(int)188<br>
      video: video/x-h264, stream-format=(string)byte-stream,<br>
alignment=(string)au, width=(int)1280, height=(int)1024,<br>
framerate=(fraction)46/1, interlace-mode=(string)progressive,<br>
chroma-format=(string)4:2:0, bit-depth-luma=(uint)8,<br>
bit-depth-chroma=(uint)8, parsed=(boolean)true,<br>
profile=(string)constrained-baseline, level=(string)4<br>
        Tags:<br>
          video codec: H.264<br>
<br>
        Codec:<br>
          video/x-h264, stream-format=(string)byte-stream,<br>
alignment=(string)au, width=(int)1280, height=(int)1024,<br>
framerate=(fraction)46/1, interlace-mode=(string)progressive,<br>
chroma-format=(string)4:2:0, bit-depth-luma=(uint)8,<br>
bit-depth-chroma=(uint)8, parsed=(boolean)true,<br>
profile=(string)constrained-baseline, level=(string)4<br>
        Additional info:<br>
          None<br>
        Stream ID:<br>
f623b2db448562f44acc3c45398a9f6ff43288c3244e8cdf2d776c577693743d:1/00000041<br>
        Width: 1280<br>
        Height: 1024<br>
        Depth: 24<br>
        Frame rate: 46/1<br>
        Pixel aspect ratio: 1/1<br>
        Interlaced: false<br>
        Bitrate: 0<br>
        Max bitrate: 0<br>
<br>
  Properties:<br>
    Duration: 0:00:00.487500111<br>
    Seekable: yes<br>
    Tags:<br>
        video codec: H.264<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div>