Page 1 of 1

saving avi files after changing orientation

Posted: 02 Dec 2011 13:34
by lethal42
Hi,
Probably a question that has been asked before, but expressed differently, somehow...

I am using Win 7 vlc player 1.1.11 (which I believe to be the latest, and have just read how to alter the orientation of an avi file (rotate it).
Just wondering how to save this new orientation?

thanks

Re: saving avi files after changing orientation

Posted: 02 Dec 2011 13:39
by TypX
If by save you mean in the file, I fear you'll have to transcode it with the rotation filter activated.

Re: saving avi files after changing orientation

Posted: 02 Dec 2011 14:03
by lethal42
Thanks TypX for the prompt response.
That sounds a bit much for this layperson

How do i achieve this?

(Most of what I reaseched pointed to windows movie maker, however this is not compatible with windows 7.....)

regards

Re: saving avi files after changing orientation

Posted: 02 Dec 2011 17:28
by TypX
You can do it with vlc : Follow http://wiki.videolan.org/Documentation: ... _HowTo_New

Activate the transcoding and in the final textbox with a ":sout=#transcode{...}:file{...}" you'll have to add vfilter=rotate{angle=<your angle>} inside transcode{}.

example:

Code: Select all

:sout=#transcode{vcodec=h264,acodec=mp3,ab=128,channels=2,samplerate=44100,vfilter=rotate{angle=90}}

Re: saving avi files after changing orientation

Posted: 03 Dec 2011 00:30
by lethal42
thanks

Re: saving avi files after changing orientation

Posted: 11 May 2017 10:37
by uzrgm
After 2 days of searching solution for exporting live stream from my Axis camera into a file with 180 degrees rotation I finally found it.

Originally I had this:
":sout=#transcode{vcodec=h264,acodec=none}:file{dst='<output_file_path>'}"
That works fine but I got video upside down.

Then I tried this:
":sout=#transcode{vcodec=h264,acodec=none,vfilter=rotate{angle=180}}:file{dst='<output_file_path>'}"
Rotation worked but output video was 16x16 size.

After this article "http://www.wintips.org/how-to-rotate-an ... ia-player/" and some digging in VLC player logs (vlc.exe --verbose=2 --file-logging --logfile=vlc-log.txt) I came up with this:
":sout=#transcode{vcodec=h264,width=1280,height=720,vfilter=rotate{angle=180},acodec=none}:file{dst='<output_file_path>'}"
Width and Height parameters prevent scaling output video into 16x16.

PS: I am using VLC 2.1.3
PPS: "transform{type=180}" doesn't work in some reason