Opened 14 months ago

Last modified 14 months ago

#9465 new defect

-frames:v 1, unexpected error message

Reported by: Michael Koch Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I don't understand why I get the error message "Could not get frame filename number 2 from pattern 'out.png'."
I have -frames:v 1 in the command line. I did also try -frames 1, same problem.

ffmpeg -i equirectangular.png -f lavfi -i color=brown -lavfi [1][0]scale2ref -frames:v 1 -y out.png

This is the console output:

ffmpeg version 2021-10-18-git-d04c005021-essentials_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers

built with gcc 10.3.0 (Rev5, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
libavutil 57. 7.100 / 57. 7.100
libavcodec 59. 12.100 / 59. 12.100
libavformat 59. 6.100 / 59. 6.100
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 14.100 / 8. 14.100
libswscale 6. 1.100 / 6. 1.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100

Input #0, png_pipe, from 'equirectangular.png':

Duration: N/A, bitrate: N/A
Stream #0:0: Video: png, rgb24(pc), 2400x1200, 25 fps, 25 tbr, 25 tbn

Input #1, lavfi, from 'color=brown':

Duration: N/A, start: 0.000000, bitrate: N/A
Stream #1:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn

Stream mapping:

Stream #0:0 (png) -> scale2ref:ref
Stream #1:0 (rawvideo) -> scale2ref:default
scale2ref:default -> Stream #0:0 (png)
scale2ref:ref -> Stream #0:1 (png)

Press [q] to stop, ? for help
Output #0, image2, to 'out.png':

Metadata:

encoder : Lavf59.6.100

Stream #0:0: Video: png, rgb24(pc, gbr/unknown/unknown, progressive), 2400x1200 [SAR 2:3 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn

Metadata:

encoder : Lavc59.12.100 png

Stream #0:1: Video: png, rgb24(pc, progressive), 2400x1200, q=2-31, 200 kb/s, 25 fps, 25 tbn

Metadata:

encoder : Lavc59.12.100 png

[image2 @ 000001716850e700] Could not get frame filename number 2 from pattern 'out.png'. Use '-frames:v 1' for a single image, or '-update' option, or use a pattern such as %03d within the filename.
Error writing trailer of out.png: Invalid argument
frame= 1 fps=0.0 q=-0.0 Lq=-0.0 size=N/A time=00:00:00.04 bitrate=N/A speed=0.182x
video:1515kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Change History (1)

comment:1 by Michael Koch, 14 months ago

For reproducing, the first input can be replaced by testsrc2:

ffmpeg -f lavfi -i testsrc2 -f lavfi -i color=brown -lavfi [1][0]scale2ref -frames:v 1 -y out.png

Note: See TracTickets for help on using tickets.