I cant export in mp4

here is the error code if you need more details then tell me

Command: C:/Users/pooha/Downloads/pencil2d-win64-0.6.6/Pencil2D/plugins/ffmpeg.exe -f rawvideo -pixel_format bgra -video_size 601x600 -framerate 24 -i - -threads 4 -pix_fmt yuv420p -y C:/Users/pooha/Videos/a.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: 276940 kb/s Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 601x600, 276940 kb/s, 24 tbr, 24 tbn, 24 tbc Stream mapping: Stream #0:0#0:0 (rawvideo (native) → h264 (libx264)) [swscaler @ 0000020a0e570000] Warning: data is not aligned! This can lead to a speed loss [libx264 @ 0000020a0e51af80] width not divisible by 2 (601x600) 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.22000 Operating System: Windows 10 (10.0) end

apparently i can export in gif but not mp4

Your canvas/export width and height need to be a multiple of 2 to export to an mp4. That is a limitation of the codec.

thanks, it worked :D

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