AW: playback H264 encoded file too fast
Nicolas Dufresne
nicolas at ndufresne.ca
Fri Jul 12 22:46:16 UTC 2019
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.
Le ven. 12 juill. 2019 17 h 40, jles <jlesquer at gmail.com> a écrit :
> Hi Nicolas,
>
> Thanks for the help,
>
> Just FYI I'm using now mpegtsmux element instead mp4mux but results/issues
> are identical.
>
> Piece of code where the timestamps are done:
> .....
> GST_BUFFER_PTS (buffer) = timestamp;
> GST_BUFFER_DURATION (buffer) = gst_util_uint64_scale_int (1,
> GST_SECOND,
> (guint8) fps);
> timestamp += GST_BUFFER_DURATION (buffer);
> .....
> Here there are a few the time stamp values and frame rates, for all capture
> images:
>
> timestamp (nanoseconds): 77961018 fps: 29
> timestamp (nanoseconds): 112443776 fps: 29
> timestamp (nanoseconds): 146926534 fps: 29
> timestamp (nanoseconds): 181409292 fps: 29
> timestamp (nanoseconds): 215892050 fps: 29
> ....
>
> And running "gst-discoverer-1.0 --verbose output.ts" I've got:
>
> Analyzing file:///media/test/output.ts
> Done discovering file:///media/test/output.ts
>
> Topology:
> container: video/mpegts, systemstream=(boolean)true,
> packetsize=(int)188
> video: video/x-h264, stream-format=(string)byte-stream,
> alignment=(string)au, width=(int)1280, height=(int)1024,
> framerate=(fraction)46/1, interlace-mode=(string)progressive,
> chroma-format=(string)4:2:0, bit-depth-luma=(uint)8,
> bit-depth-chroma=(uint)8, parsed=(boolean)true,
> profile=(string)constrained-baseline, level=(string)4
> Tags:
> video codec: H.264
>
> Codec:
> video/x-h264, stream-format=(string)byte-stream,
> alignment=(string)au, width=(int)1280, height=(int)1024,
> framerate=(fraction)46/1, interlace-mode=(string)progressive,
> chroma-format=(string)4:2:0, bit-depth-luma=(uint)8,
> bit-depth-chroma=(uint)8, parsed=(boolean)true,
> profile=(string)constrained-baseline, level=(string)4
> Additional info:
> None
> Stream ID:
> f623b2db448562f44acc3c45398a9f6ff43288c3244e8cdf2d776c577693743d:1/00000041
> Width: 1280
> Height: 1024
> Depth: 24
> Frame rate: 46/1
> Pixel aspect ratio: 1/1
> Interlaced: false
> Bitrate: 0
> Max bitrate: 0
>
> Properties:
> Duration: 0:00:00.487500111
> Seekable: yes
> Tags:
> video codec: H.264
>
>
>
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190712/2f6bbe7c/attachment.html>
More information about the gstreamer-devel
mailing list