Opened 4 years ago

Closed 3 years ago

#4660 closed defect (needs_more_info)

Failed to open bitstream filter h264_mp4toannexb

Reported by: rcspam Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: concat
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

How to reproduce:

% ffmpeg -y -f concat -i l.txt -c copy  -bsf:v h264_mp4toannexb   output.mkv
ffmpeg version 2.7

Hi,
I have create 2 files with:

ffmpeg -i in1.mkv --ss "somewhere" -to "here" -c copy 1.mkv
ffmpeg -i in2.mkv --ss "somewhere" -to "here" -c copy 2.mkv

the file "l.txt" contain :

file '1.mkv'
file '2.mkv'

When i play out.mkv, the av sync is good in the first party (corresponding to 1.mkv) but not good at the seam between the 2 videos if i let play it. When press forward-seek then av is again sync.

...
[h264 @ 0x1f3fa60] mmco: unref short failure
    Last message repeated 1 times
[matroska,webm @ 0x1f3b4e0] Auto-inserting h264_mp4toannexb bitstream filter
[h264 @ 0x21be560] mmco: unref short failure
Input #0, concat, from 'l.txt':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc
    Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
File 'outb.mkv' already exists. Overwrite ? [y/N] y
[matroska @ 0x2192120] Codec for stream 0 does not use global headers but container format requires global headers
[matroska @ 0x2192120] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, matroska, to 'outb.mkv':
  Metadata:
    encoder         : Lavf56.36.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 1k tbn, 1k tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), 384 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[NULL @ 0x2157fe0] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
[NULL @ 0x2157fe0] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
[matroska @ 0x2192120] Invalid DTS: 308 PTS: 269 in output stream 0:0, replacing by guess
[NULL @ 0x2157fe0] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
[matroska @ 0x2192120] Invalid DTS: 348 PTS: 270 in output stream 0:0, replacing by guess
[NULL @ 0x2157fe0] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
[matroska @ 0x2192120] Non-monotonous DTS in output stream 0:0; previous: 270, current: 269; changing to 270. This may result in incorrect timestamps in the output file.
[NULL @ 0x2157fe0] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
[NULL @ 0x2157fe0] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
....

Change History (3)

comment:1 Changed 4 years ago by cehoyos

  • Cc concat added

To make this a valid ticket, please test current FFmpeg git head and provide your command line together with the complete, uncut console output and the input file(s).

comment:2 Changed 4 years ago by cehoyos

  • Cc concat removed
  • Keywords concat added

comment:3 Changed 3 years ago by cehoyos

  • Resolution set to needs_more_info
  • Status changed from new to closed
  • Version changed from 2.7 to unspecified
Note: See TracTickets for help on using tickets.