Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th January 2015, 21:17   #101  |  Link
djcj
Registered User
 
Join Date: Jun 2013
Location: Germany
Posts: 44
Was anyone able to build the javascript decoders from source? I can't get that to work on Linux (might be relevant for distribution packaging once a stable release comes out).

Last edited by djcj; 26th January 2015 at 08:56.
djcj is offline   Reply With Quote
Old 19th January 2015, 19:11   #102  |  Link
easyfab
Registered User
 
Join Date: Jan 2002
Posts: 332
Quote:
Originally Posted by xooyoozoo View Post
As the default method to to get bpgenc to produce animations is really really frustrating, I eked out a "bpgmux" of sorts in my modded libbpg.

The muxer will be quite verbal if it sees something it dislikes, but most x265 encodes with
Code:
--ref 1 --bframes 0 --rect --amp
will work.
Could you give me an example that work for you.
I try multiples files ( only files < 3 frames works )
for example : x265 foreman.y4m -o foreman.hevc --amp --rect --ref 1 --bframes 0

and I always have this :
bpgmux.exe foreman.hevc -o foreman.bpg
too many neg (2) or pos (0) refs
error while parsing (alpha? 0) NALs
Error while building modified hevc buffer with 2 frames processed
Muxing has failed.
easyfab is offline   Reply With Quote
Old 19th January 2015, 21:38   #103  |  Link
xooyoozoo
Registered User
 
Join Date: Dec 2012
Posts: 197
I originally couldn't reproduce your issue, but then I remembered that I've been using a locally "fixed" (see bug report) build of x265.

Apparently without the patch, x265 is counting the single ref frame twice. I'm not sure why x265 does this, especially as the behavior is unrelated to weighted pred, but decoders are usually based on uniqueness, so no harm no foul.

I just committed an allowance for this into the muxer.
xooyoozoo is offline   Reply With Quote
Old 19th January 2015, 21:55   #104  |  Link
easyfab
Registered User
 
Join Date: Jan 2002
Posts: 332
Thank you xooyoozoo.
I confirm it work now and a lot easier and faster than with bpg

foreman:
gif 9.43 Mo and bad quality ( with ffmpeg )
x265/bpg 497 ko ( crf23)

Animated bpg should soon rules
easyfab is offline   Reply With Quote
Old 28th January 2015, 00:17   #105  |  Link
Nintendo Maniac 64
Registered User
 
Nintendo Maniac 64's Avatar
 
Join Date: Nov 2009
Location: Northeast Ohio
Posts: 447
Any new comparisons with Daala? A new presentation video claims they're better than x265 in texture details and, when above 1bit per pixel, also on clean edges.

Last edited by Nintendo Maniac 64; 28th January 2015 at 00:22.
Nintendo Maniac 64 is offline   Reply With Quote
Old 15th February 2015, 03:33   #106  |  Link
Zero3K
Registered User
 
Join Date: Aug 2005
Posts: 30
Is there any BPG viewer that is small in size? If not, one should be made. Thanks in advance.

EDIT: Is it possible to convert animated GIFs to BPGs? If so, how?

Last edited by Zero3K; 16th February 2015 at 17:28.
Zero3K is offline   Reply With Quote
Old 22nd February 2015, 22:46   #107  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,771
Quote:
Originally Posted by Nintendo Maniac 64 View Post
Any new comparisons with Daala? A new presentation video claims they're better than x265 in texture details and, when above 1bit per pixel, also on clean edges.
Above 1 bpp seems like a questionable requirement.

x265 doesn't have a --tune stillimage equivalent yet, which would be the proper comparison point. Although I've had some success in early experience by copying the equivalent x264 parameters over.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 2nd March 2015, 21:24   #108  |  Link
djcj
Registered User
 
Join Date: Jun 2013
Location: Germany
Posts: 44
I was able to use the GNU automake system to build libbpg: https://github.com/darealshinji/libbpg/tree/automake
You can link bpgenc just to x265 without building jctvc if you want, you can build a shared library (will be named libbpg-version.so.0 since there's no official libbpg.so.0 yet) and simple manpages will be generated. A pkg-config file will be created too.
The javascript libraries aren't generated yet (use Makefile-original for that).

By the way kvazaar is now licensed under LGPL which might be a good opportunity to enable it as an encoder: https://github.com/ultravideo/kvazaar

Last edited by djcj; 2nd March 2015 at 23:14.
djcj is offline   Reply With Quote
Old 9th March 2015, 00:36   #109  |  Link
Nintendo Maniac 64
Registered User
 
Nintendo Maniac 64's Avatar
 
Join Date: Nov 2009
Location: Northeast Ohio
Posts: 447
Quote:
Originally Posted by benwaggoner View Post
Above 1 bpp seems like a questionable requirement.
I'm just reporting what was said in a recent presentation on Daala. I believe the 1bpp thing just happens to be where the threshold of bitrate where they cross.
Nintendo Maniac 64 is offline   Reply With Quote
Old 12th June 2015, 21:27   #110  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 345
Lossless WEBP heavily beats lossless BPG.

In my case we're talking about 12% difference in resulting file sizes which is kinda weird since VP8 is not nearly as advanced as H.265.

I'm testing just one image but I still didn't expect such a result. I thought BPG would be a clear winner or at least there would be a tie.

Last edited by birdie; 13th June 2015 at 22:55.
birdie is offline   Reply With Quote
Old 13th June 2015, 00:25   #111  |  Link
Skarstorm
Registered User
 
Join Date: Feb 2014
Posts: 8
Why are you talking about lossless compression?
Skarstorm is offline   Reply With Quote
Old 13th June 2015, 12:28   #112  |  Link
mandarinka
Registered User
 
mandarinka's Avatar
 
Join Date: Jan 2007
Posts: 729
Quote:
Originally Posted by ApTeM View Post
Lossless WEBP heavily beats lossless BPG.

In my case we're talking about 12% difference in resulting file sizes which is kinda weird since VP8 is not nearly as advanced as H.265.
That could be because lossless WebP isn't really VP8, it uses custom encoder and format with various additions and special tools to improve lossless intra compression.
mandarinka is offline   Reply With Quote
Old 13th June 2015, 17:40   #113  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,771
Quote:
Originally Posted by mandarinka View Post
That could be because lossless WebP isn't really VP8, it uses custom encoder and format with various additions and special tools to improve lossless intra compression.
That's still a surprising result. Do you have details for the specific image and settings used? A 12% delta is HUGE with lossless compression.

Some of the standard images used in J2K v. JPEG evaluation would be interesting, since there are already data points for other image codecs. I'm most interested in natural images (non-synthetic) myself. I know HEVC is getting some improvements for screen capture and that sort of content.

it might also be interesting to see how the latest version of x265 compare. Although I'd expect relatively small version-on-version improvements since rate control and interframe compression don't apply to still image encoding.

HEVC's intra-frame prediction should be a big differentiator from past codecs for still frame encoding in general, including (but probably to a lesser degree) lossless.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 14th June 2015, 00:23   #114  |  Link
Tommy Carrot
Registered User
 
Tommy Carrot's Avatar
 
Join Date: Mar 2002
Posts: 863
Quote:
Originally Posted by ApTeM View Post
Lossless WEBP heavily beats lossless BPG.

In my case we're talking about 12% difference in resulting file sizes which is kinda weird since VP8 is not nearly as advanced as H.265.

I'm testing just one image but I still didn't expect such a result. I thought BPG would be a clear winner or at least there would be a tie.
Did you use x265 or the reference encoder for lossless encoding? Because the latter is massively better for lossless compression, probably because x265 doesn't support the recently added features of the h.265 standard, which are improving the lossless efficiency quite significantly.
Tommy Carrot is offline   Reply With Quote
Old 14th June 2015, 09:05   #115  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 345
I used the reference BPG encoder ( http://bellard.org/bpg/ ) using maximum compression (-m 9).

Here are the source files if anyone's interested.

These are three pictures stitched together and the difference is 7%. When I make a collage containing over 50 images (I cannot post the others, sorry), there's 12% difference. What's even funnier is that zip manages to compress WEBP files (2% is like nothing but anyways), while BPG files are incompressible.

Last edited by birdie; 14th June 2015 at 09:08.
birdie is offline   Reply With Quote
Old 14th June 2015, 10:30   #116  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
The latest XnView MP beta claims to support bpg. I haven't had time to test it yet, but it's a start.
foxyshadis is offline   Reply With Quote
Old 14th June 2015, 13:44   #117  |  Link
Tommy Carrot
Registered User
 
Tommy Carrot's Avatar
 
Join Date: Mar 2002
Posts: 863
Quote:
Originally Posted by ApTeM View Post
I used the reference BPG encoder ( http://bellard.org/bpg/ ) using maximum compression (-m 9).

Here are the source files if anyone's interested.

These are three pictures stitched together and the difference is 7%. When I make a collage containing over 50 images (I cannot post the others, sorry), there's 12% difference. What's even funnier is that zip manages to compress WEBP files (2% is like nothing but anyways), while BPG files are incompressible.
I'm not really sure why it performs so relatively badly, BPG with the ref encoder compresses your image barely any better than PNG does, even though on most images i've tried it it's at least 10-20% more efficient. Possible reason could be that your image is very blurry with very little spatial detail, and HEVC lossless mode is not really optimized for such circumstances.

I've tried x265 on your image too, it compressed it to 818533 bytes, which is even worse by 30%.
Tommy Carrot is offline   Reply With Quote
Old 15th June 2015, 19:16   #118  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 345
So far H.265 is full of myths while IRL it performs worse (at least at high bitrates when the details are paramount) than the x264 encoder based on H.264.
birdie is offline   Reply With Quote
Old 18th June 2015, 17:46   #119  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,771
Quote:
Originally Posted by ApTeM View Post
So far H.265 is full of myths while IRL it performs worse (at least at high bitrates when the details are paramount) than the x264 encoder based on H.264.

For still images? And current builds?



Please share your settings and sources



Edit: Sorry, you linked tour sources above. I'll try to take a swing with a current x265 build.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book

Last edited by benwaggoner; 18th June 2015 at 17:53.
benwaggoner is offline   Reply With Quote
Old 19th June 2015, 19:27   #120  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 345
I used the latest available BPG release.

I didn't use any fancy settings other than -m 9 (maximum compression).
birdie is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.