ts files, and am using the following command to concatenate them into a final mp4: ffmpeg -i "concat:intermediate0.ts|intermediate1.ts|intermediate2.ts|intermediate3.ts|intermediate4.ts" -c copy -bsf:a aac_adtstoasc final.mp4
![ffmpeg concat videos high memory ffmpeg concat videos high memory](https://i.stack.imgur.com/i3A2e.png)
Auto-inserting h264_mp4toannexb bitstream filter73.4xĪv_interleaved_write_frame(): Cannot allocate memory186:23:47.18 bitrate= 192.9kbits/s speed=70.7x Auto-inserting h264_mp4toannexb bitstream filter77.8x Auto-inserting h264_mp4toannexb bitstream filter 83x Auto-inserting h264_mp4toannexb bitstream filter88.9x
![ffmpeg concat videos high memory ffmpeg concat videos high memory](https://windows-cdn.softpedia.com/screenshots/elGUI4FFmpeg_6.png)
Auto-inserting h264_mp4toannexb bitstream filter96.6x Auto-inserting h264_mp4toannexb bitstream filter 106x Auto-inserting h264_mp4toannexb bitstream filter 116x Auto-inserting h264_mp4toannexb bitstream filter 125x Auto-inserting h264_mp4toannexb bitstream filter141x Auto-inserting h264_mp4toannexb bitstream filter163x Auto-inserting h264_mp4toannexb bitstream filter194x Auto-inserting h264_mp4toannexb bitstream filter 229x Auto-inserting h264_mp4toannexb bitstream filter 265x Auto-inserting h264_mp4toannexb bitstream filter316x Auto-inserting h264_mp4toannexb bitstream filter449x Auto-inserting h264_mp4toannexb bitstream filter601x Auto-inserting h264_mp4toannexb bitstream filter821x Auto-inserting h264_mp4toannexb bitstream filter.29e+03x Auto-inserting h264_mp4toannexb bitstream filterĭuration: N/A, start: 0.000000, bitrate: 193 kb/s Is there any way to avoid this error?Įdit: Added log: ffmpeg -f concat -safe 0 -i vidlist.txt -c copy final.mp4įfmpeg version git-2e38c63 Copyright (c) 2000-2020 the FFmpeg developersĬonfiguration: -enable-gpl -enable-version3 -enable-sdl2 -enable-fontconfig -enable-gnutls -enable-iconv -enable-libass -enable-libdav1d -enable-libbluray -enable-libfreetype -enable-libmp3lame -enable-libopencore-amrnb -enable-libopencore-amrwb -enable-libopenjpeg -enable-libopus -enable-libshine -enable-libsnappy -enable-libsoxr -enable-libsrt -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-libvmaf -enable-libvorbis -enable-libvo-amrwbenc -enable-libmysofa -enable-libspeex -enable-libxvid -enable-libaom -disable-w32threads -enable-libmfx -enable-ffnvcodec -enable-cuda-llvm -enable-cuvid -enable-d3d11va -enable-nvenc -enable-nvdec -enable-dxva2 -enable-avisynth -enable-libopenmpt -enable-amf
FFMPEG CONCAT VIDEOS HIGH MEMORY PC
However, since my PC only has 16 gigs of RAM, the concat command gives the error: av_interleaved_write_frame(): Cannot allocate memoryĪfter about 16 GB of files are processed. Basically I put the names of all the videos in a txt and passed it to the ffmpeg concat command.
![ffmpeg concat videos high memory ffmpeg concat videos high memory](https://i.stack.imgur.com/1PsSQ.png)
![ffmpeg concat videos high memory ffmpeg concat videos high memory](https://windows-cdn.softpedia.com/screenshots/elGUI4FFmpeg_1.png)
I need to concatenate all of them and have tried to follow this for the same. I have 40-50 video files, each about 1 GB large (all same resolution, framerate, encoding).