Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#9827 closed defect (wontfix)

FFplay doesn't stop

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

Description

FFplay doesn't stop when an image is displayed with this command line:

ffplay -loop 0 -t 5 -autoexit 1200.png

Shouldn't the -t option have higher priority than the -loop option, as in FFmpeg?
Without -loop option, the image is shown only for one frame.

Known workaround: -loop 125

C:\Users\astro\Desktop\test_pfm>ffplay -loop 0 -t 5 -autoexit 1200.png
ffplay version 2022-07-04-git-dba7376d59-essentials_build-www.gyan.dev Copyright (c) 2003-2022 the FFmpeg developers

built with gcc 12.1.0 (Rev2, 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-bzlib --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-mediafoundation --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. 27.100 / 57. 27.100
libavcodec 59. 36.100 / 59. 36.100
libavformat 59. 26.100 / 59. 26.100
libavdevice 59. 6.100 / 59. 6.100
libavfilter 8. 41.100 / 8. 41.100
libswscale 6. 6.100 / 6. 6.100
libswresample 4. 6.100 / 4. 6.100
libpostproc 56. 5.100 / 56. 5.100

Input #0, png_pipe, from '1200.png':KB vq= 0KB sq= 0B f=0/0

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

Change History (2)

comment:1 by Marton Balint, 21 months ago

Resolution: wontfix
Status: newclosed

-loop has the higher priorty, -t affects the play interval of the media. That is just how it is implemented. So -t 1 -loop 0 loops the first second infinitely.

comment:2 by Michael Koch, 21 months ago

If I want to show an image for x seconds, what's the best workaround to do this? It can be done with -loop x*25, but may be there is a better workaround which doesn't need multiplication by 25?

Note: See TracTickets for help on using tickets.