ffmpeg Error when trying to concatenate 2 parts with different speed
I’m trying to concatanate to parts of the same input video but one is speeded up 20x. The code I’m using is this:
ffmpeg -i 7.mp4 -filter_complex "[0:v]select="between(t,0,9)",setpts=PTS-STARTPTS[vn];[0:a]aselect="between(t,0,9)",asetpts=PTS-STARTPTS[an];[0:v]select="between(t,191,1174)",setpts=(1/20)*(PTS-STARTPTS)[vr];[0:a]aselect="between(t,191,1174)",atempo=20,asetpts=PTS-STARTPTS[ar];[vn][an][vr][ar]concat=n=2:v=1:a=1[vid]" -map [vid] -c:v libx265 -tag:v hvc1 -crf 23 -preset slow "output5.mp4"
Any idea of what I’m doing wrong, about the can’t allocat memory part I have 16 GB of memory and only running ffmpeg….
Errors:
[h264 @ 00000181d923ccc0] get_buffer() failed
[h264 @ 00000181d923ccc0] thread_get_buffer() failed
[h264 @ 00000181d923ccc0] decode_slice_header error
[h264 @ 00000181d923ccc0] no frame!
[fc#0 @ 00000181d91dbdc0] Task finished with error code: -12 (Cannot allocate memory)peed=0.0342x
[fc#0 @ 00000181d91dbdc0] Terminating thread with return code -12 (Cannot allocate memory)
[vist#0:0/h264 @ 00000181db1bbcc0] [dec:h264 @ 00000181d91e4680] Error submitting packet to decoder: Invalid data found when processing input
Read more here: Source link
