LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2008, 03:51 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Rep: Reputation: 49
taking snapshot from mplayer


As you know vlc media player allows you to take snap shot of image in video.I have mplayer on my open suse 10.3.So I downloaded mplayer-snapshot-0.3 whose description said it allows you to create thumbnail of video.Readme file in the tarball was empty.I have installed the tarball but don't know how to take snapshot.If anybody of you know about this or any other way to take snapshot in mplayer please inform.

Last edited by sumeet inani; 12-15-2008 at 03:53 AM.
 
Old 12-15-2008, 06:05 AM   #2
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
One way, of course, would be to freeze MPlayer with <space bar> and then take a screenshot. Gimp does this under something like 'aquire' menu entry.
 
Old 12-15-2008, 06:35 AM   #3
ozminh
Member
 
Registered: Aug 2007
Posts: 73

Rep: Reputation: 19
try 'mplayer -vo help'
 
Old 12-17-2008, 02:00 AM   #4
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Original Poster
Rep: Reputation: 49
To get screen shot of a window we press alt + printscreen.I did the same for mplayer window but the output image is full black.The same happens even in windows when you press printscreen to cut an image from window of a video player.That is why vlc player is favoured.

dear lugoteehalt,
Can you tell how to capture screen using gimp.

dear ozminh,
Which option should I select from choices of vo.Can you explain more.

Last edited by sumeet inani; 12-17-2008 at 02:07 AM.
 
Old 12-17-2008, 05:21 AM   #5
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Quote:
Originally Posted by sumeet inani View Post
dear lugoteehalt,
Can you tell how to capture screen using gimp.
At the top of the thing with the tools in it on the left of the screen there are a few menu items, including file and script fu from memory. In one of these there is the choice of, I think, 'aquire'. Click this. You may then choose whether to take a screen shot of the whole screen or just one window; you can do this on whatever desktop or virual window you like by clocking on what you want with the cursor which has turned into a crosss. Hope helps.
 
Old 12-17-2008, 06:54 AM   #6
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
mplayer -vf screenshot mymovie.avi
Then, use the 's' key to take a screnshot.
 
Old 12-17-2008, 07:17 AM   #7
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by Agrouf View Post
mplayer -vf screenshot mymovie.avi
Then, use the 's' key to take a screnshot.
It is easier to add this line:
Code:
vf=screenshot
into ~/.mplayer/config
 
Old 12-17-2008, 11:12 PM   #8
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Original Poster
Rep: Reputation: 49
Thanks to Agrouf,ErV for helpful answers.

To lugoteehalt
In gimp there is
xtns > script-fu > then following options
button
logo
make brush
misc
pattern
util
web page theme
Can you give exact details.

Last edited by sumeet inani; 12-19-2008 at 02:06 AM.
 
Old 12-22-2008, 10:19 PM   #9
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Original Poster
Rep: Reputation: 49
TIPS FOR ALL READERS

If you want to capture a frame from video which appears at 134th second then run following command in terminal
>mplayer <filepath> -vo png -ss 134 -frames 50
then press q to exit.
I like this because I can select all frames from given second whichever looks best.Also here frames mean stop after getting specified frames from time specified by ss.I found that value I gave for ss & the time that appeared in mplayer skin differed by 5 seconds so first play the video without capturing as
mplayer <file>
and when you see desired picture press space to pause & note the time from terminal then press q to quit then use that value when you capture frame in next run.
The images will be saved in the folder from which you ran mplayer command.
Comparison with windows
In windows i used to search for softwares like blazemedia pro,image video machine,image grab etc. to get screenshots but mplayer has got everything.Really linux scores over windows in many areas.

Last edited by sumeet inani; 01-09-2010 at 04:19 AM. Reason: more lucid
 
Old 05-28-2009, 06:15 AM   #10
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Original Poster
Rep: Reputation: 49
In mplayer when we press 's' on keyboard then that frame gets saved as png file.Is it possible to save that frame as jpg file(because it occupies less space) then what i have to do.
 
Old 05-28-2009, 08:37 AM   #11
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Quote:
Originally Posted by sumeet inani View Post
In mplayer when we press 's' on keyboard then that frame gets saved as png file.Is it possible to save that frame as jpg file(because it occupies less space) then what i have to do.
Probably possible to do it directly but one way of course is to open *.png in Gimp then save it as *.jpg.
 
Old 05-28-2009, 08:45 AM   #12
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
pipe it to convert
 
Old 06-04-2009, 11:17 PM   #13
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Original Poster
Rep: Reputation: 49
To convert png file to jpg.What command should I give.Will it not require software like image magick or is it available by default?
 
Old 06-05-2009, 04:21 AM   #14
ozminh
Member
 
Registered: Aug 2007
Posts: 73

Rep: Reputation: 19
image magick:
'convert background.jpg 1.png'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
About LVM Snapshot geethusari LinuxQuestions.org Member Intro 1 12-03-2007 07:11 AM
Taking CVS snapshot mashed Linux - Software 3 04-07-2006 11:44 PM
Taking a snapshot of a program using a command? shydra Linux - Software 6 03-02-2006 06:12 AM
code for taking snapshot with a webcam orso08 Programming 2 12-05-2003 02:45 AM
snapshot cheeyee Linux - Software 0 10-01-2002 02:40 AM


All times are GMT -5. The time now is 06:42 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration