[FFmpeg-devel] [PATCH] [RFC] libavformat/mpegts: Prevent wrapping of PTS & DTS

DeHackEd git at dehacked.net
Sun Jun 12 13:00:18 CEST 2016


On 06/12/2016 04:07 AM, Carl Eugen Hoyos wrote:
> DeHackEd <git <at> dehacked.net> writes:
> 
>> So here's a first revision of a patch to fix that issue.
> 
> How can I reproduce the issue?

1) Produce a very long video, around 27 hours long or so, in mpegts format

$ ffmpeg -r 5 -f lavfi -i testsrc -c:v libx264 -profile:v veryfast -t 97000 bigfile.ts

2) Process the created video to anything else.

$ ffmpeg -i bigfile.ts -c:v copy -f null /dev/null

What I saw output (I think this is going to get mangled by my mail client):

Input #0, mpegts, from 'longvideo.ts':
  Duration: 00:34:59.88, start: 1.800000, bitrate: 697 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High 4:4:4 Predictive) ([27][0][0][0] / 0x001B), yuv444p, 320x240 [SAR 1:1 DAR
4:3], 5 fps, 5 tbr, 90k tbn
[null @ 0x341f160] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, null, to '/dev/null':
  Metadata:
    encoder         : Lavf57.36.100
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv444p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 5 fps, 5 tbr, 90k tbn
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x3419440] Invalid timestamps stream=0, pts=43408, dts=8589888000, size=535
[mpegts @ 0x3419440] Invalid timestamps stream=0, pts=7408, dts=8589906000, size=157
frame=487718 fps=228472 q=-1.0 Lsize=N/A time=27:05:43.00 bitrate=N/A speed=4.57e+04x
video:121012kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown


> 
> Imo, the reindentation makes your patch very difficult to read.
> 

Yeah, sorry but it seemed like the thing to do for that one block. It just adds initializers for the two new fields in
the PESContext.


> Carl Eugen
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 



More information about the ffmpeg-devel mailing list