1

Topic: Black image on x265 for Hybrid_2017.04.10.1

Heya Selur, heya guys, may the bunny bring you all the good stuff.

The latest Hybrid have an awesome help menu. Very useful for an amateur guy like me. Great addition to Hybrid.  smile

Now with the report...
I just installed Hybrid_2017.04.10.1 and all the transcoded files with x265 have a black image.
Transcoding process is normal, no errors. In the resulting file audio is normal, file play like normal in MPC, but the image is black. I tried with x264 and everything is ok. The black image appear only if I use x265 codec.

Can anyone confirm? For now I reinstalled Hybrid_2017.03.26.1 and everything is fine with x265.

2

Re: Black image on x265 for Hybrid_2017.04.10.1

Encoded quite a few files with x264 and 2017.04.10.1, no black screen here.
Not sure what could cause this would need a debug output to see the command lines and scripts that are used during encoding.

Cu Selur

3

Re: Black image on x265 for Hybrid_2017.04.10.1

The problem appears with x265, not with x264. I believe debug will be useless because encoding process have no errors. Only the resulting x265 file have a black image, even if is playing audio correctly.

I will do a clean install of Hybrid_2017.04.10.1 and report back.

4

Re: Black image on x265 for Hybrid_2017.04.10.1

Hybrid might use different decoder calls, for different encoders, thus I believe that this could be an issue.
-> wish you luck with finding the cause of the problem

Cu Selur

5

Re: Black image on x265 for Hybrid_2017.04.10.1

- Uninstalled Hybrid_2017.03.26.1 and installed Hybrid_2017.04.10.1 resetting defaults.
- Assuming it might be a problem with an old global profile I loaded on my previous try (the one with black image), I will input all my desired Hybrid settings manually. And on profiles I checked auto save defaults.
- With new Hybrid clean installed I changed only Paths to my folders and select x265 for video and "auto add (first) for audio.
- restart Hybrid.
- load sample file, set resize to 478x200.
- try to add to queue but error: log says:
Current outputDir: is empty!
-> Set it under Config->Path
but i have the path defined OK on Config.
I cannot load any files on queue.
- Found my mistake: I didn't had "Generate" filename checked on main screen. (this is not obvious).
- Sample file added on queue and encoded successfully. Verify and...: SCREEN IS BLACK !
This is with the default Hybrid_2017.04.10.1 settings. I didn't load any older global profile.
- Backup Hybrid folders from Program Files and Roaming.
- Clean install older version again to get x265 file from it.
- Backup Hybrid_2017.03.26.1 files too.
- Install back Hybrid_2017.04.10.1 (clean install).
- Test again and same black image.
- Replacing c:\Program Files\Hybrid\x265.exe with the one on the old Hybrid.
- Crashed at step: Video encoding.
- No solution.  sad Looks like the new Hybrid_2017.04.10.1 don't love me. Are you sure that on you it encodes and plays well x265?

6

Re: Black image on x265 for Hybrid_2017.04.10.1

Uninstalled Hybrid_2017.03.26.1 and installed Hybrid_2017.04.10.1 resetting defaults.

Okay

Assuming it might be a problem with an old global profile I loaded on my previous try (the one with black image), I will input all my desired Hybrid settings manually. And on profiles I checked auto save defaults.

Unsure whether you set the settings manually or not.

- With new Hybrid clean installed I changed only Paths to my folders and select x265 for video and "auto add (first) for audio.
- restart Hybrid.

okay

load sample file, set resize to 478x200.
- try to add to queue but error: log says:
Current outputDir: is empty!

You didn't enter a name and thus Hybrid got confronted with an empty output directory.
-> as expected.

I cannot load any files on queue.
- Found my mistake: I didn't had "Generate" filename checked on main screen. (this is not obvious).

-> Will adjust Hybrid to not do anything in case the output is empty.

Replacing c:\Program Files\Hybrid\x265.exe with the one on the old Hybrid.
- Crashed at step: Video encoding.

Which isn't surprising, since the newer x265 version probably supports and uses new features the old doesn't.

Are you sure that on you it encodes and plays well x265?

Yes, I'm sure that x265 works fine here.

Sample file added on queue and encoded successfully. Verify and...: SCREEN IS BLACK !

No clue why that is the case for you.

-> Create a debug output which contains the scripts and calls used during the encoding. Atm. this might be:

  • a problem with the decoding of your source

  • a problem with the filtering of the source

  • a problem with connecting the decoder to the encoder

  • ...

-> no clue big_smile

Since you are sure that this can't be solved by a debug output and I can't reproduce the issue here I can't help.

Cu Selur

7

Re: Black image on x265 for Hybrid_2017.04.10.1

Thank you very much for your answer and for your time. Please look into this only if you wish/have time.

- Restored back the original x265.exe that belong to Hybrid 2017.04.10.1.
- Start Hybrid 2017.04.10.1 and enable degug LVL9.
- Loaded the sample. Encoding finish successfully. Resulting file is black. I tried to play it with different MPC outputs but is still black. Avidemux shows it black too.

On RAR here I included debug output, the transcoded file and a short screen capture with settings I used (they are all standard, no weird settings):
https://we.tl/URhmkZIuPX

8

Re: Black image on x265 for Hybrid_2017.04.10.1

Decoding and encoding calls look fine:

"C:\PROGRA~1\Hybrid\ffmpeg.exe" -y -threads 4 -i "H:\Capture\_Hybrid\Input\Avengers sample.mkv" -map 0:0 -an -sn  -vf scale=478:200 -vsync 0 -pix_fmt yuv420p  -sws_flags spline -f yuv4mpegpipe - | "C:\PROGRA~1\Hybrid\x265.exe" --input - --y4m --ctu 32 --limit-modes --no-open-gop --cbqpoffs -2 --crqpoffs -2 --qpfile "H:\Capture\_Hybrid\Temp\Avengers sample_13_48_53_1010_02.qp" --psy-rd 2.50 --rdoq-level 2 --psy-rdoq 10.00 --aq-mode 0 --deblock=-1:-1 --limit-sao --range limited --colormatrix bt709 --output "H:\Capture\_Hybrid\Temp\13_48_53_1010_03.265"

MP4Box is reporting problems upon muxing. 'byte_align not found at end of header !'

=> replacing the MP4Box version with an other one fixes the problem. Will report the issue to the MP4Box developers.

Cu Selur

Post's attachments

Attachment icon MP4Box.7z 1.04 mb, 37 downloads since 2017-04-17 

9

Re: Black image on x265 for Hybrid_2017.04.10.1

Yaii! Thank you very much Selur. This definitely solved the problem.

10

Re: Black image on x265 for Hybrid_2017.04.10.1

And if you had posted a debug output at the beginning of this thread I wouldn't have wasted half my day creating tons of H.265 files,...

Happy the problem is solved.

Cu Selur

11

Re: Black image on x265 for Hybrid_2017.04.10.1

Small update: Issue has been fixed through the MP4Box developers (https://github.com/gpac/gpac/issues/801).
-> next release will contain an up-to-date new MP4Box version which fixes the issue.

Cu Selur

12 (edited by Horst Girtew 2017-04-20 16:33:38)

Re: Black image on x265 for Hybrid_2017.04.10.1

Ha, and I thought I had adjusted my settings wrongly once again.