Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question about playing pictures #671

Open
qinjianzhanqing opened this issue Aug 15, 2024 · 1 comment
Open

question about playing pictures #671

qinjianzhanqing opened this issue Aug 15, 2024 · 1 comment

Comments

@qinjianzhanqing
Copy link

qinjianzhanqing commented Aug 15, 2024

Hello, I have a question about playing pictures. Is there a parameter that can set the duration of playing images? Currently, playing images defaults to loop playback, with a property duration of 0.04 seconds.Sometimes I need to playlist play pictures and videos, but currently this requirement is not met. The default image duration of PotPlayer and VLC is 10 seconds, and it can be set through parameter settings.

@MrBean2016
Copy link
Contributor

A workaround can be to generate a single frame video that is 10 s long?

ffmpeg -r 0.01 -loop 1 -i image.jpg -i audio.mp3 -c:v libx264 -tune stillimage -preset ultrafast -ss 00:00:00 -t 00:00:10 -c:a aac -b:a 96k -pix_fmt yuv420p -shortest out.mp4 -y

https://stackoverflow.com/a/71546741/4146066

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants