[FFmpeg-user] Basic ffmpeg user - issues converting

Kassim Massop massop at gmail.com
Sun Sep 30 11:51:25 EEST 2018


Hi there community,

I have recently discovered ffmpeg and am trying to use it to convert &
compress my raw footage from an Atomos device.

When using the most basic command (ffmpeg -i source.mov output.mov) I get
the below error in "basic command"

After some googling I found using the copy command can fix this so I used
the following command (ffmpeg -i source.mov -acodec copy output.mov) which
converted successfully but the output video file is unplayable in any video
player (error from VLC - Codec not supported:VLC could not decode the
format "aivx" (No description for this codec)).

What am I doing wrong here? Also what would be the best command to run to
reduce filesize and keep the quality as high as possible for 1080p/60 &
4k/60 respectivley (whilst keeping the 10 audio channels)?

--- Basic coomand ---
H:\FFMPEG-Convert\bin>ffmpeg -i 1.mov output.mov
ffmpeg version N-92065-g476a77128a Copyright (c) 2000-2018 the FFmpeg
developers
  built with gcc 8.2.1 (GCC) 20180813
  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth
  libavutil      56. 19.101 / 56. 19.101
  libavcodec     58. 31.101 / 58. 31.101
  libavformat    58. 18.103 / 58. 18.103
  libavdevice    58.  4.104 / 58.  4.104
  libavfilter     7. 33.100 /  7. 33.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001bd6ce2a240] overread end of atom '®mak' by
2 bytes
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001bd6ce2a240] overread end of atom '®swr' by
3 bytes
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2018-09-26T17:50:54.000000Z
    make            : Atomos
    make-eng        : Atomos
    encoder         : NinjaInferno - 8.5
    encoder-eng     : NinjaInferno - 8.5
    com.apple.proapps.image.{TIFF}.Make: Atomos
    com.apple.proapps.image.{TIFF}.Model: NinjaInferno
    com.apple.proapps.image.{TIFF}.Software: 8.5
    timecode        : 04:50:01;16
  Duration: 00:02:15.60, start: 0.000000, bitrate: 1757628 kb/s
    Stream #0:0(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 10
channels, s32 (24 bit), 11520 kb/s (default)
    Metadata:
      creation_time   : 2018-09-26T17:50:54.000000Z
    Stream #0:1(eng): Video: dnxhd (DNXHR HQX) (AVdh / 0x68645641),
yuv422p10le(tv, bt709, progressive), 3840x2160, 1746099 kb/s, SAR 1:1 DAR
16:9, 59.94 fps, 59.94 tbr, 60k tbn, 60k tbc (default)
    Metadata:
      creation_time   : 2018-09-26T17:50:54.000000Z
      encoder         : Avid DNxHR Codec
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2018-09-26T17:50:54.000000Z
      timecode        : 04:50:01;16
Stream mapping:
  Stream #0:1 -> #0:0 (dnxhd (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (pcm_s24le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 000001bd6ce2e440] using SAR=1/1
[libx264 @ 000001bd6ce2e440] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001bd6ce2e440] profile High 4:2:2, level 5.2, 4:2:2, 10-bit
[libx264 @ 000001bd6ce2e440] 264 - core 157 r2932 303c484 - H.264/MPEG-4
AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html -
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12
lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=81 qpstep=4 ip_ratio=1.40 aq=1:1.00
[aac @ 000001bd6ce65200] Unsupported channel layout "0 channels"bitrate=
-0.0kbits/s speed=N/A
Error initializing output stream 0:1 -- Error while opening encoder for
output stream #0:1 - maybe incorrect parameters such as bit_rate, rate,
width or height
Conversion failed!


--- copy command ---
H:\FFMPEG-Convert\bin>ffmpeg -i 1.mov -acodec copy output.mov
ffmpeg version N-92065-g476a77128a Copyright (c) 2000-2018 the FFmpeg
developers
  built with gcc 8.2.1 (GCC) 20180813
  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth
  libavutil      56. 19.101 / 56. 19.101
  libavcodec     58. 31.101 / 58. 31.101
  libavformat    58. 18.103 / 58. 18.103
  libavdevice    58.  4.104 / 58.  4.104
  libavfilter     7. 33.100 /  7. 33.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000023e44daa400] overread end of atom '®mak' by
2 bytes
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000023e44daa400] overread end of atom '®swr' by
3 bytes
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2018-09-26T17:50:54.000000Z
    make            : Atomos
    make-eng        : Atomos
    encoder         : NinjaInferno - 8.5
    encoder-eng     : NinjaInferno - 8.5
    com.apple.proapps.image.{TIFF}.Make: Atomos
    com.apple.proapps.image.{TIFF}.Model: NinjaInferno
    com.apple.proapps.image.{TIFF}.Software: 8.5
    timecode        : 04:50:01;16
  Duration: 00:02:15.60, start: 0.000000, bitrate: 1757628 kb/s
    Stream #0:0(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 10
channels, s32 (24 bit), 11520 kb/s (default)
    Metadata:
      creation_time   : 2018-09-26T17:50:54.000000Z
    Stream #0:1(eng): Video: dnxhd (DNXHR HQX) (AVdh / 0x68645641),
yuv422p10le(tv, bt709, progressive), 3840x2160, 1746099 kb/s, SAR 1:1 DAR
16:9, 59.94 fps, 59.94 tbr, 60k tbn, 60k tbc (default)
    Metadata:
      creation_time   : 2018-09-26T17:50:54.000000Z
      encoder         : Avid DNxHR Codec
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2018-09-26T17:50:54.000000Z
      timecode        : 04:50:01;16
Stream mapping:
  Stream #0:1 -> #0:0 (dnxhd (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libx264 @ 0000023e44daee80] using SAR=1/1
[libx264 @ 0000023e44daee80] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0000023e44daee80] profile High 4:2:2, level 5.2, 4:2:2, 10-bit
[libx264 @ 0000023e44daee80] 264 - core 157 r2932 303c484 - H.264/MPEG-4
AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html -
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12
lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=81 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mov, to 'output.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    timecode        : 04:50:01;16
    make            : Atomos
    make-eng        : Atomos
    com.apple.proapps.image.{TIFF}.Software: 8.5
    encoder         : Lavf58.18.103
    com.apple.proapps.image.{TIFF}.Make: Atomos
    com.apple.proapps.image.{TIFF}.Model: NinjaInferno
    Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661),
yuv422p10le, 3840x2160 [SAR 1:1 DAR 16:9], q=-1--1, 0.02 fps, 60k tbn,
59.94 tbc (default)
    Metadata:
      creation_time   : 2018-09-26T17:50:54.000000Z
      encoder         : Lavc58.31.101 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 10
channels, s32 (24 bit), 11520 kb/s (default)
    Metadata:
      creation_time   : 2018-09-26T17:50:54.000000Z
[mov @ 0000023e44dac800] not writing 'chan' tag due to lack of channel
information speed=0.0988x
frame= 8128 fps=5.9 q=-1.0 Lsize=  971152kB time=00:02:15.58
bitrate=58677.6kbits/s speed=0.0983x
video:780272kB audio:190690kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.019521%
[libx264 @ 0000023e44daee80] frame I:49    Avg QP:36.58  size:437119
[libx264 @ 0000023e44daee80] frame P:2388  Avg QP:38.73  size:169582
[libx264 @ 0000023e44daee80] frame B:5691  Avg QP:41.37  size: 65475
[libx264 @ 0000023e44daee80] consecutive B-frames:  4.5%  4.7%  5.2% 85.5%
[libx264 @ 0000023e44daee80] mb I  I16..4: 15.7% 69.9% 14.4%
[libx264 @ 0000023e44daee80] mb P  I16..4:  6.0% 20.7%  3.1%  P16..4: 30.3%
10.4%  4.0%  0.0%  0.0%    skip:25.6%
[libx264 @ 0000023e44daee80] mb B  I16..4:  0.9%  3.2%  0.6%  B16..8:
28.1%  5.0%  0.8%  direct: 3.6%  skip:57.8%  L0:42.9% L1:51.0% BI: 6.1%
[libx264 @ 0000023e44daee80] 8x8 transform intra:69.2% inter:77.2%
[libx264 @ 0000023e44daee80] coded y,uvDC,uvAC intra: 51.8% 81.2% 31.9%
inter: 13.2% 16.3% 1.2%
[libx264 @ 0000023e44daee80] i16 v,h,dc,p: 21% 33%  6% 40%
[libx264 @ 0000023e44daee80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 21% 16%
6%  8%  8%  9%  7%  8%
[libx264 @ 0000023e44daee80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 28% 12%  6%
10%  7%  9%  5%  6%
[libx264 @ 0000023e44daee80] i8c dc,h,v,p: 42% 19% 21% 18%
[libx264 @ 0000023e44daee80] Weighted P-Frames: Y:2.6% UV:2.2%
[libx264 @ 0000023e44daee80] ref P L0: 78.3% 14.6%  7.0%  0.1%
[libx264 @ 0000023e44daee80] ref B L0: 88.7%  9.0%  2.3%
[libx264 @ 0000023e44daee80] ref B L1: 96.4%  3.6%
[libx264 @ 0000023e44daee80] kb/s:47137.80


More information about the ffmpeg-user mailing list