Comments (4)
Can you get it to transcode via the command-line or the streamio-ffmpeg gem?
from carrierwave-video.
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.
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.
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)
- 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.