Page 2 of 2

Re: [fixed] bpgdec.exe console flicker

Posted: Tue Oct 11, 2016 9:28 pm
by heimaki
here's bpg-0.9.7 with both encoders, also xnview "plugin" is included, the above one is garbage because it needs zlib.dll

and no dependencies in bpgenc.exe :D

and no, you cannot just use the newest x265, it does compile, but the bitdepths other than 8 are missing...

Re: [fixed] bpgdec.exe console flicker

Posted: Wed Oct 12, 2016 4:31 am
by Marsu42
heimaki wrote:and no, you cannot just use the newest x265, it does compile, but the bitdepths other than 8 are missing...
Thanks again, after it compiled so sweetly I didn't bother to try all bitdepths.

Re: [fixed] bpgdec.exe console flicker

Posted: Wed Oct 12, 2016 9:49 am
by heimaki
i now also tried the newest jctvc source HM-16.12-4815 but no luck.

i got it comoiling after some small fixes, but bpgenc throws out an error.

bpgenc -e jctvc test.png
******************************************************************
** WARNING: --SEIDecodedPictureHash is now disabled by default. **
** Automatic verification of decoded pictures by a **
** decoder requires this option to be enabled. **
******************************************************************
***************************************************************************
** WARNING: For conforming bitstreams a valid Level value must be set! **
***************************************************************************

Reconstruction File :
Real Format : 2048x1152 25Hz
Internal Format : 2048x1152 25Hz
Sequence PSNR output : Linear average only
Sequence MSE output : Disabled
Frame MSE output : Disabled
Cabac-zero-word-padding : Enabled
Frame/Field : Frame based coding
Frame index : 0 - 0 (1 frames)
Profile : main-RExt (main_444_16_intra)
CU size / depth / total-depth : 64 / 4 / 4
RQT trans. size (min / max) : 4 / 32
Max RQT depth inter : 3
Max RQT depth intra : 3
Min PCM size : 8
Motion search range : 96
Intra period : 1
Decoding refresh type : 0
QP : 29.00
Max dQP signaling depth : 0
Cb QP Offset : 0
Cr QP Offset : 0
QP adaptation : 0 (range=0)
GOP size : 1
Input bit depth : (Y:8, C:8)
MSB-extended bit depth : (Y:8, C:8)
Internal bit depth : (Y:8, C:8)
PCM sample bit depth : (Y:8, C:8)
Intra reference smoothing : Enabled
diff_cu_chroma_qp_offset_depth : -1
extended_precision_processing_flag : Disabled
implicit_rdpcm_enabled_flag : Disabled
explicit_rdpcm_enabled_flag : Disabled
transform_skip_rotation_enabled_flag : Disabled
transform_skip_context_enabled_flag : Disabled
cross_component_prediction_enabled_flag: Disabled
high_precision_offsets_enabled_flag : Disabled
persistent_rice_adaptation_enabled_flag: Disabled
cabac_bypass_alignment_enabled_flag : Disabled
log2_sao_offset_scale_luma : 0
log2_sao_offset_scale_chroma : 0
Cost function: : Lossy coding (default)
RateControl : 0
WPMethod : 0
Max Num Merge Candidates : 5

TOOL CFG: IBD:0 HAD:1 RDQ:1 RDQTS:1 RDpenalty:0 LQP:0 SQP:0 ASR:0 MinSearchWindow:8 RestrictMESampling:0 FEN:0 ECU:0 FDM:1
CFM:0 ESD:0 RQT:1 TransformSkip:1 TransformSkipFast:1 TransformSkipLog2MaxSize:2 Slice: M=0 SliceSegment: M=0 CIP:0 SAO:1
PCM:0 TransQuantBypassEnabled:0 WPP:0 WPB:0 PME:2 WaveFrontSynchro:0 WaveFrontSubstreams:1 ScalingList:0 TMVPMode:1 AQpS
:0 SignBitHidingFlag:1 RecalQP:0

Input ChromaFormatIDC = 4:2:0
Output (internal) ChromaFormatIDC = 4:2:0

POC 0 TId: 0 ( I-SLICE, nQP 29 QP 29 ) 999808 bits [Y 39.1170 dB U 39.9122 dB V 42.4398 dB] [ET 23 ] [L0 ]
[L1 ]


SUMMARY --------------------------------------------------------
Total Frames | Bitrate Y-PSNR U-PSNR V-PSNR YUV-PSNR
1 a 24995.2000 39.1170 39.9122 42.4398 39.6574


I Slices--------------------------------------------------------
Total Frames | Bitrate Y-PSNR U-PSNR V-PSNR YUV-PSNR
1 i 24995.2000 39.1170 39.9122 42.4398 39.6574


P Slices--------------------------------------------------------
Total Frames | Bitrate Y-PSNR U-PSNR V-PSNR YUV-PSNR
0 p nan nan nan nan nan


B Slices--------------------------------------------------------
Total Frames | Bitrate Y-PSNR U-PSNR V-PSNR YUV-PSNR
0 b nan nan nan nan nan

RVM: 0.000
Bytes written to file: 124991 (24998.200 kbps)
nb_st_rps must be 0 (2)
Error while creating HEVC data
no idea what is going wrong, this needs someone with knowledge. it seems the bpgenc code must be modified.

Re: [fixed] bpgdec.exe console flicker

Posted: Wed Oct 12, 2016 1:04 pm
by heimaki
ok, got it working with latest jctvc source HM-16.12-4815.zip :D
and also x265 2.1 is in there too with bit depth 8 10 and 12 enabled. :P

not sure if it was worth the effort though. :? i guess no.

Re: [fixed] bpgdec.exe console flicker

Posted: Sun Oct 16, 2016 3:16 pm
by heimaki
heimaki wrote:just in case.

there's a BPG plugin that can even write such files in xnview.

https://github.com/leavinel/BPG-Plugins

works only in x86 versions though.
there's also a x64 version (unofficial) now for this...

http://encode.ru/threads/2095-BPG-yet-a ... #post50549

Re: [fixed] bpgdec.exe console flicker

Posted: Sun Oct 16, 2016 5:30 pm
by Marsu42
heimaki wrote:not sure if it was worth the effort though. :? i guess no.
It's definitely worth the effort if you share the binary with us :-) - thanks! ...

... and attach the patch from the vanilla bpg source to your version which accepts updates x265/jctvc. You could put a pull request on the bpg site, but I guess development has slowed or ceased so releasing it here and send the bpg author a mail is enough for the time being.

Re: [fixed] bpgdec.exe console flicker

Posted: Sun Oct 23, 2016 2:16 pm
by erinqvnm
heimaki wrote: there's also a x64 version (unofficial) now for this...

http://encode.ru/threads/2095-BPG-yet-a ... #post50549
Very nice, thanks. However, there is an issue viewing bpg image with height/width smaller than 128 pixel. Encoding is fine, bpgview.exe show the image perfectly, but XnView crashes. Also, is there no support for 32-bit (image with transparency) encode yet ?

Re: [fixed] bpgdec.exe console flicker

Posted: Mon Oct 24, 2016 1:01 pm
by heimaki
Hm... for me that works in xnview mp 0.83, even a 50x50px pic opens/saves fine.

what does not work is saving such small files in the x86 version, xnview mp and also classic crashes immediately.

maybe it depends on the settings in the xbpg.ini? :?
/edit: yes, saving of such fails if i use x265 as the encoder. jctvc does fine.

Also, is there no support for 32-bit (image with transparency) encode yet ?
nope, and maybe never will. the project seems to be abandoned.

https://github.com/leavinel/BPG-Plugins/issues/2

nothing happened since then.

Re: [fixed] bpgdec.exe console flicker

Posted: Tue Dec 13, 2016 12:02 pm
by Rfem
heimaki wrote:ok, got it working with latest jctvc source HM-16.12-4815.zip :D
and also x265 2.1 is in there too with bit depth 8 10 and 12 enabled. :P
Can you share updated sources?

Re: [fixed] bpgdec.exe console flicker

Posted: Sun Feb 19, 2017 11:36 am
by helmut
What is the current status of this? (Topic title says "[Fixed]" but I have the impression that there is still an issue.)

Re: [fixed] bpgdec.exe console flicker

Posted: Mon Feb 20, 2017 7:01 am
by heimaki
AFAIK the flickering is fixed.

Re: [fixed] bpgdec.exe console flicker

Posted: Mon Feb 20, 2017 8:24 am
by helmut
heimaki wrote:AFAIK the flickering is fixed.
Good, thank you for your reply, heimaki.

:arrow: Closed

Re: [fixed] bpgdec.exe console flicker

Posted: Thu Nov 02, 2017 4:45 pm
by heimaki
heimaki wrote: /edit: yes, saving of such fails if i use x265 as the encoder. jctvc does fine.

Also, is there no support for 32-bit (image with transparency) encode yet ?
nope, and maybe never will. the project seems to be abandoned.

https://github.com/leavinel/BPG-Plugins/issues/2

nothing happened since then.
ah, there's a version 0.0.0.4 upcoming.