ericmckean / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

VP9 lossless encoding not working #677

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected behavior? What do you see instead?
I expected a working output stream.
I got an error message.

----
Warning: Bad quantizer values. Quantizer values should not be equal, and should 
differ by at least 8.
1 encoder configuration warning(s). Continue? (y to continue)
----
also note: vpxenc does not wait for an answer here it simply aborts,...

What version are you using? On what operating system?
tried:
    vp8    - WebM Project VP8 Encoder v1.2.0-5319-g584c729
    vp9    - WebM Project VP9 Encoder v1.2.0-5319-g584c729
and
    vp8    - WebM Project VP8 Encoder v1.2.0-4722-ge55f602
    vp9    - WebM Project VP9 Encoder v1.2.0-4722-ge55f602

Can you reproduce using the vpxdec or vpxenc tools? What command line are
you using?
mencoder -lavdopts threads=8 -really-quiet -of rawvideo -o - -ovc raw -demuxer 
lavf -vfm ffmpeg -noskip -vf scale,format=i420 -forcedsubsonly -nosub -nosound 
-mc 0 "H:\TESTCL~1\test.avi" | vpxenc --codec=vp9 --lossless=1 --min-q=0 
--max-q=0 --threads=16 --width=640 --height=352 -o 
"H:\Output\test_07_56_58_0010_01.vp9" -

if I use:
mencoder -lavdopts threads=8 -really-quiet -of rawvideo -o - -ovc raw -demuxer 
lavf -vfm ffmpeg -noskip -vf scale,format=i420 -forcedsubsonly -nosub -nosound 
-mc 0 "H:\TESTCL~1\test.avi" | vpxenc --codec=vp9 --lossless=1 --min-q=0 
--max-q=8 --threads=16 --width=640 --height=352 -o 
"H:\Output\test_07_56_58_0010_01.vp9" -
instead, I get:
Error: Tried to set control 27 = 1
Failed to control codec: Invalid parameter
    rc_max_quantizer out of range [..0] 

=> would be nice if someone could post an example call how to use the lossless 
encoding.

Original issue reported on code.google.com by 4Se...@gmail.com on 9 Dec 2013 at 7:35

GoogleCodeExporter commented 9 years ago
Okay, one problem is fixed with the current version, but lossless still doesn't 
work,..

using:
[quote]    vp8    - WebM Project VP8 Encoder v1.3.0-290-ge18eb77
    vp9    - WebM Project VP9 Encoder v1.3.0-290-ge18eb77[/quote]
and
[code]ffmpeg -v -10 -i "H:\TestClips&Co\test.avi" -an -sn -threads 8 -vsync 0 
-r 25 -pix_fmt yuv420p -f yuv4mpegpipe - | vpxenc --codec=vp9 --lossless=1 
--end-usage=q --min-q=0 --max-q=0 --width=640 --height=352 -o 
"H:\Output\test.webm" -[/code]
lossless encoding doesn't work. :(
(only creates a 1kByte file)

Original comment by 4Se...@gmail.com on 10 Dec 2013 at 9:07

GoogleCodeExporter commented 9 years ago
'--passes=1 --pass=1' is required in the command line.

-> Problem solved.

Original comment by 4Se...@gmail.com on 10 Dec 2013 at 11:34

GoogleCodeExporter commented 9 years ago

Original comment by ya...@google.com on 12 Dec 2013 at 5:51