-
Notifications
You must be signed in to change notification settings - Fork 60
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
Documentation regarding the transition to WebM format (for videos) learningequality#338 #554
base: develop
Are you sure you want to change the base?
Conversation
Hi @Mamatha1718, Could you add some guidance about the pr to enable us to review the pr more effectively? I have edited the above template so you can provide more description. Thanks! |
Hi @akolson , Added steps for compressing WebM videos using ffmpeg, including recommended codecs (VP8 and vorbis) and compression best practices for different video lengths and resolutions. Explained how existing scripts for MP4 compression can be adapted for WebM by simply changing the file extension. Mentioned the possibility of using HandBrake for WebM by converting to MP4 first and re-encoding with ffmpeg. Encouraged users to experiment with parameters like crf to achieve the right balance between quality and file size. |
Hi @Mamatha1718 I tagged you where you need to add the guidance. Click to edit the description. There are also additional instructions about what you need to add in the (markdown) comments. Thanks |
Hi @akolson, |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Mamatha1718 thanks for the pull request. I am a little confused as to how you managed to get this to work though. I ran this exact command locally:
ffmpeg -i tests/testcontent/downloaded/low_res_video.webm -b:a 32k -ac 1 -vf scale="'w=-2:h=trunc(min(ih,480)/2)*2'" -crf 32 -profile:v baseline -level 3.0 -preset slow -v error -strict -2 -stats -movflags faststart -y outputfile.webm
and got the following error:
[libvpx-vp9 @ 0x17b89b40] [Eval @ 0x7ffe8ed2d7a0] Undefined constant or missing '(' in 'baseline'
[libvpx-vp9 @ 0x17b89b40] Unable to parse option value "baseline"
[libvpx-vp9 @ 0x17b89b40] Error setting option profile to value baseline.
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
On closer inspection, it appears that this might just be the current mp4 command copy pasted but with a webm file extension as the input and the output, which will not work.
We asked you in the issue to please test the functions you were putting into documentation, and unless I have done something wrong (please tell me if I have) it doesn't appear like this has been tested.
Hi @rtibbles ,Thank you for pointing this out. You're absolutely correct—the error occurred because the will you please let me know these changes are fix this error. |
Have you tested this command yourself? It sounds like you have not, so I am not sure why I should have any reasonable expectation that this will be correct this time either. Please test your changes and let me know when you have something that works. If you want to know how to install ffmpeg, please see the documentation in this repository. |
I've tested the command with my Let me know if anything else need changes, or if there's anything more i should check (or change). Thank you. |
6012ff5
to
8685885
Compare
Summary
Description of the change(s) I made
I added detailed guidance for WebM compression to enhance the documentation and provide users with clear instructions. This includes:
Recommendations for using the
VP8
video codec andvorbis
audio codec for compatibility.File size suggestions for different video lengths and resolutions.
An example
ffmpeg
command for compressing WebM files.2. Using the
ffmpeg
Helper Scripts for WebM:Explained how to adapt the existing MP4 compression scripts for WebM by modifying file extensions.
3. HandBrake for WebM:
Provided instructions on how to use HandBrake for compressing WebM files indirectly via MP4 conversion.
4. Experimenting with WebM Compression:
Included guidance on tweaking parameters like
crf
to optimize video quality and file size.Guidance:
This PR enhances WebM video compression documentation by including:
=> Detailed steps for using
VP8
andvorbis
codecs, file size recommendations,and an
ffmpeg
command example.=> Adaptations for using existing MP4 helper scripts for WebM.
=> HandBrake usage instructions for indirect WebM compression.
=> Tips for fine-tuning
crf
values for optimal compression.References
Closes #338
Comments
This PR aims to comprehensively address WebM compression requirements. Please review and let me know if additional updates or clarification needed.