Code Monkey home page Code Monkey logo

Comments (4)

ypresto avatar ypresto commented on June 27, 2024 4

MediaFormatStrategy returned pass-through for both video and audio. No transcoding is necessary.

It happens when resolution of output is larger than input.
Preset MediaFormatStrategys decline upscaling.
If you really want to do so, you can implement your own MediaFormatStrategy.

from android-transcoder.

veaceslc avatar veaceslc commented on June 27, 2024 1

This makes no sense. What about the case when I want to transcode to the same resolution but with a lower bitrate?

from android-transcoder.

bhaveshjethani avatar bhaveshjethani commented on June 27, 2024

When we compressed any video file which don't have audio then i am getting error.

2020-05-05 20:15:55.812 28877-29411/za.co.j3.sportsite.debug E/MediaTranscoder: Fatal error while transcoding, this might be invalid format or bug in engine or Android.
java.lang.IllegalArgumentException: extractor does not contain video and/or audio tracks.
at net.ypresto.androidtranscoder.utils.MediaExtractorUtils.getFirstVideoAndAudioTrack(MediaExtractorUtils.java:59)
at net.ypresto.androidtranscoder.engine.MediaTranscoderEngine.setupTrackTranscoders(MediaTranscoderEngine.java:153)
at net.ypresto.androidtranscoder.engine.MediaTranscoderEngine.transcodeVideo(MediaTranscoderEngine.java:96)
at net.ypresto.androidtranscoder.MediaTranscoder$4.call(MediaTranscoder.java:184)
at net.ypresto.androidtranscoder.MediaTranscoder$4.call(MediaTranscoder.java:166)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)

MediaExtractorUtils > getFirstVideoAndAudioTrack()

from android-transcoder.

sumitguptax100 avatar sumitguptax100 commented on June 27, 2024

I am also getting this exception is some devices

MediaFormatStrategy returned pass-through for both video and audio. No transcoding is necessary.
please suggest me a quick fix for this.

from android-transcoder.

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.