[FFmpeg-trac] #9277(undetermined:new): ffmpeg concat cannot mix pipe and file input
FFmpeg
trac at avcodec.org
Thu Jun 3 23:43:08 EEST 2021
#9277: ffmpeg concat cannot mix pipe and file input
-------------------------------------+-------------------------------------
Reporter: Trevor | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: concat | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
Between 4.2.2 and 4.3.2 you can no longer use both pipe and file input for
concat (file input for the images, and pipe for the list of files and
durations).
How to reproduce:
{{{
% ffmpeg "-v" "error" "-f" "concat" "-protocol_whitelist" "file,pipe" "-i"
"-" "-pix_fmt" "yuv420p" "-vcodec" "libx264" "-vf"
"scale=trunc(iw/2)*2:trunc(ih/2)*2,fps=30" "-crf" "28" "output.mp4"
ffmpeg version N-57631-gebedd26eef-static
https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg
developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-
debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio
--cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp
--enable-libgme --enable-gray --enable-libaom --enable-libfribidi
--enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt
--enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid
--enable-libzvbi --enable-libzimg
libavutil 57. 0.100 / 57. 0.100
libavcodec 59. 1.100 / 59. 1.100
libavformat 59. 2.101 / 59. 2.101
libavdevice 59. 0.100 / 59. 0.100
libavfilter 8. 0.101 / 8. 0.101
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
}}}
The content piped to stdin is:
{{{
ffconcat version 1.0
file S2bioaerIaLTABx8PcEU0w.1622751258.259273.jpg
duration 0.19855499267578125
file S2bioaerIaLTABx8PcEU0w.1622751258.468068.jpg
duration 0.027949094772338867
file S2bioaerIaLTABx8PcEU0w.1622751258.496017.jpg
duration 0.47649693489074707
file S2bioaerIaLTABx8PcEU0w.1622751258.972514.jpg
duration 0.13218116760253906
file S2bioaerIaLTABx8PcEU0w.1622751259.104695.jpg
duration 0.05051994323730469
file S2bioaerIaLTABx8PcEU0w.1622751259.155215.jpg
duration 0.06785297393798828
file S2bioaerIaLTABx8PcEU0w.1622751259.223068.jpg
duration 0.0591120719909668
file S2bioaerIaLTABx8PcEU0w.1622751259.28218.jpg
duration 0.07902193069458008
file S2bioaerIaLTABx8PcEU0w.1622751259.361202.jpg
duration 0.48149991035461426
file S2bioaerIaLTABx8PcEU0w.1622751259.842702.jpg
duration 0.5122950077056885
file S2bioaerIaLTABx8PcEU0w.1622751260.354997.jpg
duration 0.11454916000366211
file S2bioaerIaLTABx8PcEU0w.1622751260.469546.jpg
duration 2.9862449169158936
file S2bioaerIaLTABx8PcEU0w.1622751263.455791.jpg
duration 0.09715390205383301
file S2bioaerIaLTABx8PcEU0w.1622751263.552945.jpg
duration 0.1610550880432129
file S2bioaerIaLTABx8PcEU0w.1622751263.552945.jpg
}}}
With an error:
{{{
[concat @ 0x6323e00] Impossible to open
'pipe:S2bioaerIaLTABx8PcEU0w.1622751258.259273.jpg'
pipe:: Invalid data found when processing input
}}}
I can fix it by changing the stdin to be a file rather than pipe and
change the command line to `-i input.txt` rather than `-i -` and remove
pipe from the protocol_whitelist. But this worked from ffmpeg version 3.3
through 4.2.2.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9277>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list