Opened 11 months ago

Last modified 11 months ago

#10438 new defect

ffplay fails to take into account -t and -autoexit at the same time

Reported by: Théo Owned by:
Priority: normal Component: ffplay
Version: git-master Keywords:
Cc: Théo Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

When trying to display an image for a set period of time and exiting after it's done instead of getting the image for a set period of time and exiting it, exit immediately.

How to reproduce:

ffplay -t 5 -autoexit denial_everywhere.jpg
Input #0, image2, from 'denial_everywhere.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 9581 kb/s
  Stream #0:0: Video: mjpeg (Progressive), yuvj444p(pc, bt470bg/unknown/unknown), 480x272 [SAR 300:300 DAR 30:17], 25 fps, 25 tbr, 25 tbn
[swscaler @ 0x7fbb00153700] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 3 times
   0.07 M-V:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0  

ffplay version N-110941-g1636fb415a
built with gcc 11 (Ubuntu 11.3.0-1ubuntu1~22.04.1)

Attachments (1)

ffplay_full.log (21.3 KB ) - added by Théo 11 months ago.
Full debug log

Download all attachments as: .zip

Change History (5)

by Théo, 11 months ago

Attachment: ffplay_full.log added

Full debug log

comment:1 by Michael Koch, 11 months ago

Workaround: Use -loop 125 instead of -t 5. The default framerate is 25.

in reply to:  1 comment:2 by Théo, 11 months ago

Replying to Michael Koch:

Workaround: Use -loop 125 instead of -t 5. The default framerate is 25.

Hey, thanks for the workaround but do you know why it would only work with .png image and not .jpeg ? For example :

time ffplay -autoexit -loop 625 adamdenial.png
ffplay -autoexit -loop 625 adamdenial.png  19,93s user 1,89s system 66% cpu 32,778 total

time ffplay -autoexit -loop 625 adamdenial.jpg
ffplay -autoexit -loop 625 adamdenial.jpg  0,25s user 0,16s system 5% cpu 7,029 total

comment:3 by Michael Koch, 11 months ago

I don't know why it doesn't work with jpg images. But I'm quite sure that it did work some time ago.

comment:4 by Michael Koch, 11 months ago

It does also work with jpg images, but the framerate seems to be much faster:

This shows the image for about 3 seconds:
ffplay -autoexit -loop 300 spectrum.jpg

This shows the image for about 22 seconds:
ffplay -autoexit -loop 300 spectrum.png

Michael

Last edited 11 months ago by Michael Koch (previous) (diff)
Note: See TracTickets for help on using tickets.