[FFmpeg-trac] #502(undetermined:reopened): Jumping frames (wrong presentation order) in QT for avi(h264)->mp4 streamcopy (missing h264 pts interpolation code) (was: Jumping frames (wrong presentation order) when copying video (muxing) of an h264 file (to m4v/mp4) in Quicktime)

FFmpeg trac at avcodec.org
Sat Aug 24 16:41:11 CEST 2013


#502: Jumping frames (wrong presentation order) in QT for avi(h264)->mp4
streamcopy (missing h264 pts interpolation code)
-------------------------------------+-------------------------------------
             Reporter:  Alex__       |                    Owner:
                 Type:  defect       |                   Status:  reopened
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  mux h.264    |               Resolution:
  mp4 m4v quicktime                  |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by michael):

 avi doesnt have pts
 libavformat isnt able to (reliably) calculate pts values for h264 in avi
 thus no pts values are provided to the muxer

 To fix this someone has to implement more complete pts generation support
 for h264. It would require changes in the H264 parser, see h222 (mpeg
 systems) and h264 spec. PTS could amongth other things be calculated from
 POC values and or various SEIs, some of this is implemented since a long
 time some not.
 Iam happy to help/mentor this if theres some volunteer who wants to work
 on it

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/502#comment:17>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list