[FFmpeg-devel] Using copyts with mpegts output fails after 26, 5 hours

Michael Niedermayer michael at niedermayer.cc
Thu May 2 20:33:30 EEST 2019


On Thu, May 02, 2019 at 08:13:10PM +0300, Panagiotis Malakoudis wrote:
> When outputing to mpegts format, using -copyts option makes program
> fail after the oveflow of mpegts PCR happens at around 26 hours and 30
> minutes. When not using -copyts, only a warning is reported.
> In order to reproduce the issue, you first have to create a 27 hour
> mpegts video.
> I have described the problem in thorough at ticket
> https://trac.ffmpeg.org/ticket/7876
> 
> The issue is resolved if you use a patch created originally by Arut
> (Roman Arutyunyan) at
> https://github.com/arut/ffmpeg-patches/blob/master/mpegts-33bit
> 
> I have converted the patch in order to apply with current git and
> confirmed working fine, fixing the above mentioned issue. Original
> author describes the patch as: "Implements smooth 33-bit mpeg-ts
> timestamp overflow in mpegts muxer."
> 
> Here it is:
> --- libavformat/mpegts.c 2019-04-30 16:11:49.000000000 +0300
> +++ libavformat/mpegts.c 2019-04-30 18:55:12.736428766 +0300

doesnt apply with git am
Applying: Using copyts with mpegts output fails after 26, 5 hours
error: mpegts.c: does not exist in index
Patch failed at 0001 Using copyts with mpegts output fails after 26, 5 hours

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship: All citizens are under surveillance, all their steps and
actions recorded, for the politicians to enforce control.
Democracy: All politicians are under surveillance, all their steps and
actions recorded, for the citizens to enforce control.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190502/af6749ff/attachment.sig>


More information about the ffmpeg-devel mailing list