Help! Problem In Exporting a Project as a Video

While exporting a project as a video, I got this.

Command: D:/Program Files/Pencil2D/plugins/ffmpeg.exe -f rawvideo -pixel_format bgra -video_size 1100x619 -framerate 24 -i - -threads 4 -pix_fmt yuv420p -y C:/Users/Darth Vader/Music/Intro1.mp4 ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.1 (GCC) 20190212 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. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc 55. 3.100 / 55. 3.100 Input #0, rawvideo, from ‘pipe:’: Duration: N/A, start: 0.000000, bitrate: 522931 kb/s Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 1100x619, 522931 kb/s, 24 tbr, 24 tbn, 24 tbc Stream mapping: Stream #0:0#0:0 (rawvideo (native) → h264 (libx264)) [libx264 @ 0000026b0d62b040] height not divisible by 2 (1100x619) Error initializing output stream 0:0 – Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! Exit status: CrashExit Exit code: 1 System Info Pencil2D version: 0.6.6 (stable) Build ABI: x86_64-little_endian-llp64 Kernel: winnt, 10.0.19042 Operating System: Windows 10 (10.0) end

@vigillantoctolamp Hi. This is not exactly a problem with Pencil2D but with the MP4 H264 codec (the thing that wraps / unwraps the images and sound as a video of a certain format).

You MUST have a video height that is divisible by 2. Right now your output size is 1100 x 619. Make it 620 and it will work properly. You have to change it by double clicking on the camera layer, not when exporting in the movie export dialog.

If it still doesn’t work please paste again the new error message if you get one so we can have a developer take a look into it.

Okay. Thank You Very Much.

@vigillantoctolamp No problem, if you have any other issue let us know, we’ll try to answer as soon as we’re available :+1:

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.