Opened 11 years ago

Last modified 11 years ago

#2900 new defect

remux of interlaced MPEG2-PS to AVI doubles frame rate.

Reported by: iuqbgq9h-1@yahoo.com Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mpegps avi regression
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
I remultiplex an input file which is an MPEG2-PS with mpeg2video and mp2 audio. The video is interlaced with frame rate 25 (= PAL).
The output is avi file, with same vcodec and acodec.
The output video has double the frame rate (=50), and each frame appears twice when AVI file is opened with NLE.
How to reproduce:

% ffmpeg -i input.mpg -c:v copy -c:a copy -f avi output.avi
ffmpeg version  N-55721-gc443689
built on  Aug 22 2013 19:06:24 with gcc 4.7.3 (GCC)

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Attachments (1)

input.mpg (1.0 MB ) - added by Carl Eugen Hoyos 11 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Carl Eugen Hoyos, 11 years ago

Keywords: mpegps avi added; MPEG2-PS AVI removed

Please provide the input sample and the command line together with the complete, uncut console output to make this a valid ticket.

in reply to:  1 comment:2 by iuqbgq9h-1@yahoo.com, 11 years ago

Here's the console output

>ffprobe input.mpg
ffprobe version N-55721-gc443689 Copyright (c) 2007-2013 the FFmpeg developers
  built on Aug 22 2013 19:06:24 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-f
rei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enab
le-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enab
le-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --ena
ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
  libavutil      52. 42.100 / 52. 42.100
  libavcodec     55. 29.100 / 55. 29.100
  libavformat    55. 14.102 / 55. 14.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.102 /  3. 82.102
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
[NULL @ 0000000003dbaaa0] start time is not set in estimate_timings_from_pts
Input #0, mpeg, from 'input.mpg':
  Duration: 00:00:30.00, start: 0.500000, bitrate: 4852 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], max. 4620 kb/s, 25 fps, 25 tbr, 90k tbn, 50
tbc
    Stream #0:2[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
Unsupported codec with id 1145979222 for input stream 0

>ffmpeg -i input.mpg -c:v copy -c:a copy -f avi output.avi
ffmpeg version N-55721-gc443689 Copyright (c) 2000-2013 the FFmpeg developers
  built on Aug 22 2013 19:06:24 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-f
rei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enab
le-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enab
le-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --ena
ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
  libavutil      52. 42.100 / 52. 42.100
  libavcodec     55. 29.100 / 55. 29.100
  libavformat    55. 14.102 / 55. 14.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.102 /  3. 82.102
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
[NULL @ 00000000041106e0] start time is not set in estimate_timings_from_pts
Input #0, mpeg, from 'input.mpg':
  Duration: 00:00:30.00, start: 0.500000, bitrate: 4852 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], max. 4620 kb/s, 25 fps, 25 tbr, 90k tbn, 50
tbc
    Stream #0:2[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
Output #0, avi, to 'output.avi':
  Metadata:
    ISFT            : Lavf55.14.102
    Stream #0:0: Video: mpeg2video (mpg2 / 0x3267706D), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, max. 4620 kb/s, 25 fps, 50 tbn
, 50 tbc
    Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  747 fps=0.0 q=-1.0 Lsize=   17602kB time=00:00:30.00 bitrate=4806.5kbits/s
video:16590kB audio:938kB subtitle:0 global headers:0kB muxing overhead 0.424238%

>ffprobe output.avi
ffprobe version N-55721-gc443689 Copyright (c) 2007-2013 the FFmpeg developers
  built on Aug 22 2013 19:06:24 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-f
rei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enab
le-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enab
le-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --ena
ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
  libavutil      52. 42.100 / 52. 42.100
  libavcodec     55. 29.100 / 55. 29.100
  libavformat    55. 14.102 / 55. 14.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.102 /  3. 82.102
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, avi, from 'output.avi':
  Metadata:
    encoder         : Lavf55.14.102
  Duration: 00:00:30.00, start: 0.000000, bitrate: 4806 kb/s
    Stream #0:0: Video: mpeg2video (Main) (mpg2 / 0x3267706D), yuv420p, 720x576 [SAR 16:15 DAR 4:3], max. 4620 kb/s, 50 fps, 25 tbr,
 50 tbn, 50 tbc
    Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, 256 kb/s

Due to size, I uploaded a 2-second input sample http://www.mediafire.com/download/5lyx58cftm5gf1b/input.mpg.
The output file, when opened in AVI frame editor, shows each frame twice.

Version 1, edited 11 years ago by iuqbgq9h-1@yahoo.com (previous) (next) (diff)

in reply to:  1 comment:3 by iuqbgq9h-1@yahoo.com, 11 years ago

Sample attached above in comment 2.

by Carl Eugen Hoyos, 11 years ago

Attachment: input.mpg added

comment:4 by Carl Eugen Hoyos, 11 years ago

Keywords: regression added

If there is an issue it is a regression since 981f6fc.

Note: See TracTickets for help on using tickets.