[FFmpeg-trac] #4381(undetermined:new): Pasteur changes the fps

FFmpeg trac at avcodec.org
Fri Mar 20 16:55:24 CET 2015


#4381: Pasteur changes the fps
--------------------------------------+----------------------------------
             Reporter:  Atarikid      |                     Type:  defect
               Status:  new           |                 Priority:  normal
            Component:  undetermined  |                  Version:  2.6
             Keywords:                |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+----------------------------------
 Here is an odd issue when using video and audio passthru.
 The source file is a MPS container with h264 video and AC3 audio

 When using -c:v copy -c:a copy to a MP4 container the result is 59,97fps
 instead of 29,97fps
 When doing the same to a MKV container it works as expected.




 Xtophes-MacBook-Pro:~ xtophe$ /Users/xtophe/Desktop/ffmpeg -i
 /Users/xtophe/Desktop/passthruissue.MTS -c:v copy -c:a copy
 /Users/xtophe/Desktop/passthruissue.mp4
 ffmpeg version 2.6.1 Copyright (c) 2000-2015 the FFmpeg developers
   built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
   configuration: --prefix=/Volumes/tempdisk/sw --as=yasm --enable-gpl
 --enable-pthreads --disable-ffplay --disable-ffserver --disable-shared
 --enable-static --enable-libvpx --disable-decoder=libvpx --enable-
 libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
 --enable-libx264 --enable-libx265 --enable-libxvid --enable-zlib --enable-
 avfilter --enable-fontconfig --enable-libfreetype --enable-libass
 --enable-libutvideo --enable-filters --enable-postproc --enable-runtime-
 cpudetect
   libavutil      54. 20.100 / 54. 20.100
   libavcodec     56. 26.100 / 56. 26.100
   libavformat    56. 25.101 / 56. 25.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 11.102 /  5. 11.102
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, mpegts, from '/Users/xtophe/Desktop/passthruissue.MTS':
   Duration: 00:00:05.54, start: 0.492322, bitrate: 15040 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p,
 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
     Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
 fltp, 256 kb/s
 [mp4 @ 0x7f97d381c800] track 1: codec frame size is not set
 Output #0, mp4, to '/Users/xtophe/Desktop/passthruissue.mp4':
   Metadata:
     encoder         : Lavf56.25.101
     Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080
 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc
     Stream #0:1: Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, stereo,
 256 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 [mp4 @ 0x7f97d381c800] pts has no value
     Last message repeated 164 times
 frame=  330 fps=0.0 q=-1.0 Lsize=    9662kB time=00:00:05.53
 bitrate=14297.5kbits/s
 video:9481kB audio:173kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.080256%



 Here is the output of the encoded pasteurise.mp4 file
 As you can see the framerate is now  59.94fps instead of 29,97fps


 Xtophes-MacBook-Pro:~ xtophe$ /Users/xtophe/Desktop/ffmpeg -i
 /Users/xtophe/Desktop/passthruissue.mp4
 ffmpeg version 2.6.1 Copyright (c) 2000-2015 the FFmpeg developers
   built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
   configuration: --prefix=/Volumes/tempdisk/sw --as=yasm --enable-gpl
 --enable-pthreads --disable-ffplay --disable-ffserver --disable-shared
 --enable-static --enable-libvpx --disable-decoder=libvpx --enable-
 libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
 --enable-libx264 --enable-libx265 --enable-libxvid --enable-zlib --enable-
 avfilter --enable-fontconfig --enable-libfreetype --enable-libass
 --enable-libutvideo --enable-filters --enable-postproc --enable-runtime-
 cpudetect
   libavutil      54. 20.100 / 54. 20.100
   libavcodec     56. 26.100 / 56. 26.100
   libavformat    56. 25.101 / 56. 25.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 11.102 /  5. 11.102
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
 '/Users/xtophe/Desktop/passthruissue.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf56.25.101
   Duration: 00:00:05.54, start: 0.000000, bitrate: 14297 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 1920x1080 [SAR 1:1 DAR 16:9], 14107 kb/s, 59.94 fps, 59.94 tbr, 90k tbn,
 59.94 tbc (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo,
 fltp, 256 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
     Side data:
       unknown side data type 7 (4 bytes)
 At least one output file must be specified

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4381>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list