Opened 12 years ago

Closed 11 years ago

#1552 closed defect (invalid)

Packed B-frames cannot be remuxed into mkv

Reported by: Carl Eugen Hoyos Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: asp mkv roundup
Cc: fturco@fastmail.fm Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

(issue 1719)
FFmpeg fails when trying to remux packed B-frames into matroska.

$ ffmpeg -i AVI\ That\ plays\ well\ but\ can\ ot\ be\ muxed\ to\ mkv.avi -vcodec copy -an out.mkv
ffmpeg version N-42605-g5784a46 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 18 2012 20:29:06 with gcc 4.3.2
  configuration: --cc=/usr/local/gcc-4.3.2/bin/gcc --enable-gpl --enable-libopenjpeg --enable-libvorbis --enable-libspeex --enable-libmp3lame --enable-libtheora --extra-ldflags=-lm --enable-libvpx --enable-libxavs --enable-x11grab --enable-libass
  libavutil      51. 65.100 / 51. 65.100
  libavcodec     54. 41.100 / 54. 41.100
  libavformat    54. 17.100 / 54. 17.100
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  2.100 /  3.  2.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg4 @ 0x907d800] Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from 'AVI That plays well but can ot be muxed to mkv.avi':
  Metadata:
    encoder         : Lavf52.48.0
  Duration: 00:00:20.44, start: 0.000000, bitrate: 315 kb/s
    Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 592x472 [SAR 1:1 DAR 74:59], 25 fps, 25 tbr, 25 tbn, 30k tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 128 kb/s
Output #0, matroska, to 'out.mkv':
  Metadata:
    encoder         : Lavf54.17.100
    Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 592x472 [SAR 1:1 DAR 74:59], q=2-31, 25 fps, 1k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x9077ce0] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument

Attachments (1)

AVI That plays well but can not be muxed to mkv.avi (788.8 KB ) - added by Carl Eugen Hoyos 12 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Francesco Turco, 12 years ago

Cc: fturco@fastmail.fm added

comment:2 by Carl Eugen Hoyos, 11 years ago

Works fine with

$ ffmpeg -fflags +genpts -i AVI\ That\ plays\ well\ but\ can\ ot\ be\ muxed\ to\ mkv.avi -vcodec copy -an out.mkv

comment:3 by Carl Eugen Hoyos, 11 years ago

Keywords: roundup added

comment:4 by Carl Eugen Hoyos, 11 years ago

Resolution: invalid
Status: newclosed

I created ticket #1979 with the enhancement request to automatically insert -fflags +genpts if necessary.

Note: See TracTickets for help on using tickets.