Page 1 of 1

Rotate video 90 degrees on server-side

Posted: 19 Jun 2006 09:19
by vlasky
I am using VLC in stream-out mode with an Apple iSight webcam to monitor a very tall scene.

I can get a far better image by rotating the camera 90 degrees to get a portrait view rather than a landscape view (e.g. so the image is 480x640 instead of 640x480).

Unfortunately on the client end, the user has to look sideways or use the VLC client with the rotate transform filter to see the image the right side up.

Can we add support to VLC in stream out mode to rotate the image on the server side so that users will see the image correctly on whichever client they are running. Thanks.

Posted: 19 Jun 2006 16:18
by yoann
Sure, go to Preferences -> Stream output -> Sout stream -> Transcode -> check "Video transformation filter" in the "Video filter" section.

Or, if you are using the command-line:

Code: Select all

--sout-transcode-vfilter transform

Rotate video 90 degrees on server-side

Posted: 19 Jun 2006 16:55
by vlasky
I am using VLM. Can you please show me how this would be incorporated into the output chain inside my VLM configuration file. Here is an example of my current configuration:

new camera1 broadcast enabled
setup camera1 input dc1394:/dev/video1394/0:camera=0:size=320x240:adev=/dev/dsp:
channels=1:fps=15::brightness=100
setup camera1 output #duplicate{dst="transcode{vcodec=DIV3,vb=256,acodec=mp3,ab=
32}:std{access=mmsh,mux=asfh,url=:7070/stream1_v_medium.asf}",dst="transcode{vco
dec=MJPG,vb=4000}:std{access=http,mux=raw,url=:7070/stream1.jpg}"}

Posted: 19 Jun 2006 17:20
by yoann
It should be:

Code: Select all

setup camera1 option sout-transcode-vfilter=transform

Rotate video 90 degrees on server-side

Posted: 24 Oct 2006 14:42
by vlasky
It didn't work - have you actually done this yourself?

Based on the changelog, I suspect it will be supported in version 0.9.

Posted: 25 Oct 2006 23:23
by dionoea
As i stated in another thread (2 days ago i think), stuff like transform isn't possible yet since it changes the image's dimensions ... which we don't handle in vfilter=. That might change in the future.