I am trying to use FFMPEG to transcode videos with very large frames (4096 x 4096). This short video is only two minutes, but the original video file is 15.8 GB. (Video is an animation designed to project onto domes of a planetarium.)
The source file is Quicktime MOV, which contains uncompressed Photo-JPEG images (with sound, too). When I tell FFMPEG to transcode my MOV file to an MP4 file, it simply says:
Error opening encoder for output stream # 0: 0 - possibly incorrect parameters, such as track_ bit, speed, width or height
Not very useful, but yes, I checked that all parameters are correct and / or default. In fact, if I changed the requested output size to 2048x2048, then everything will be very good. . Therefore, I suspect that the encoder has an upper bound.
I'm sure. Any suggestions that lead to a successful conversion will be greatly appreciated. (At this point, I also wish to consider alternatives to FFMPEG.)
Facts
I run FFMPEG from a script:
set srcFile=%1
set dstFile=%srcFile:.mov=.mp4%
ffmpeg -i %srcFile% -movflags faststart -q:a 0 -q:v 0 -pix_fmt yuv420p -sws_flags gauss -s 4096x4096 %dstFile%
Output
ffmpeg version N-50911-g9efcfbe Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 13 2013 21:26:48 with gcc 4.7.2 (GCC)
configuration:
ble-libopus
libavutil 52. 19.100 / 52. 19.100
libavcodec 55. 0.100 / 55. 0.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 54. 4.100 / 54. 4.100
libavfilter 3. 45.103 / 3. 45.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2013-01-11 23:41:30
Duration: 00:01:40.57, start: 0.000000, bitrate: 1357694 kb/s
Stream
Metadata:
creation_time : 2013-01-11 23:41:30
handler_name : Apple Alias Data Handler
Stream
tbr, 3k tbn, 3k tbc
Metadata:
creation_time : 2013-01-11 23:41:30
handler_name : Apple Alias Data Handler
File 'also-sprach-zarathustra-4k.mp4' already exists. Overwrite ? [y/N] y
using SAR=1/1
[libx264 @ 003b9c80] frame MB size (256x256) > level limit (36864)
[libx264 @ 003b9c80] DPB size (4 frames, 262144 mbs) > level limit (2 frames, 184320 mbs)
[libx264 @ 003b9c80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI1 BMI2
x264 [error]: malloc of size 17305600 failed
Output
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
Stream
Metadata:
creation_time : 2013-01-11 23:41:30
handler_name : Apple Alias Data Handler
Stream
Metadata:
creation_time : 2013-01-11 23:41:30
handler_name : Apple Alias Data Handler
Stream mapping:
Stream
Stream
Error while opening encoder for output stream
PS: Yes, for those who play at home, this is the 2001 theme - Space Odyssey. You can see the YouTube version 1K here: 2001 - Fuldyay’s Space Odyssey And yes, in a planetarium with a good sound system, this is absolutely EPIC.