How to rotate a Video in WindowsPhone 8.1 Silverlight

Hi,
Let me explain my problem.
I want to record video without shutter sound, so i choice CaptureSource  instead of
MediaCapture.
With MediaCapture i can set SetPreviewRotation(VideoRotation) to
change to rotate of video, the problem is with CaptureSource,
i can't do that.
So i looking for some way to rotate a video.
With library, maybe ffmpeg is the right way, but i can't use it with WP.
Anyone can tell me how to rotate a video, please ?

Since you didn't share any code, I hope this works for you. They key here is to rotate the VideoBrush.
//check if webcam is detected
if (captureSource.VideoCaptureDevice != null)
captureSource.Start();
//RotateTransform
RotateTransform aRotateTransform = new RotateTransform();
aRotateTransform.CenterX = 0.5;
aRotateTransform.CenterY = 0.5;
aRotateTransform.Angle = 90; //set this value to what you need
//create a videobrush
VideoBrush vBrush = new VideoBrush();
//set the rotate transform to VideoBrush relativetransform
vBrush.RelativeTransform = aRotateTransform;
//set it to us the capture source
vBrush.SetSource(captureSource);
//fill the rectangle with the video brush contents
vRect.Fill = vBrush;
Hope it works.
Abdulwahab Suleiman

Similar Messages

  • Does anyone know if/how to rotate a video clip?  I shot it so that it is sideways on my computer screen and I cant figure out how to rotate it.

    Does anyone know if/how to rotate a video clip in iphoto?  I shot it so that it plays sideways on my computer and I cannot figure out how to rotate it.  Thanks.

    You can't do that in iPhoto. You'll need a video editor like iMovie for the job.
    Regards
    TD

  • HT201401 how to rotate a video after recording on my iphone

    how to rotate a video after recording on my iphone?

    Import the video with your computer as with any other digital camera and you can use a video viewing/editing app on your computer to rotate the video.
    For what purpose?

  • How to rotate a video clip 90 degrees?

    I have a video clip that was shot with the camera held sideways, and so the clip is on its side and looks really crappy. How do I rotate it so it looks correct?

    The cf/x turn clip iMovie plug-in has some limitations: It doesn't properly work with interlaced input because also the interlacing lines are simply rotated and this doesn't look good on a TV! So you should use it only for progressive material or deinterlace the input. It can't rotate the material without cropping and it doesn't preserve the correct aspect ratio when rotating rectangular pixels).
    If that disturbs you and you are willing to do it the hard way, see:
    How can I convert vertical video to DV or rotate DV (and preserve interlacing):
    http://www.sjoki.uta.fi/~shmhav/SVCDon_a_Macintosh.html#vert-horizrotate

  • How to rotate a video

    playing video from ipad to computer video is upside down
    Help
    Justine

    I think you probably could get better help on a forum for iPad (or iPhone) users instead of this one. Sorry!

  • How do  i rotate a video in I-movie 09?

    here is my dilemna
    i shot a video with my t-mobile G1 cell phone
    i FORGOT that i had to do it in Landscape and wound up doing it in Portrait mode
    then phone has no way of rotateing it
    so i did a google search to find out how to rotate the video a quarter turn to the right
    everything i found said VIDEO EDITOR, but for the most part it was Windows replies n Mac
    so i drug the 3gp file into squared 5 mpeg streamclip and converted it to mpeg4
    then i drug it into i-movie 9
    everything good so far....except i cant find in I-Movie where to rotate the video.

    highlight the clip...ie yellow box around the one you want to rotate. click the little blue wheel/gear at the beginning of the clip. menu pops...select crop and rotate.
    clarification: highlight the clip after you create a project with it!
    Message was edited by: Sheryl Kingstone

  • How do you rotate a video 90 degrees?

    Hi,
    I was hoping to find out how I rotate a video 90 degrees clockwise which has been imported by a digital camera (which was captured in a vertical position). I only have QuickTime Player and not QuickTime Pro. Is it possible to do this without having to purchase Quicktime Pro? (I don't want to spend $44 to rotate one video).
    Thanks.

    Let me Google that for you...
    http://lmgtfy.com/?q=osx+videorotate

  • How do i rotate a video without clipping off parts of it?

    Can someone tell me how to do this?  I know how to rotate from the help forums:
    Rotate a clip
    Select the clip in the Timeline.
    In the Effects view, click the Edit Effects button.
    Expand the Motion effect in the Properties view, and do one of the following:Drag the underlined value to the right of Rotation.
    Click Rotate Left or Rotate Right to rotate the clip 90° in either direction.
    But when i do this, it chops off the top and bottom portions of my video.  I instructed it to leave video aspect ratio, but it wont do so.  It still chops off the top and bottom.
    Any suggestions?  If it helps, its a .avi movie as recorded from a digital camera.
    BTW, my free Google Picasa did this in seconds with no aspet ration change with 1 button.....just sayin'

    Matthew,
    Actually, it did keep the Aspect Ratio, as it is defined, but instead of a horizontal Aspect Ratio of say 4:3, you now have a vertical Aspect Ratio of 4:3. If it kept the horizontal, your image would be squashed in one dimension and then stretched in the other - not what you would likely want.
    What you need to do is now treat your vertical image. In most cases, I find it preferable to use the fixed Effect>Motion>Scale, and then effectively crop off parts of the top, or the bottom, or both. This has the disadvantage of having to Scale the image up, and it will begin to degrade in quality, so keep a close eye out for that.
    Depending on a few factors, one can use certain artistic treatments to use the vertical image in your horizontal Frame: one could use it as a PiP (Picture in Picture), one could create a background, and just use Motion>Scale to drop the vertical dimension to match the vertical dimension of the Frame, letting the background show on probably both sides. Some videographers will shoot two shots with the camera 90 degrees out of orientation, i.e. on its side, when they want a "split-screen," i.e. PiP with two, side-by-side images, and just Rotate both Clips, and align them in the horizontal frame.
    Now, what was your purpose for shooting with the camera on its side? What effect were you trying to obtain?
    If this was a mounting issue, such as the camera had to be mounted on its side to get it where it was needed, then the trick is to frame less tightly, knowing that you will be effectively cropping off some of the image, when you Rotate.
    Good luck,
    Hunt

  • How do I rotate my video without the video going "blank?"

    I have Mac OSX 10.7.4
    Quicktime is version 10.1
    I am using a .mov file I filmed using my iphone. I filmed it sideways to be widescreen, but when I open it on my mac in quicktime, it appears longways instead of sideways. I go to edit- rotate left, and it rotates, but no video plays. The video is black, but the audio still works.
    Any advice on how to rotate it and keep my video?
    Thanks!

    Matthew,
    Actually, it did keep the Aspect Ratio, as it is defined, but instead of a horizontal Aspect Ratio of say 4:3, you now have a vertical Aspect Ratio of 4:3. If it kept the horizontal, your image would be squashed in one dimension and then stretched in the other - not what you would likely want.
    What you need to do is now treat your vertical image. In most cases, I find it preferable to use the fixed Effect>Motion>Scale, and then effectively crop off parts of the top, or the bottom, or both. This has the disadvantage of having to Scale the image up, and it will begin to degrade in quality, so keep a close eye out for that.
    Depending on a few factors, one can use certain artistic treatments to use the vertical image in your horizontal Frame: one could use it as a PiP (Picture in Picture), one could create a background, and just use Motion>Scale to drop the vertical dimension to match the vertical dimension of the Frame, letting the background show on probably both sides. Some videographers will shoot two shots with the camera 90 degrees out of orientation, i.e. on its side, when they want a "split-screen," i.e. PiP with two, side-by-side images, and just Rotate both Clips, and align them in the horizontal frame.
    Now, what was your purpose for shooting with the camera on its side? What effect were you trying to obtain?
    If this was a mounting issue, such as the camera had to be mounted on its side to get it where it was needed, then the trick is to frame less tightly, knowing that you will be effectively cropping off some of the image, when you Rotate.
    Good luck,
    Hunt

  • In PSE 7, how can I rotate my video, which displays sideways, to vertical?

    How can I rotate my video which displays sideways to vertical in PSE 7?
    It's a waterfall, I filmed it vertically, but it displays horizontally. Full Edit doesn't work on film clips and the rotate option is greyed out.
    Thanks for any feedback.
    Kathryn

    PSE 7 is Ps Elements,  not Photoshop.  Try posting in the Photoshop Elements forum, as not many users here are familiar with Elements.
    http://forums.adobe.com/community/photoshop_elements?view=discussions

  • TS1702 How can I rotate a video that I made with my iPod to the correct orientation?

    How can I rotate a video that I took with my iPod to the correct orientation?  My video is sideways and I can't find a way to make it show correctly.

    See if any of the previous discussions listed on the right side of this page under the heading More Like This help.
    Also you can Google for computer apps that will change the origination of videos.

  • How can I rotate a video made on my digital camera?

    How can I rotate a video clip made on my didgital camera.  I appears horizontal but I want to rotate it to vertical

    If you have Quicktime Pro and Quicktime Player 7 you can do it with that combination also.
    OT

  • How can I rotate a video in iPhoto?

    My videos need to be rotated for correct orientation. Can anyone tell me how to do that in iPhoto?

    You can not rotate a video in iPhoto
    LN

  • Elements Premier: How do i rotate a video without clipping off parts of it?

    Can someone tell me how to do this?  I know how to rotate from the help forums:
    Rotate a clip
    Select the clip in the Timeline.
    In the Effects view, click the Edit Effects button.
    Expand the Motion effect in the Properties view, and do one of the following:Drag the underlined value to the right of Rotation.
    Click Rotate Left or Rotate Right to rotate the clip 90° in either direction.
    But when i do this, it chops off the top and bottom portions of my video.  I instructed it to leave video aspect ratio, but it wont do so.  It still chops off teh top and bottom.

    Hi, matthewwill. Premiere Elements has its own forum, which is here:
    http://forums.adobe.com/community/premiere/premiere_elements
    and you'll get better, faster help with video questions there.

  • I took all my video with my iPhone turned the wrong way. When I view it on my pc it's turned on its side. How can I rotate the video and crop it?

    I took all my video with my iPhone turned the wrong way. When I view it on my pc it's turned on its side. How can I rotate the video and crop it?

    Try plugging it into a computer with iTunes opened. If you see anything that says restore, say no.
    Sometimes these issues resolve themselves when you connect the device to iTunes.
    What happens when you hold the home and sleep/wake button? I know it doesn't work, but does it shut off at all?

Maybe you are looking for

  • Basic doubt regarding Java

    Hi Friends, I started to learn Using Java in Oracle. My Oracle Version is 9i and i have installed java packages to my database server. Now i want to steady about writing Java code for Select,Insert,Delete and Update Statements to my database tables.

  • Searching for explanation of the p_mode param in execute_deposit_process

    I'm looking for some detailed explanation of the parameter p_mode in hxc_timestore_deposit.execute_deposit_process (the OTL API). According to the documentation the parameter p_mode can have the values ‘SUBMIT’, ‘SAVE’ or ‘MIGRATE’. What's the differ

  • "Send" email option disappeared BB8520

    I followed your steps (deleteing service books and then sending them again), rebooted, etc. Nothing works. I called my carrier, they don't have a clue. help please!! THANKS

  • DW9, PHP, and Oracle

    We've just installed DWCS3 and now our Oracle (Oracle Thin Client) database connections are no longer available with DWCS3. We have just learned that DWCS3 will not work with Phakt and that PHP now only supports MySQL. Dropping Phakt without any PHP-

  • Disable Grouping on Data Condition

    Post Author: Sriram Venkataramani CA Forum: General Hi, I have a group in my report which want to disable altogether (NOTE: I don't want to just suppress it - I want to remove the grouping itself from the report) on a conditional variable in my data.