Comments (5)
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.
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.
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.
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.
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)
- S3 support
- Why is there a default resolution?! HOT 3
- Rename gem? HOT 1
- Transcoding passes but video not uploaded (rollback transaction) HOT 3
- after_transcoding callback called too soon
- Resize to Pad (Adding of Black Bars around Videos)
- scaling not work HOT 1
- Compatibility with streamio-ffmpeg 2.1.0 HOT 4
- Failed to transcode with FFmpeg HOT 10
- Aspect ratio distorted with newer Samsung Galaxy videos
- Failed to transcode with FFmpeg HOT 1
- set uploaded video length limit HOT 1
- How do you configure the encoder to include audio?
- Are video files being saved at a later time frame than the initial commit?
- video files are not processing on commit
- I don't need encode video to size 1920x1080 if source size 1280x720. How to solve?
- store multiple quality HOT 1
- No such filter: '"movie'
- percentage progress HOT 1
- Successfully converted file is not moved from cache to the actual storage directory.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carrierwave-video.