<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 2 sept. 2021 16 h 45, Hayk Avetisyan via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Just one note. You can use this more simple pipeline:<br><b>gst-launch-1.0 uridecodebin uri=<a href="https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm" target="_blank" rel="noreferrer">https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm</a> ! x264enc ! mp4mux ! filesink location=sintel_trailer.mp4</b></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">With default configuration, x264enc will introduce a shift that would lead to negative DTS. As DTS are unsigned in GStreamer, we workaround by shifting forward the timestamp, and then offsetting back using the GstSegment.</div><div dir="auto"><br></div><div dir="auto">If this is your case, this isn't a bug and should not cause any issue, as you will use running time in your muxer.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 2, 2021 at 11:13 PM Hayk Avetisyan <<a href="mailto:hayka@deepcraft.io" target="_blank" rel="noreferrer">hayka@deepcraft.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi experts,<br><br>i create an mp4 video from webm source video. The segment's start at the source webm video definitely is 0 but in mp4 file the segment-start is 0.083s.<br>The pipeline is the following:<br><b>gst-launch-1.0 filesrc location=<path/sintel_trailer.webm> ! decodebin ! x264enc ! mp4mux ! filesink location=

<path/sintel_trailer.mp4><br></b><br><ol><li>Why is this happening?</li><li>Is there any way to avoid non-zero segment-start?<br><br></li></ol><div><b>THANKS </b>in advance for your help<br>Hayk Avetisyan</div></div>
</blockquote></div>
</blockquote></div></div></div>