ffmpeg mov (ProRes) 转 mp4

ffmpeg mov (ProRes) 转 mp4

我有一个 .mov 文件,想将其转换为 mp4 或 avi,但遇到了很多问题。这些文件是别人给我的,用来将 8mm 转换为数字格式。

我对 ffmpeg 和转换还很陌生。

debian:/home/HomeMovies# ffmpeg -i Brink\ 8mm\ Reel\ 01.mov -vcodec libx264 -acodec libfaac home1.mp4
ffmpeg version 0.7.16, Copyright (c) 2000-2013 the FFmpeg developers
      built on May  2 2014 14:22:53 with gcc 4.4.5
      configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --    enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
   libavutil    50. 43. 0 / 50. 43. 0
   libavcodec   52.123. 0 / 52.123. 0
   libavformat  52.111. 0 / 52.111. 0
   libavdevice  52.  5. 0 / 52.  5. 0
   libavfilter   1. 80. 0 /  1. 80. 0
   libswscale    0. 14. 1 /  0. 14. 1
   libpostproc  51.  2. 0 / 51.  2. 0 

Seems stream 0 codec frame rate differs from container frame rate: 2997.00 (2997/1) -> 29.97 (2997/100)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Brink 8mm Reel 01.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2014-11-18 21:14:29
  Duration: 00:03:02.01, start: 0.000000, bitrate: 204586 kb/s
    Stream #0.0(eng): Video: Apple ProRes 422 (HQ), 1920x1080, 204550 kb/s, PAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc
    Metadata:
      creation_time   : 2014-11-18 21:14:29
    Stream #0.1(eng): Data: tmcd / 0x64636D74
    Metadata:
      creation_time   : 2014-11-18 21:16:11
File 'home1.mp4' already exists. Overwrite ? [y/N] y
[buffer @ 0x9311d00] Invalid pixel format string '-1'
Error opening filters!

答案1

当将 4:2:2 素材(如 proRes)转换为 4:2:0 编解码器(如 x264)时,您必须明确告诉它更改像素格式。将其添加到您的命令行:-pix_fmt yuv420p。但首先要像 slhk 所说的那样更新您的 ffmpeg。

相关内容