AW: playback H264 encoded file too fast
jles
jlesquer at gmail.com
Fri Jul 12 12:55:25 UTC 2019
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/
More information about the gstreamer-devel
mailing list