-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebM generates an empty video file, H264 works as expected. #72
Comments
Show me the command line you used that did generate a |
Here's the command: ffmpeg -i Input.mp4 -c:v libvpx -c:a libvorbis -quality good -cpu-used 0 Output.webm |
And what is the command that Transcoder is outputting when you try to use it? It should be in your |
Here's the command that gets logged: /usr/bin/ffmpeg -i '/var/www/html/web/uploads/videos/Racewell-Sheep-Handler/Dagging.mp4' -vcodec libvpx -quality good -cpu-used 0 -bufsize 1000k -threads 0 -vf "scale=300:240,unsharp=5:5:1.0:5:5:0.0" -c:a copy -f webm -y '/var/www/html/web/transcoder/video/Racewell-Sheep-Handler/Dagging_300w_240h.webm' If I run that command, I get this error: "Rate control parameters set without a bitrate. Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height" I haven't modified the transcoder.php config file, so it should use the default values. |
The default parameters that are in Transcoder definitely worked at one point for webm -- my guess is that something (whether The major different I can see between the command that worked, and the one that did not is the audio codec setting: |
If you remove
If you swap
|
I tried the command with I don't know what a reasonable default would be. https://trac.ffmpeg.org/wiki/Limiting%20the%20output%20bitrate |
Maybe best to just remove the My guess is the reason why In any event, glad you got it working! |
I am also getting an empty webm when specifying |
Yeah I think the best course of action is just to remove that flag. |
Describe the bug
I'm using the transcoder plugin inside of a custom Craft module.
The plugin produces an empty video file when I transcode a video using the default WebM config.
However, if I use the default h264 config, the plugin works as expected.
Here is a cut-down version of the module:
If I manually run FFMPEG inside the ddev container, the video is transcoded to WebM as expected, so I don't believe FFMPEG is the issue.
Expected behaviour
A WebM version of the video asset is to be generated.
Versions
The text was updated successfully, but these errors were encountered: