Skip to content
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

Error during VP9 bitrate encoding #273

Closed
BuyMyMojo opened this issue Oct 26, 2021 · 3 comments
Closed

Error during VP9 bitrate encoding #273

BuyMyMojo opened this issue Oct 26, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@BuyMyMojo
Copy link

I get this error during the second pass:

[libvpx-vp9 @ 0x55e0931b8f40] Failed to initialize encoder: Invalid parameter
[libvpx-vp9 @ 0x55e0931b8f40]   Additional information: rc_twopass_stats_in.buf not set.
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
Conversion failed!

These are the raw commands:

First pass:
"/usr/bin/ffmpeg" -y -i "/home/buymymojo/Videos/Source.mkv" -map 0:0 -c:v libvpx-vp9 -pix_fmt yuv420p -row-mt 1 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -passlogfile "/home/buymymojo/.local/share/FastFlix/temp_6f5db49dc2784ff259a69287/pass_log_file_d67079147a92138ce44e" -speed:v 4 -b:v 6000k -quality:v realtime -profile:v 0 -tile-columns:v -1 -tile-rows:v -1 -pass 1 -an -f webm /dev/null

Second pass:
"/usr/bin/ffmpeg" -y -i "/home/buymymojo/Videos/Source.mkv" -map 0:0 -c:v libvpx-vp9 -pix_fmt yuv420p -row-mt 1 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -passlogfile "/home/buymymojo/.local/share/FastFlix/temp_6f5db49dc2784ff259a69287/pass_log_file_d67079147a92138ce44e" -speed:v 8 -b:v 6000k -quality:v realtime -profile:v 0 -tile-columns:v -1 -tile-rows:v -1 -pass 2 -map_metadata 0 -map_chapters -1 -map 0:1 -metadata:s:1 title="" -metadata:s:1 handler="" -metadata:s:1 language=eng -c:1 libopus -b:1 128k -default_mode infer_no_subs "/home/buymymojo/Videos/Source-fastflix-e7cb.mkv"

@BuyMyMojo
Copy link
Author

The issue seems to be when having the speed set to realtime

@cdgriffith cdgriffith added the bug Something isn't working label Oct 26, 2021
@cdgriffith
Copy link
Owner

After playing with this a bit, it seems that realtime doesn't support dual pass mode. I need to set up some logic to use single pass when setting it to realtime mode with bitrate.

cdgriffith added a commit that referenced this issue Nov 4, 2021
cdgriffith added a commit that referenced this issue Nov 10, 2021
* Fixing #273 Realtime VP9 bitrate mode must be single pass (thanks to Owen Quinlan)
@cdgriffith
Copy link
Owner

Resolved in 4.5.1 https://github.com/cdgriffith/FastFlix/releases/tag/4.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants