ffmpeg seek

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, helmut, xnview

Post Reply
gorhawk
Posts: 1
Joined: Thu Nov 30, 2017 11:24 am

ffmpeg seek

Post by gorhawk »

Hey!

I've recently began using XnView because my windows 10 does not generate thumbnails for symlinks to video files.
I had no thumbnails first, but then I installed the ffmpeg addon. Then I realized it will only seek to the first second (00:00:01), and I cannot change that, and it does not respect my percentage settings in MP either (I hame mostly mp4 and other files, but not avi).

Then I wrote a small proxy program for the ffmpeg addon, which transforms the arguments to the ffmpeg executable and uses my personal settings for the seek.
Then I realized that for thumbnails it's better to use input seeking because ffmpeg output seeking is slow depending on the seek position.
So:

Code: Select all

ffmpeg -i input.mp4 -ss 00:00:20 (...) 
is slow because it needs to seek and decode 20 secs into the input file.

But:

Code: Select all

ffmpeg -ss 00:00:20 -i input.mp4 (...) 
Is fast and perfect for generating thumbnails.

Could you incorporate that to the addon? Or perhaps this was your intention at the first place then why didn't it work out? :D

Thanks in advance for the answer, and thank you for the great software!
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: ffmpeg seek

Post by xnview »

gorhawk wrote:

Code: Select all

ffmpeg -ss 00:00:20 -i input.mp4 -vframes 1 -an -f rawvideo 
i use that for MP version
Pierre.
Post Reply