Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 31st August 2010, 16:42   #1  |  Link
cord-factor
Registered User
 
Join Date: Jan 2008
Location: Kharkov, UA
Posts: 105
[SOLVED] Extract every 250th frame from video?

Subj. How can I do that?
I have 1 hour video and I have to do "Time-lapse" clip from it. Video is HDV (progressive, 25fps).
Which software can extract every 250th frame?
Next, the frame-sequence will be converted to video by mencoder (like this)
Code:
mencoder "mf://*.jpg" -mf fps=25 -o output.avi -ovc lavc -lavcopts vcodec=mpeg4
__________________
Gentoo linux

Last edited by cord-factor; 1st September 2010 at 16:15.
cord-factor is offline   Reply With Quote
Old 31st August 2010, 18:13   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Avisynth:

SelectEvery(250,0)
Guest is offline   Reply With Quote
Old 31st August 2010, 18:51   #3  |  Link
kypec
User of free A/V tools
 
kypec's Avatar
 
Join Date: Jul 2006
Location: SK
Posts: 826
Is Avisynth working in Linux???
kypec is offline   Reply With Quote
Old 31st August 2010, 19:04   #4  |  Link
cord-factor
Registered User
 
Join Date: Jan 2008
Location: Kharkov, UA
Posts: 105
No, linux only solution. And, I don't use wine.

However, ffmpeg seems to can do that:
Code:
ffmpeg -i 02.m2t -y -an -sameq -s 1920x1080 -f image2 -r 1/10 nome%03d.png
it creates some PNG's, but I am not sure, is it correct frames...
__________________
Gentoo linux
cord-factor is offline   Reply With Quote
Old 31st August 2010, 19:25   #5  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
How about encoding directly with MEncoder? This avoids unnecessary colorspace conversion (YUV->RGB->YUV) and writing temporary image files on disk:

Code:
mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:vqscale=3 -vf framestep=250 -fps 6250 -ofps 25 input.m2t -o output.avi
Note the relation of framestep, ofps and fps: 250*25=6250. If you meant to encode every 10th frame (10x speedup instead of 250x), it would be -vf framestep=10 -fps 250 -ofps 25.
nm is offline   Reply With Quote
Old 1st September 2010, 16:14   #6  |  Link
cord-factor
Registered User
 
Join Date: Jan 2008
Location: Kharkov, UA
Posts: 105
Quote:
Originally Posted by nm View Post
How about encoding directly with MEncoder? This avoids unnecessary colorspace conversion (YUV->RGB->YUV) and writing temporary image files on disk:

Code:
mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:vqscale=3 -vf framestep=250 -fps 6250 -ofps 25 input.m2t -o output.avi
Note the relation of framestep, ofps and fps: 250*25=6250. If you meant to encode every 10th frame (10x speedup instead of 250x), it would be -vf framestep=10 -fps 250 -ofps 25.
Thx, It works
__________________
Gentoo linux
cord-factor is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:32.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.