LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-20-2008, 09:49 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
Resizing pictures in mplayer


I would like to resize the pictures that make up a video clip. I can play the video in full screen with mplayer, but when I output the individual pictures they are small (450 X 320 I think). How can I resize the individual frames? I'm using this:

mplayer -vo jpeg -nosound video.flv
 
Old 03-21-2008, 03:21 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
the images that come out are at native resolution, so any resizing will cause softness, but, to resize images as they are being computed:

mplayer -zoom -xy 600 -vo jpeg -nosound video.flv

specifying an xy value of less than 8 will scale the image by a factor (i.e. -xy 2 would double the image size). Anything above 8 will be used as the width & the height will be calculated to maintain aspect ratio. If you don't want to maintain aspect ratio, you can give exact x,y values like so:

mplayer -vf scale=600:600 -vo jpeg -nosound video.flv

.. which would make your output images exactly 600x600.

Last edited by BrianK; 03-21-2008 at 03:22 PM.
 
Old 03-21-2008, 05:13 PM   #3
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
looks good-thanks!
 
  


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
Sony Pictures DVD and Mplayer rocksniffer Linux - Software 3 07-10-2006 12:03 PM
resizing video in mplayer compu73rg33k Linux - Software 5 01-15-2006 02:55 PM
Automaticlly resizing pictures for website? fredgt Linux - Software 3 09-03-2004 02:45 AM
Resizing Pictures command line eggoz Linux - General 2 02-29-2004 06:38 PM
Resizing pictures dancar Linux - General 3 02-24-2004 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:20 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