LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-03-2009, 04:57 PM   #1
hectorDUQUE
Member
 
Registered: Jan 2007
Posts: 121

Rep: Reputation: 15
mencoder - skip frames


hi guys,

i would like to copy some frames from a video.
I am trying this command to copy the whole video:

Code:
mencoder  -of avi -nosound -ovc copy When_Galaxies_collide__Latest_images_from_NASA_and_Hubble.flv  -o  out.flv
1. how can i do to copy some frames after skipping another ones?

2. how can i do to get just one frame; i mean on image (jpg) ?

thanks in advance,

Hector
 
Old 03-06-2009, 08:45 PM   #2
T74marcell
Member
 
Registered: Mar 2009
Posts: 102

Rep: Reputation: 18
Assuming that you know the starting and trailing cut points, first cut off the tail, then cut off the start section. If you would start by cutting the head, then you would need to recalculate the end position when dealing with the tail.

Just a sample:
Quote:
mencoder -endpos "00:20:33" -ovc copy -oac copy \
"in.avi" -o "out.avi"
mencoder -ss "00:11:15" -ovc copy -oac copy \
"out.avi" -o "final.avi"
Arch Linux

Last edited by T74marcell; 03-14-2009 at 01:06 AM.
 
Old 03-09-2009, 03:00 PM   #3
hDUQUE
Member
 
Registered: Jan 2007
Posts: 76

Rep: Reputation: 15
hey,
thank you T74marcell, it works ...

i wonder if you now how to take out just one frame to a jpg file ?

hector
 
Old 03-11-2009, 02:52 PM   #4
pwalden
Member
 
Registered: Jun 2003
Location: Washington
Distribution: Raspbian, Ubuntu, Chrome/Crouton
Posts: 374

Rep: Reputation: 50
The following dumps one second of jpeg frames starting at position hh:mm:ss

Quote:
mplayer -ss hh:mm:ss -endpos 1 -vo jpeg "in.avi"
 
Old 03-12-2009, 02:04 PM   #5
hectorDUQUE
Member
 
Registered: Jan 2007
Posts: 121

Original Poster
Rep: Reputation: 15
thank you guys ... it works!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mencoder skips frames when dealing with MPEG2 audio streams stringZ Linux - Software 3 05-20-2007 04:57 AM
encoding picture frames using mencoder ellensn Linux - Software 2 05-31-2006 01:46 PM
Possible to create a frames effect in an HTML page without using frames? furfurdemon666 General 10 12-12-2004 06:52 AM
frames dilberim82 General 3 08-02-2001 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration