Converting Video to Constant Frame Rate

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Converting Video to Constant Frame Rate

Richard Skinner
I have a video file which I am trying to import into Adobe Premiere. The
original file does not import, and I am told this is because of variable
frame rate. I can convert it to constant, but every conversion I have made
has the audio progressively desyncing and running ahead of the video. I was
told -copyts might fix this, but it does not: the audio is still out of
sync.

How do I convert this file to something that Adobe Premiere will open, but
which has the audio and video still in synch?



I have pasted here the Mediainfo output for the source file, and also the
output from two attempts to convert it with ffmpeg, both of which desynched
the sound.

General
Complete name                            : D:\Geforce Videos\Orcs Must Die!
Unchained Chinese Version\Banquet Hall Barricade Fiasco.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp41/isom)
File size                                : 11.1 GiB
Duration                                 : 38 min 9 s
Overall bit rate                         : 41.8 Mb/s
Recorded date                            : 2017
Encoded date                             : UTC 2017-06-07 18:58:27
Tagged date                              : UTC 2017-06-07 18:58:27
 
 
Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.2
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=30
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 38 min 9 s
Source duration                          : 38 min 9 s
Bit rate                                 : 41.6 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 59.075 FPS
Minimum frame rate                       : 0.202 FPS
Maximum frame rate                       : 82.418 FPS
Original frame rate                      : 60.000 FPS
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.340
Stream size                              : 11.1 GiB (100%)
Source stream size                       : 11.1 GiB (100%)
Encoded date                             : UTC 2017-06-07 18:58:27
Tagged date                              : UTC 2017-06-07 18:58:27
Color range                              : Limited
Color primaries                          : BT.601 NTSC
Transfer characteristics                 : BT.470 System M
Matrix coefficients                      : BT.601
mdhd_Duration                            : 2289748
 
 
Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 38 min 9 s
Source duration                          : 38 min 2 s
Bit rate mode                            : Constant
Bit rate                                 : 192 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 spf)
Compression mode                         : Lossy
Stream size                              : 51.3 MiB (0%)
Source stream size                       : 51.3 MiB (0%)
Encoded date                             : UTC 2017-06-07 18:58:27
Tagged date                              : UTC 2017-06-07 18:58:27
mdhd_Duration                            : 2289577


D:\Installers\FFmpeg\ffmpeg-3.3.1-win64-static\ffmpeg-3.3.1-win64-static\bin
>ffmpeg -i "D:\Geforce Videos\Orcs Must Die! Unchained Chinese
Version\Banquet Hall Barricade Fiasco.mp4" -c copy -copyts "D:\Geforce
Videos\Orcs Must Die! Unchained Chinese Version\Banquet Hall Barricade
Fiasco copyts.mp4"
ffmpeg version 3.3.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 6.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid
--enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
--enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
--enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg
--enable-lzma --enable-zlib
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Geforce Videos\Orcs Must Die!
Unchained Chinese Version\Banquet Hall Barricade Fiasco.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp41isom
    creation_time   : 2017-06-07T18:58:27.000000Z
    date            : 2017
  Duration: 00:38:09.75, start: 0.000000, bitrate: 41802 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
smpte170m/smpte170m/bt470m), 1920x1080 [SAR 1:1 DAR 16:9], 41604 kb/s, 59.08
fps, 59 tbr, 60k tbn, 120 tbc (default)
    Metadata:
      creation_time   : 2017-06-07T18:58:27.000000Z
      handler_name    : VideoHandler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 188 kb/s (default)
    Metadata:
      creation_time   : 2017-06-07T18:58:27.000000Z
      handler_name    : SoundHandler
Output #0, mp4, to 'D:\Geforce Videos\Orcs Must Die! Unchained Chinese
Version\Banquet Hall Barricade Fiasco copyts.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp41isom
    date            : 2017
    encoder         : Lavf57.71.100
    Stream #0:0(und): Video: h264 (High) ([33][0][0][0] / 0x0021),
yuv420p(tv, smpte170m/smpte170m/bt470m), 1920x1080 [SAR 1:1 DAR 16:9],
q=2-31, 41604 kb/s, 59.08 fps, 59 tbr, 60k tbn, 60k tbc (default)
    Metadata:
      creation_time   : 2017-06-07T18:58:27.000000Z
      handler_name    : VideoHandler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz,
stereo, fltp, 188 kb/s (default)
    Metadata:
      creation_time   : 2017-06-07T18:58:27.000000Z
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=135269 fps=822 q=-1.0 Lsize=11686558kB time=00:38:09.75
bitrate=41810.8kbits/s speed=13.9x
video:11628920kB audio:52500kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.043975%

D:\Installers\FFmpeg\ffmpeg-3.3.1-win64-static\ffmpeg-3.3.1-win64-static\bin
>ffmpeg -i "D:\Geforce Videos\Orcs Must Die! Unchained Chinese
Version\Banquet Hall Barricade Fiasco.mp4" -c copy -copyts -r 30 "D:\Geforce
Videos\Orcs Must Die! Unchained Chinese Version\Banquet Hall Barricade
Fiasco copyts 30FPS.mp4"
ffmpeg version 3.3.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 6.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid
--enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
--enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
--enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg
--enable-lzma --enable-zlib
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Geforce Videos\Orcs Must Die!
Unchained Chinese Version\Banquet Hall Barricade Fiasco.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp41isom
    creation_time   : 2017-06-07T18:58:27.000000Z
    date            : 2017
  Duration: 00:38:09.75, start: 0.000000, bitrate: 41802 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
smpte170m/smpte170m/bt470m), 1920x1080 [SAR 1:1 DAR 16:9], 41604 kb/s, 59.08
fps, 59 tbr, 60k tbn, 120 tbc (default)
    Metadata:
      creation_time   : 2017-06-07T18:58:27.000000Z
      handler_name    : VideoHandler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 188 kb/s (default)
    Metadata:
      creation_time   : 2017-06-07T18:58:27.000000Z
      handler_name    : SoundHandler
Output #0, mp4, to 'D:\Geforce Videos\Orcs Must Die! Unchained Chinese
Version\Banquet Hall Barricade Fiasco copyts 30FPS.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp41isom
    date            : 2017
    encoder         : Lavf57.71.100
    Stream #0:0(und): Video: h264 (High) ([33][0][0][0] / 0x0021),
yuv420p(tv, smpte170m/smpte170m/bt470m), 1920x1080 [SAR 1:1 DAR 16:9],
q=2-31, 41604 kb/s, 59.08 fps, 59 tbr, 15360 tbn, 30 tbc (default)
    Metadata:
      creation_time   : 2017-06-07T18:58:27.000000Z
      handler_name    : VideoHandler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz,
stereo, fltp, 188 kb/s (default)
    Metadata:
      creation_time   : 2017-06-07T18:58:27.000000Z
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=135269 fps=536 q=-1.0 Lsize=11686520kB time=00:38:09.75
bitrate=41810.6kbits/s speed=9.08x
video:11628920kB audio:52500kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.043651%

D:\Installers\FFmpeg\ffmpeg-3.3.1-win64-static\ffmpeg-3.3.1-win64-static\bin
>

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".