LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-09-2009, 08:19 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
How to rotate .mov 180 deg


Hi folks,

I have .mov files taken in digital camera. The files are 180 deg rotated (upside down). Please advise how to ran Unix command to rotated them 180 deg back. TIA

B.R.
satimis
 
Old 12-10-2009, 02:03 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Avidemux can read some mov files (provided you have the necessary codecs installed). Once you've loaded the video, you can just encode it to any of the available output format, applying the Rotate filter, which let you rotate the video by 90, 180 or 270 degrees.
 
Old 12-10-2009, 02:05 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Sure, try:

Code:
mencoder input.mov -oac copy -ovc lavc -vf flip -o output.mov
 
1 members found this post helpful.
Old 12-10-2009, 09:24 PM   #4
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by colucix View Post
Avidemux can read some mov files (provided you have the necessary codecs installed). Once you've loaded the video, you can just encode it to any of the available output format, applying the Rotate filter, which let you rotate the video by 90, 180 or 270 degrees.
Hi colucix,

Thanks for your advice.

I don't have avidemux installed. I have mencoder running on the box.

B.R.
satimis
 
Old 12-10-2009, 09:33 PM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by H_TeXMeX_H View Post
Sure, try:

Code:
mencoder input.mov -oac copy -ovc lavc -vf flip -o output.mov
Hi H_TeXMeX_H,

Your command works for me. Thanks


I have following points not very clear.

1)
Code:
$ mencoder input.mov -oac copy -ovc lavc -flip -o output.mov
also did the job.


2)
On man

2a)
Code:
-oac mp3lame
Encode to MP3 (using LAME).
Whether converting the file to .mp3 format with only sound without video?

2b)
Code:
-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
              Sets a named parameter to the given value.  Use on and off or yes and no
              to set flag parameters.
What is the main function of this flag? TIA


B.R.
satimis
 
Old 12-11-2009, 03:52 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by satimis View Post
Hi H_TeXMeX_H,

Your command works for me. Thanks


I have following points not very clear.

1)
Code:
$ mencoder input.mov -oac copy -ovc lavc -flip -o output.mov
also did the job.
yeah, they are synonymous, '-flip' = '-vf flip'.

Quote:
2)
On man

2a)
Code:
-oac mp3lame
Encode to MP3 (using LAME).
Whether converting the file to .mp3 format with only sound without video?
Well, you choose what the output audio should be, if you want it as mp3 you can use '-oac mp3lame -lameopts q=2' and that should change the audio to mp3. If you wanted no video output just do:

Code:
mencoder input.avi -oac mp3lame -lameopts q=2 -ovc copy -of rawaudio -o output.mp3
Quote:
2b)
Code:
-vf <filter=named_parameter1=value1[:named_parameter2=value2:...]>
              Sets a named parameter to the given value.  Use on and off or yes and no
              to set flag parameters.
What is the main function of this flag? TIA


B.R.
satimis
'-vf' = video filters, basically just various filters you can apply to video, like flipping, cropping, scaling, deblocking, etc. See:
http://www.mplayerhq.hu/DOCS/man/en/...IDEO%20FILTERS
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotate screen 180° without accelerated XOrg drivers? lefty.crupps Linux - Desktop 3 10-19-2009 02:01 AM
Rotate display -- Option "Rotate" "CCW" Brad.Scalio@noaa.gov Linux - General 0 01-27-2009 05:32 AM
Screen turned to 90 deg in SUSE lifeafterdeath Linux - Newbie 3 11-10-2007 11:32 PM
Powerbook 180 mattp Linux - Laptop and Netbook 2 02-16-2005 09:36 AM
Trouble getting .avi .mov .mov files to run redman13 Linux - Newbie 4 11-09-2003 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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