saving avi files after changing orientation

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
lethal42
New Cone
New Cone
Posts: 5
Joined: 02 Dec 2011 13:28

saving avi files after changing orientation

Postby lethal42 » 02 Dec 2011 13:34

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

TypX
Developer
Developer
Posts: 290
Joined: 21 Oct 2011 15:59

Re: saving avi files after changing orientation

Postby TypX » 02 Dec 2011 13:39

If by save you mean in the file, I fear you'll have to transcode it with the rotation filter activated.

lethal42
New Cone
New Cone
Posts: 5
Joined: 02 Dec 2011 13:28

Re: saving avi files after changing orientation

Postby lethal42 » 02 Dec 2011 14:03

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

TypX
Developer
Developer
Posts: 290
Joined: 21 Oct 2011 15:59

Re: saving avi files after changing orientation

Postby TypX » 02 Dec 2011 17:28

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}}

lethal42
New Cone
New Cone
Posts: 5
Joined: 02 Dec 2011 13:28

Re: saving avi files after changing orientation

Postby lethal42 » 03 Dec 2011 00:30

thanks

uzrgm
New Cone
New Cone
Posts: 4
Joined: 09 Jan 2015 14:18

Re: saving avi files after changing orientation

Postby uzrgm » 11 May 2017 10:37

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 12 guests