Opened 9 years ago

Last modified 9 years ago

#5572 new defect

Rewrapping NTSC MOV to AVI, results in 60000/1001 fps

Reported by: Peter B. Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: fps avi mov
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

When rewrapping a videofile in a MOV container to AVI, using "-c copy" argument, the framerate is changed from 30000/1001 to 60000/1001.

The output of these fps is from the following ffprobe command:

$ ffprobe -v error -show_entries stream=avg_frame_rate -of default=noprint_wrappers=1:nokey=1 $VIDEOFILE

The MOV file displays "30000/1001".
The AVI copy displays "60000/1001".

How to reproduce:
Download the video file here:
http://download.das-werkstatt.com/pb/mthk/testvideos/test_20160517.mov

Command:

$ ffmpeg -i test_20160517.mov -c copy delme.avi

Output:

ffmpeg version N-80026-g936751b Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-bzlib --enable-zlib --enable-decoder=png --enable-encoder=png --samples=../fate-suite --enable-libfreetype --enable-libschroedinger --enable-libopenjpeg --disable-decoder=jpeg2000 --enable-libvpx --enable-libvorbis --enable-libx264 --enable-libfaac
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 42.100 / 57. 42.100
  libavformat    57. 36.100 / 57. 36.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 45.100 /  6. 45.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test_20160517.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoder         : Lavf57.36.100
  Duration: 00:00:10.01, start: 0.000000, bitrate: 8368 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720, 8232 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)
    Metadata:
      handler_name    : DataHandler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : DataHandler
[avi @ 0x35ba2e0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, avi, to 'delme.avi':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    ISFT            : Lavf57.36.100
    Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 1280x720, q=2-31, 8232 kb/s, 29.97 fps, 29.97 tbr, 59.94 tbn (default)
    Metadata:
      handler_name    : DataHandler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, 128 kb/s (default)
    Metadata:
      handler_name    : DataHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  300 fps=0.0 q=-1.0 Lsize=   10251kB time=00:00:10.00 bitrate=8393.4kbits/s speed= 714x    
video:10060kB audio:157kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.342505%

ffprobe call and output:

ffprobe -show_entries stream=avg_frame_rate -of default=noprint_wrappers=1:nokey=1 delme.avi 
ffprobe version N-80026-g936751b Copyright (c) 2007-2016 the FFmpeg developers
  built with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-bzlib --enable-zlib --enable-decoder=png --enable-encoder=png --samples=../fate-suite --enable-libfreetype --enable-libschroedinger --enable-libopenjpeg --disable-decoder=jpeg2000 --enable-libvpx --enable-libvorbis --enable-libx264 --enable-libfaac
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 42.100 / 57. 42.100
  libavformat    57. 36.100 / 57. 36.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 45.100 /  6. 45.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, avi, from 'delme.avi':
  Metadata:
    encoder         : Lavf57.36.100
  Duration: 00:00:10.01, start: 0.000000, bitrate: 8389 kb/s
    Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720, 8260 kb/s, 59.94 fps, 29.97 tbr, 59.94 tbn
    Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, fltp, 128 kb/s
60000/1001
0/0

Change History (2)

comment:1 by Carl Eugen Hoyos, 9 years ago

Keywords: framerate quicktime removed

Which media player plays the output file with an incorrect speed?

comment:2 by Peter B., 9 years ago

None. It's played back correctly.
The fps metadata in the container seems wrong.

Note: See TracTickets for help on using tickets.