NB Cant export movies with sound

I cant export, when i have a sound file in the project. when i delete the sound layer, or when i export a gif, there is no problem.

Command: /tmp/.mount_pencilmPsl3r/usr/plugins/ffmpeg -i /tmp/Pencil2D/riggig2_Y2xD_j1r6v7l3/data/sound_20230714_144251_941.wav -filter_complex [0:a:0] aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=mono,volume=1,adelay=0S|0S,apad=whole_len=1947750[ad0];[ad0] amerge=inputs=1, pan=mono|c0=c0 [out] -ar 44100 -acodec pcm_s16le -ac 2 -map [out] -y -ss 0 -to 44.1667 /tmp/Pencil2D-epiadC/tmpaudio.wav ffmpeg version 2.8.17-0ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609 configuration: --prefix=/usr --extra-version=0ubuntu0.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, wav, from ‘/tmp/Pencil2D/riggig2_Y2xD_j1r6v7l3/data/sound_20230714_144251_941.wav’: Metadata: encoder : Lavf56.40.101 Duration: 00:00:44.00, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s [amerge @ 0x2299100] Value 1.000000 for parameter ‘inputs’ out of range [2 - 64] Last message repeated 1 times [amerge @ 0x2299100] Error setting option inputs to value 1. [Parsed_amerge_4 @ 0x2299040] Error applying options to the filter. [AVFilterGraph @ 0x22963c0] Error initializing filter ‘amerge’ with args ‘inputs=1’ Error initializing complex filters. Numerical result out of range Exit status: CrashExit Exit code: 1 System Info Pencil2D version: 0.6.6 (nightly) Build ABI: x86_64-little_endian-lp64 Kernel: linux, 5.4.0-150-generic Operating System: Linux Mint 20.2 end

[amerge @ 0x2299100] Value 1.000000 for parameter 'inputs' out of range [2 - 64]

@FraFraFrankenstone It seems like you are using Linux Mint. Can you confirm to me if this is correct?

Also can you share the exact audio file you used so we can test it as well?

yes, linux mint is correct.

Linux Janski 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

I tried different sound files with the same result. It seems to be the system, not the sound file.

Thank you for your fast reply!

Maybe the project file is corrupt? riggig2.pclx (3.9 MB)

Is there an issue with ffmpeg or is it in pencil? layout=mono

I think i will update my computer to peppermint os. My linux mint installation is quite old.

FFmpeg 4.2.7

https://trac.ffmpeg.org/wiki/AudioChannelManipulation

The filter amerge needs the argument 2 or higher.

Maybe a regression? I have exported it now with 0.6.6 without a problem.

On Linux builds (excluding flatpaks and appimages) the FFmpeg version installed on your system is typically used for export. FFmpeg 3.2 or higher is required to export projects with exactly one audio clip. Your error message shows that you are using FFmpeg 2.8.17. Any one of the following will fix your issue:

  • Update FFmpeg on your system
  • Download a static ffmpeg build and place it in a directory named “plugins” in the same directory as the Pencil2D executable
  • Use the flatpak or appimage builds
1 Like

I have updated my system to peppermint OS and tried again with the same sound file and the nightly build Linux Appimage from 5th June 23 (Pencil2d-linux-612) Still crashing. sorry.

On my computer is ffmpeg 6.0 installed, but could it be that you serve an ancient version (2.8.17) of ffmpeg in the appimage?

Command: /tmp/.mount_pencilLVMbAA/usr/plugins/ffmpeg -i /tmp/Pencil2D/Default_Y2xD_jy9757ac/data/sound_20230716_162634_974.wav -filter_complex [0:a:0] aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=mono,volume=1,adelay=14700S|14700S,apad=whole_len=1866900[ad0];[ad0] amerge=inputs=1, pan=mono|c0=c0 [out] -ar 44100 -acodec pcm_s16le -ac 2 -map [out] -y -ss 0 -to 42.3333 /tmp/Pencil2D-zFmaSP/tmpaudio.wav ffmpeg version 2.8.17-0ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609 configuration: --prefix=/usr --extra-version=0ubuntu0.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, wav, from ‘/tmp/Pencil2D/Default_Y2xD_jy9757ac/data/sound_20230716_162634_974.wav’: Duration: 00:00:42.00, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s [amerge @ 0x103c720] Value 1.000000 for parameter ‘inputs’ out of range [2 - 64] Last message repeated 1 times [amerge @ 0x103c720] Error setting option inputs to value 1. [Parsed_amerge_4 @ 0x103c660] Error applying options to the filter. [AVFilterGraph @ 0xff90c0] Error initializing filter ‘amerge’ with args ‘inputs=1’ Error initializing complex filters. Numerical result out of range Exit status: CrashExit Exit code: 1 System Info Pencil2D version: 0.6.6 (nightly) Build ABI: x86_64-little_endian-lp64 Kernel: linux, 6.1.0-9-amd64 Operating System: PeppermintOS end

I have build it from source and it works normally. This means the nightly build 612 from june the 5th is wonky.

Development Build Jul 16 2023

Operating System: PeppermintOS CPU Architecture: x86_64 Qt Version: 5.15.8

With the newest NB 619:

Command: /tmp/.mount_pencilFtGIVq/usr/plugins/ffmpeg -f rawvideo -pixel_format bgra -video_size 1280x720 -framerate 12 -i - -threads 2 -i /tmp/Pencil2D-uPXPee/tmpaudio.wav -pix_fmt yuv420p -y /home/stefan/Animation/MyAnimation.mp4 ffmpeg version 2.8.17-0ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609 configuration: --prefix=/usr --extra-version=0ubuntu0.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Input #0, rawvideo, from ‘pipe:’: Duration: N/A, start: 0.000000, bitrate: 353894 kb/s Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 1280x720, 353894 kb/s, 12 tbr, 12 tbn, 12 tbc Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, wav, from ‘/tmp/Pencil2D-uPXPee/tmpaudio.wav’: Metadata: encoder : Lavf56.40.101 Duration: 00:00:07.17, bitrate: 1411 kb/s Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s [libx264 @ 0xb96960] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 [libx264 @ 0xb96960] profile High, level 3.1 [libx264 @ 0xb96960] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - x264, the best H.264/AVC encoder - VideoLAN - 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=3 lookahead_threads=1 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=12 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [aac @ 0xb97c60] The encoder ‘aac’ is experimental but experimental codecs are not enabled, add ‘-strict -2’ if you want to use it. Exit status: CrashExit Exit code: 1 System Info Pencil2D version: 0.6.6 (nightly) Build ABI: x86_64-little_endian-lp64 Kernel: linux, 6.1.0-9-amd64 Operating System: PeppermintOS end

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