<div dir="ltr">Your pipeline is basically moving h.264 packets from the udpsrc into the mp4 file.<div><br></div><div>Unfortunately, you cannot modify the framerate by dropping some of the h.264 packets.  You need to actually decode the video to drop frames.<br><div><br></div><div>You need to decode the video/x-h264 stream into video/x-raw, then re-encode with an h.264 encoder.  Some h.264 encoders allow you to set the framerate but some don't.  If you don't set the framerate on the encoder, you can add some extra elements before going into the encoder.  Specifically you would use a videoconvert element followed by a caps filter which specifies the framerate, and then (a queue and) the h.264 encoder.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 3, 2019 at 6:34 AM Guillaume CLODIC <<a href="mailto:guillaume.clodic@ifremer.fr">guillaume.clodic@ifremer.fr</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">Hi,<br>
<br>
i have a rtp h264 encoder with an 1080i (yes interlaced) SDI input.<br>
<br>
When i save the stream as a raw ts file with the following command :<br>
<br>
  gst-launch-1.0 -e -v udpsrc port=46234 ! filesink location=file.ts<br>
<br>
i then check the file with ffprobe and it says me that the fps is 25 (ok <br>
europe standard) and 50 tbc<br>
<br>
when i try to save the file as mp4 with this :<br>
<br>
  gst-launch-1.0 -e -v udpsrc port=46234 ! tsdemux ! video/x-h264 ! <br>
queue ! h264parse ! mp4mux ! filesink location=file.mp4<br>
<br>
with ffprobe fps is 49.38 (or .60 or else) tbc is 50 and the file cannot <br>
be imported in professionnal movie editors such adobe premiere.<br>
<br>
does anyone as an idea how to obtain a mp4 file with the correct fps (ie <br>
25) ?<br>
<br>
Regards,<br>
<br>
Guillaume.<br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div>