[FFmpeg-trac] #9110(undetermined:new): Remux TS to MP4 creates an invalid file, delay_moov flag not working as requested

FFmpeg trac at avcodec.org
Sat Feb 20 00:05:53 EET 2021


#9110: Remux TS to MP4 creates an invalid file, delay_moov flag not working as
requested
-------------------------------------+-------------------------------------
             Reporter:  hunnypuppy   |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  1            |
-------------------------------------+-------------------------------------
Changes (by mkver):

 * analyzed:  0 => 1
 * reproduced:  0 => 1


Comment:

 For some reason the first audio packet the ts demuxer exports is only two
 bytes long (0x612A). The mp4 muxer puts this packet in its vos_data and
 errors out later because said data is invalid. But because of this data no
 attempt to get the data from a real packet is made.

 A quick fix would be to reject such invalid packets immediately, but
 unfortunately one can't really return the error to the caller as the
 caller will likely stop writing due to that (at least the ffmpeg cli does
 so).

--
Ticket URL: <https://trac.ffmpeg.org/ticket/9110#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list