Giter Club home page Giter Club logo

Comments (4)

mifi avatar mifi commented on June 16, 2024

Not sure what you want to do here. You want to merge up-side-down footage with non-upside-down footage? that is not possible to do correctly because it's not possible for the rotation metadata to change over the course of a single video. Or do you want to take a folder of 100 videos and just remove all the rotation metadata from all the videos to make them show in their original raw recorded orientation? if so, I think it can be easily achieved with a bash command:

for file in *.mp4; do ffmpeg -i "$file" -c copy -metadata:s:v:0 rotate=0 "$file"-out.mp4; done

from lossless-cut.

pentool avatar pentool commented on June 16, 2024

Thank you, I will look into trying this method. For now I just ended up chaining the segments together in DaVinci.

from lossless-cut.

pentool avatar pentool commented on June 16, 2024

I have concluded that sadly, it is not possible to invert a video just by setting the 'rotation' flag to zero and concatenate/merge it with a video that was filmed right side up (aka normal). It seems that flag only exist to indicate to players or devices that support that flag how to play back the video. So televisions or players (eg VLC, QuickTime Player, etc) can play back the up side down video correctly.

I have tried setting the 'rotation' flag to zero in the metadata. I have tried rotating the video in LosslessCut and export it. Regardless how I slice it, when I merge a regular video (where the camera was right side up) with a video where the camera was up side down, when you merge/concatenate them they will end up just like that. One being right side up and the other is being up side down.

It seems the only way out of this is recompressing the up side down video either in an app like HandBrake or concatenate the two videos in an editing software.

from lossless-cut.

mifi avatar mifi commented on June 16, 2024

That is correct. I believe the FAQ mentions this problem.

from lossless-cut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.