Page 1 of 1

Problem When Rotating A Video Stream

Posted: 20 Jun 2011 14:00
by ph0rce
Hi there,

I'm looking into using VLC for an Java application which I am developing & have already set up the vlcj library to enable me to play the video in a Java app which is working fine. The problem is that the application will be displayed in a portrait orientation but all the videos are in landscape, no problem I thought as I can just pass the option in to rotate the video but that parameter just doesn't work properly.

Currently I am using the RTSP protocol ( streamed via the VLC app ) & while the application receives the stream, in the process of rotating the video, it crops the sides. Initially I assumed I had a problem with vlcj or Java itself but when I run another instance of VLC from the command line with the rotate flag set & connect to the stream, it also crops stream.

It also crops the video if I pass in a file, is there anything I can do about this, or is there something I am doing wrong?

The command line options I am using are: --video-filter=rotate --rotate-angle=90

I am streaming the file using RTSP without transcoding.

Thanks in advance,

James

EDIT

Just realised that it doesn't work with files either so edited post accordingly.

Re: Problem When Rotating A Video Stream

Posted: 20 Jun 2011 17:15
by ph0rce
OK, I've done some investigating & it seems like the rotate option is 'supposed' to crop the video, which seems a little odd to me!

I've also found the transform option instead, which seems to work great in the app itself but vlcj doesn't recognise the option & just plays the video in its original orientation.

Is there anything I can do?

Re: Problem When Rotating A Video Stream

Posted: 21 Jun 2011 10:32
by ph0rce
Third post in a row, sure hope someone helps me out with this! :)

The transform option seems to work within the VLC app itself, if I set the value from the Geometry / Effect & Filters menu but when I try and pass it through via the command line, it gets ignored.

What am I doing wrong here:

--transform-type=270

is there any reason why this isn't being recognised?