Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GStreamer
gst-libav
Commits
06c249ca
Commit
06c249ca
authored
Aug 13, 2019
by
Mathieu Duponchelle
🐸
Committed by
Sebastian Dröge
Aug 13, 2019
Browse files
avvidenc: timestamp output buffers
Same approach as x264enc, with the one hour offset
parent
6382be09
Pipeline
#56137
passed with stages
in 39 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ext/libav/gstavvidenc.c
View file @
06c249ca
...
...
@@ -682,6 +682,15 @@ gst_ffmpegvidenc_receive_packet (GstFFMpegVidEnc * ffmpegenc,
GST_VIDEO_CODEC_FRAME_UNSET_SYNC_POINT
(
frame
);
}
frame
->
dts
=
gst_ffmpeg_time_ff_to_gst
(
pkt
->
dts
,
ffmpegenc
->
context
->
time_base
);
/* This will lose some precision compared to setting the PTS from the input
* buffer directly, but that way we're sure PTS and DTS are consistent, in
* particular DTS should always be <= PTS
*/
frame
->
pts
=
gst_ffmpeg_time_ff_to_gst
(
pkt
->
pts
,
ffmpegenc
->
context
->
time_base
);
ret
=
gst_video_encoder_finish_frame
(
GST_VIDEO_ENCODER
(
ffmpegenc
),
frame
);
done:
...
...
@@ -836,6 +845,8 @@ gst_ffmpegvidenc_start (GstVideoEncoder * encoder)
return
FALSE
;
}
gst_video_encoder_set_min_pts
(
encoder
,
GST_SECOND
*
60
*
60
*
1000
);
return
TRUE
;
}
...
...
Sandy Patterson
@xandey
mentioned in issue
#91
·
Feb 13, 2021
mentioned in issue
#91
mentioned in issue #91
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment