Git Product home page Git Product logo

Comments (4)

rheaton avatar rheaton commented on July 26, 2024

Can you get it to transcode via the command-line or the streamio-ffmpeg gem?

from carrierwave-video.

JakeTheSnake3p0 avatar JakeTheSnake3p0 commented on July 26, 2024

Can you provide a sample script that your app generates based on a simple conversion to mp4 so I can test it, or does your app log the command that is run using Rails.logger? If not, that would definitely be a helpful debugging tool.

from carrierwave-video.

JakeTheSnake3p0 avatar JakeTheSnake3p0 commented on July 26, 2024

I just tried a direct command to convert via ffmpeg. It's complaining because qscale cannot be set at 0. It must be greater than 0. I also had to use -strict experimental because ffmpeg complained about aac or something.

i.e., this didn't work: ffmpeg -i spec/models/files/test.webm -vcodec mpeg4 -qscale 0 -strict experimental spec/models/files/test-output.mp4

whereas this did: ffmpeg -i spec/models/files/test.webm -vcodec mpeg4 -qscale 0.1 -strict experimental spec/models/files/test-output.mp4

So this app is setting qscale to 0 when it should be greater than 0 and less than or equal to 255 (according to ffmpeg).

from carrierwave-video.

JakeTheSnake3p0 avatar JakeTheSnake3p0 commented on July 26, 2024

I modified my uploader to the following as a 'workaround' to the adverse defaults as well as other issues not related to the gem:

process encode_video: [:mp4, resolution: :same, video_bitrate: :same, custom: '-qscale 1 -acodec aac -strict experimental']

FWIW I also had to install other codecs via sudo apt-get install ubuntu-restricted-extras. Even with that, I got errors stating a problem with libfaac (which is why I used -strict experimental). It seems to be working now.

from carrierwave-video.

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.