LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-12-2004, 08:09 AM   #1
driptray
LQ Newbie
 
Registered: Jun 2003
Posts: 13

Rep: Reputation: 0
Redirecting mplayer output


I have some small mpgs that were filmed with a digital camera. The problem is that the bozo holding the camera held it in portrait, rather than landscape orientation, so I need to rotate the mpgs.

After reading some mplayer docs I tried the following:

Code:
mplayer -vf rotate=1 portrait.mpg>landscape.mpg
which rotates the mpg fine, but displays the result on the screen rather than saving it on disk. I do end up with a file named landscape.mpg, but it contains only the text output from mplayer, not the mpg itself.

Am I missing something obvious, or is there no way to do what I want?
 
Old 10-12-2004, 08:42 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
do a mplayer -vo help to see what your video output options are. You probably want to use something like yuv4mpeg as your output device.

This all exists in the mjpegtools man page, but here it is below:

Code:
Decoding streams with mplayer
       Decoding the streams with mplayer is a nice way of bringing every video
       that mplayer can play back to something you can edit or encode directly
       to  a  mpeg  video  with the mjpegtools. This method works with mplayer
       1.0pre2 or newer


       >mkfifo stream.yuv


       >mplayer -nosound -noframedrop -vo yuv4mpeg anyfile.mpg &


       >cat stream.yuv | yuv2lav -o mjpeg_wo.avi


       >mplayer -vo null -ao pcm -aofile anyfile.wav anyfile.mpg


       Now you have for example a mjpeg encoded AVI without sound.  The  sound
       will be in anyfile.wav. Now you can choose if you want to add the sound
       to the AVI with lavaddwav and edit the file and encode it.
 You can also use instead of yuv2lav, mpeg2enc or any  other  tool  from
       the mjpeg tools so your command might also look like that:


       >  cat  stream.yuv  | yuvdenoise | yuvscaler -o SVCD | mpeg2enc -f 4 -o
       video_svcd.m2v


       And cat the wav file into mp2enc to encode it to  MP2  audio.  The  -vo
       yuv4mpeg  option  works  well  with  other input types mentioned in the
       mplayer documentation.
 
  


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
redirecting make output not working - pl help mselvam Linux - Newbie 3 07-08-2005 06:38 PM
Redirecting colsole output to file. danimallv Linux - General 4 07-05-2005 03:44 PM
redirecting output of compile to a file halfcan Linux - Hardware 1 02-05-2005 11:01 PM
redirecting output in Bourne shell trutnev Linux - Software 2 04-22-2004 04:55 AM
redirecting xmms output durden2.0 Linux - Software 0 03-06-2004 08:29 PM

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

All times are GMT -5. The time now is 08:56 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
Open Source Consulting | Domain Registration