[FFmpeg-trac] #8665(ffmpeg:new): Infinite Loop Concatenating Two Videos
FFmpeg
trac at avcodec.org
Tue May 12 20:44:00 EEST 2020
#8665: Infinite Loop Concatenating Two Videos
--------------------------------+--------------------------------------
Reporter: dreedy | Type: defect
Status: new | Priority: important
Component: ffmpeg | Version: git-master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------+--------------------------------------
When concatenating two videos, the process never completes. The output
file continues to grow in size until file space runs out.
'''Commit Causing the Endless Loop'''
Verified the issue started in this commit.
commit 3ad5d4df9ce794d3eeb0f526c5f3e446bf97c616
Date: Fri Aug 30 13:28:17 2019 -0400
'''Last Working Commit'''
commit 85386c36e331d1387a3ac0f322e3774c1b55dc26
Date: Sun Sep 8 10:47:38 2019 +0200
I am providing two example videos I am using, in case there is something
specific to the videos I am attempting to concatenate. The videos I am
concatenating were created from an audio file and a still image.
How to reproduce:
{{{
ffmpeg -loglevel fatal -i 3272_segment_0.mp4 -i 3272_segment_1.mp4
-filter_complex \
"[0:v] [0:a] [1:v] [1:a] concat=n=2:v=1:a=1 [v] [a]" \
-map [v] -map [a] -vcodec libx264 -ar 48000 -acodec aac 3272.mp4
}}}
'''Video Segments Creation'''
The videos used in the previous command are "Picture in a Picture" videos.
This was done using an overlay. Each of the videos in the "Picture in a
Picture" were created by using a still image and an audio file.
An example is below of how the video was created using a still image and
an audio file.
{{{
ffmpeg -loop 1 -i silhouette.png -i 3272_segment_0_background.webm -c:v
libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest
3272_segment_0.mp4
ffmpeg -loop 1 -i silhouette.png -i 3272_segment_0_overlay.webm -c:v
libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest
3272_segment_1.mp4
}}}
FFmpeg Version Information
{{{
ffmpeg -v 9 -loglevel 99 -i
ffmpeg version N-97739-g876cfa67f3 Copyright (c) 2000-2020 the FFmpeg
developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix=/home/dreedy/ffmpeg_build --pkg-config-
flags=--static --extra-cflags=-I/home/dreedy/ffmpeg_build/include --extra-
ldflags=-L/home/dreedy/ffmpeg_build/lib --extra-libs=-lpthread
--bindir=/home/dreedy/bin --enable-ffprobe --enable-gpl --enable-libass
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-
libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-
libx264 --enable-libx265 --enable-nonfree
libavutil 56. 44.100 / 56. 44.100
libavcodec 58. 83.100 / 58. 83.100
libavformat 58. 43.100 / 58. 43.100
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 80.100 / 7. 80.100
libswscale 5. 6.101 / 5. 6.101
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument '99'.
Reading option '-i' ...Missing argument for option 'i'.
Error splitting the argument list: Invalid argument
}}}
I've wondered if the issue of concatenating the videos is caused by the
way the two videos I am attempting to concatenate were created. So I have
provided the additional steps on how those were created.
If you need any additional information, let me know and I will be happy to
include it.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8665>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list