View Full Version : Is there a way to lossless rotate an AVI?
duartix
28th April 2003, 13:09
The thing is:
I've captured a small movie with my digital camera in a 90º situation.:o Stupid me!
The movie is a M-JPEG AVI.
Now I would like to put it in the right position. Anyone knows a way without reencoding?
Uli
28th April 2003, 15:34
Turn your CRT :)
LOL, sorry, had to post this...:devil:
greetz, Uli
bilu
28th April 2003, 20:28
Try playing the movie through ffdshow or some player that supports rotate, otherwise you have to reencode :rolleyes:
duartix
29th April 2003, 11:14
Very funny Uli. I mean it really!
Thanks Bilu, but where is it in ffdshow? Via Avisynth?
butterw
29th April 2003, 12:25
If it's any help there is a rotate filter in virtualdub.
cult
29th April 2003, 14:26
ffdshow is a decoder with alot of useful functions
http://sourceforge.net/project/showfiles.php?group_id=53761
duartix
29th April 2003, 16:47
@butterw:
Yes I know. But that was the reencode approach.
@cult:
I know ffdshow. I just can't find a way to rotate the movie in ffdshow, unless of course if you use Avisynth. That is my question.
bilu
29th April 2003, 20:53
You're right, there is no such function on ffdshow, someone should request it :)
Never tried AVS plugins in FFDSHOW but it seems possible, look here:
http://forum.doom9.org/showthread.php?s=&postid=301742#post301742
cult
30th April 2003, 14:37
there is a function in avisynth called TurnLeft / TurnRight -Rotates the clip 90 degrees counterclock wise / 90 degrees clock wise.You can try with ffdshow+avs or make a new avs
oddball
2nd May 2003, 01:57
Use VobSub (Choose always load) and select flip video and it will playback without any loss in quality.
@oddball
Flip video just flips vertically, not horizontally, so he can't rotate.
Wilbert
2nd May 2003, 11:09
there is a function in avisynth called TurnLeft / TurnRight -Rotates the clip 90 degrees counterclock wise / 90 degrees clock wise.You can try with ffdshow+avs or make a new avs
There's also a rotate plugin for AviSynth from WarpEnterprises (which can rotate any amount degrees)!
oddball
3rd May 2003, 03:05
Wuh? That makes no sense. Never heard of a video rotated 90 degrees. If you encoded it yourself re-encode it. If got from someplace else and you know the culprit tell them to learn how to encode.
gldblade
3rd May 2003, 06:14
Um...read the original post?
I've captured a small movie with my digital camera in a 90º situation. Stupid me!
Anyone knows a way without reencoding?
doneshit
21st February 2009, 12:40
OK, the post it's old.
I had the same problem and now I solve it.
And as Google lead me here when I was looking for help, I'm posting the solution for future reference for others asking the same :rolleyes:
I had the same problem, a video filmed vertical with a photo camera.
I rotate the video using Super. The trick is to have ffdshow installed, so the only thing to do is to click "Direct Show decode" on the upper right corner, click on the button named "D" and in the new window yo have the option to flip, mirror, rotate 90° left, rotate 90° right and rotate 180°.
If you want to only rotate without reencoding, click "Stream copy" in both Audio and Video configuration.
That's it.
doneshit in rotationland ¶:Þ
buzzqw
21st February 2009, 16:14
i severely doubt that is a true stream copy
try with an FULL HD source, if you get outragenous speed.. well i'll be wrong
otherwise, super isn't stream copy
moreover.. ffdshow decode to yv12.. so you can have a "no reencode" but lossless media, also rotate.. but big several GB
BHH
mgh
22nd February 2009, 09:04
just re-encode after rotation with mjpeg codec-if the codec is set to high enough quality it should be almost lossless, and with mjpeg, speed of encoding should not be an issue
Sagekilla
22nd February 2009, 18:58
If you have mjpeg in avi, then that means you can extract all the jpeg images. If you can do that, that means you can rotate the jpeg images too.
There's support for lossless rotation in jpeg IIRC, so the only thing you need to do is find a way to do this for a ton of files then mux them again ;)
mr soft
6th March 2009, 17:28
I tried that super method with no joy. If you try to choose direct stream it will grey out the Direct show decode options.
I did succeed with VirtualDub. as butterw stated (not entirely loss less )
Drag in your file.
Hit Control f
Add filter: rotate 2
Enter desired rotate angle, tick the fit to box to get rid of the bars
and save the file.
Inspector.Gadget
7th March 2009, 05:28
SUPER sucks. If you have to re-encode anyway, use something with a more logical GUI and a program that doesn't violate the GPL.
mel2000
9th March 2009, 08:23
No way to rotate w/o reencoding so you might as well try Free Video Flip and Rotate
Input: 3GP, 3GP2, 3GPP, AMV, AVI, DVR-MS, FLV, MOV, MPEG1, MPEG2, QT, WMF/ASF
Output: 3GP, 3GP2, 3GPP, AMV, AVI, DVR-MS, FLV, MOV, MPEG1, MPEG2, QT, WMF/ASF
OS: Win 98/ME/2000/XP/2003/Vista
http://www.dvdvideosoft.com/products/dvd/Free-Video-Flip-and-Rotate.htm
mr soft
9th March 2009, 11:13
so you might as well try Free Video Flip and Rotate
I did, and it is rubbish. The quality is so poor it´s not funny.
LoRd_MuldeR
10th March 2009, 02:20
No way to rotate w/o reencoding
Really? I know that IrfanView has a "JPEG Lossless Transformations" plugin, which can rotate a JPEG image by 90°, 180° or 270°.
So if one had a tool to demux the M-JPEG stream to individual JPEG images, these images could be rotated in a lossless way with IrfanView, which also has batch processing mode.
At the end the JPEG images would need to be muxed to a M-JPEG stream again...
scharfis_brain
10th March 2009, 07:26
1) IF the video is MotionJPEG, you can separate the AVI to individual JPEGs.
2) These JPEGs you can rotate losslessly. (JPEGTools)
3) Afterwards you can put the turned JPEGs back into the AVI container.
Sorry, but I don't know the tools how to manage points 1) and 3).
whoops, LoRd_MuldeR was quicker...
slavickas
10th March 2009, 15:59
some googling showed
1) http://forum.doom9.org/archive/index.php/t-108253.html
3) http://sourceforge.net/projects/jpegtoavi/
havent tried any of these, but topic was kinda interesting, and yes I know 1) is older than original topic :)
mel2000
13th March 2009, 11:29
I did, and it is rubbish. The quality is so poor it´s not funny.
I could not reproduce your poor results from my Xvid file. The video and audio were perfect.
movmasty
29th April 2009, 08:12
Really? I know that IrfanView has a "JPEG Lossless Transformations" plugin, which can rotate a JPEG image by 90°, 180° or 270°.
So if one had a tool to demux the M-JPEG stream to individual JPEG images, these images could be rotated in a lossless way with IrfanView, which also has batch processing mode.
At the end the JPEG images would need to be muxed to a M-JPEG stream again...1) IF the video is MotionJPEG, you can separate the AVI to individual JPEGs.
2) These JPEGs you can rotate losslessly. (JPEGTools)
3) Afterwards you can put the turned JPEGs back into the AVI container.
Sorry, but I don't know the tools how to manage points 1) and 3).
whoops, LoRd_MuldeR was quicker...
i was thinking to some similar, but the Vdub export images doesnt make difference between mjpg and other formats so reencodes the jpgs
then we should find a sw that makes an avi w/o reencoding
or someone should write a losseless video rotation, that should be good for huffyuv too, and even dv,
feature to add to the already existing poor losseless video modifier
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.