Giter Site home page Giter Site logo

Comments (3)

vonovak avatar vonovak commented on June 27, 2024 1

Hello and thanks for reporting,
I'm going to post a workaround that should keep the video format as-is:

(1) specify videoExportPreset in options, with the value Passthrough

(2) read the result from uri, as seen in this image

Click me

edit: this is for a mov file. See below for mp4 file

Simulator Screenshot - iPhone 15 Pro Max - 2024-06-25 at 14 08 36

We're going to provide an improved solution - use the workaround in the mean time.

How this works: in transcodeVideoAsync this will return the vide url unchanged - so whatever file you select, it'll return its copy without transcoding it.

Thank you 🙂

from expo.

LauColombini avatar LauColombini commented on June 27, 2024

Hello and thanks for reporting, I'm going to post a workaround that should keep the video format as-is:

(1) specify videoExportPreset in options, with the value Passthrough

(2) read the result from uri, as seen in this image

Click me
Simulator Screenshot - iPhone 15 Pro Max - 2024-06-25 at 14 08 36

We're going to provide an improved solution - use the workaround in the mean time.

How this works: in transcodeVideoAsync this will return the vide url unchanged - so whatever file you select, it'll return its copy without transcoding it.

Thank you 🙂

Hello @vonovak ,

Thank you very much for taking the time to respond and for replicating the issue I'm experiencing. However, I noticed that in your response, while the filename is in .mp4, the URI is still in .mov format. My expected behavior is for the URI to also be in .mp4 format, matching the format selected from the library

Thank you again for your help

from expo.

vonovak avatar vonovak commented on June 27, 2024

Hello, apologies, the above screenshot was for a mov file. The one below is for an mp4 file.

So the provided workaround should work.

Click me

Simulator Screenshot - iPhone 15 Pro Max - 2024-06-25 at 14 41 33

from expo.

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.