Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Software to right side up videos from phone  (Read 4796 times)

0 Members and 1 Guest are viewing this topic.

DaveLembke

    Topic Starter


    Sage
  • Thanked: 662
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Software to right side up videos from phone
« on: December 07, 2019, 08:50:41 AM »
I went to a concert last night and recorded some video footage from it and when I downloaded it from the MicroSD to my laptop and played them with VLC Player I noticed some of the 3GP file extension format videos are on their side or upside down. I thought VLC Player had an option to turn a video right side up but couldnt find the feature to do so, so wondering what software you suggest to right side them and save them as correct side up?

Allan

  • Moderator

  • Mastermind
  • Thanked: 1260
  • Experience: Guru
  • OS: Windows 10
Re: Software to right side up videos from phone
« Reply #1 on: December 07, 2019, 09:03:48 AM »

Salmon Trout

  • Guest
Re: Software to right side up videos from phone
« Reply #2 on: December 08, 2019, 02:57:17 AM »
If you want to create a copy of a file, flipped in some way, good old ffmpeg can do this quickly. It has a 'transpose' feature, with 4 modes:

0 – Rotate by 90 degrees counter-clockwise and flip vertically. This is the default.
1 – Rotate by 90 degrees clockwise.
2 – Rotate by 90 degrees counter-clockwise.
3 – Rotate by 90 degrees clockwise and flip vertically.

the syntax is like this, the number N is 0, 1, 2, or 3

ffmpeg -i input.mp4 -vf "transpose=N" output.mp4

It isn't restricted to mp4s, that's just an example.

if you want to go more than 90 degrees, you can stack the transposes, so, for example, to go 180 degrees clockwise or counter clockwise, (either of which turns the video upside-down) you can do this

ffmpeg -i 101.mkv -vf "transpose=2,transpose=2" 101.flip2-flip2.mkv

Note the output filenames are entirely arbitrary and made up by myself.

Or you can just copy over the video file metadata (camera model, date, time, etc), if you want, and include a rotation, like this, but note that some media players ignore the rotation (so you'd have to do the above recodes)

ffmpeg -i original.mp4 -map_metadata 0 -metadata:s:v rotate="90" -codec copy meta90.output.mp4

This was very quick and played as desired in VLC but I can't vouch for other players.

(1) Original video:



(2) transpose=0
ffmpeg -i original.mp4 -vf "transpose=0" original.flip0.mp4:

(3) transpose=1
ffmpeg -i original.mp4 -vf "transpose=1" original.flip1.mp4

(4) transpose=2
ffmpeg -i original.mp4 -vf "transpose=2" original.flip2.mp4

(5) transpose=3
ffmpeg -i original.mp4 -vf "transpose=3" original.flip3.mp4

(6) transpose=2, transpose=2
ffmpeg -i original.mp4 -vf "transpose=2,transpose=2" original.flip2-flip2.mp4




DaveLembke

    Topic Starter


    Sage
  • Thanked: 662
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Software to right side up videos from phone
« Reply #3 on: December 08, 2019, 03:03:37 PM »
Cool thank you both for your help with this. Ah there is where that feature was hidden in VLC.

The ffmpeg route will be best because I have many videos to right-side and can run it with a FOR loop, and VLC is a per video process.

Many Thanks to you both  :)

Salmon Trout

  • Guest
Re: Software to right side up videos from phone
« Reply #4 on: December 08, 2019, 03:43:03 PM »
The ffmpeg route will be best because I have many videos to right-side and can run it with a FOR loop

I was thinking of that too. Like this? (at the prompt, double up the % to %% in a script)

for %A in (*.mp4) do ffmpeg -i "%A" -vf "transpose=N" "%~nA.flipN.mp4"

Interestingly, slightly different file sizes:

08/12/2019  22:46           4466863 meta90.output.flip3.mp4
08/12/2019  22:46           4470759 original.flip0.flip3.mp4
08/12/2019  22:46           4466281 original.flip1.flip3.mp4
08/12/2019  22:47           4469531 original.flip2.flip3.mp4
08/12/2019  22:46           4471340 original.flip2-flip2.flip3.mp4
08/12/2019  22:47           4467873 original.flip3.flip3.mp4
08/12/2019  22:47           4469416 original.flip3.mp4

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Software to right side up videos from phone
« Reply #5 on: December 08, 2019, 03:45:44 PM »
I'm thinkin Salmon just took an opportunity to showcase his artistic skills...
" Anyone who goes to a psychiatrist should have his head examined. "

Salmon Trout

  • Guest
Re: Software to right side up videos from phone
« Reply #6 on: December 08, 2019, 03:47:39 PM »
I didn't do that image at the video start. I'm not that talented :)


patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Software to right side up videos from phone
« Reply #7 on: December 08, 2019, 04:08:18 PM »
 ;D   ;D
" Anyone who goes to a psychiatrist should have his head examined. "