Git Product home page Git Product logo

Comments (5)

rheaton avatar rheaton commented on July 26, 2024

Hello, are you able to get ffmpeg to do the transcoding you want via the command line?

I'm trying to determine if this is an issue with this particular gem or with your ffmpeg install.

from carrierwave-video.

valekar avatar valekar commented on July 26, 2024

I am able create a video using the command line using this option
--qscale 0.1 -ar 44100 -ab 128k -y

But when tried to create a video with the gem , I get unknown encoder 'libfaac' error

from carrierwave-video.

rheaton avatar rheaton commented on July 26, 2024

We've set the default audio codec for mp4 to the libfaac codec which you don't have installed.
https://github.com/rheaton/carrierwave-video/blob/master/lib/carrierwave/video/ffmpeg_options.rb#L82

You can pass in your own audio codec in the options (or re-install ffmpeg with libfaac).
Here are supported codecs: https://trac.ffmpeg.org/wiki/AACEncodingGuide

e.g.

process encode_video: [:mp4, resolution: "200x200", audio_codec: 'aac']

from carrierwave-video.

valekar avatar valekar commented on July 26, 2024

Thanks for the reply.

I really tried to reinstall the ffmpeg. I followed the guide .
https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide

Now I tried this option::

process encode_video: [:mp4, resolution: "200x200", audio_codec: 'aac' ,custom:"-strict experimental -ar 44100 -ab 128k -y -qscale 0.1"]

It worked but I got another error.

Overlay area (0,0)<->(605,58) not within the main area (0,0)<->(200,86) or zero-sized
Error opening filters!

Errors: encoded file is invalid.

So How can I solve this problem?

from carrierwave-video.

rheaton avatar rheaton commented on July 26, 2024

Have you tried using the :same option to the resolution? It might be an issue with trying to make a 200x200 video from one which is (it looks like) 605x58.

Have you gotten this to work on the command line or by using the streamio-ffmpeg gem directly? If you can't get it to work via command line, you should turn to the ffmpeg community. They will be better able to answer your questions.

-- I'm going to close this issue for now because I don't think it's a problem specific to this gem.

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.