Log in

View Full Version : HEVC encoding


dror.sharon
17th July 2016, 07:00
Hi all!

So I bought a new 4K TV, and it comes with built in HEVC support from USB.
However, I believe it only plays divx files (that's what it says in LG's site, I think).

I have several movies and TV shows in MP4 and MKV encoded in HEVC, and I want to repackage them into divx. Just repacking the streams, no re-encoding.

Is there a way to do this? If so, what would be the best software to accomplish it?

Thanx guys!

Jamaika
17th July 2016, 07:41
Bullshit.
You provide what model LG. You read instructions about codecs. You download the latest software for LG. I should play HEVC.
http://www.lg.com/us/support/product-help/CT10000018-1427120133847
http://www.lg.com/us/lgeai/HDTV/tv-support-center?prevURL=http://www.lg.com/us/support/product-help/CT10000018-1427120133847&helpReason=smartshare
https://www.youtube.com/watch?v=GmxtE4RZP3U

PS If you can't play HEVC can also call the customer service LG.

dror.sharon
17th July 2016, 08:53
Bullshit.
You provide what model LG. You read instructions about codecs. You download the latest software for LG. I should play HEVC.
http://www.lg.com/us/support/product-help/CT10000018-1427120133847
http://www.lg.com/us/lgeai/HDTV/tv-support-center?prevURL=http://www.lg.com/us/support/product-help/CT10000018-1427120133847&helpReason=smartshare
https://www.youtube.com/watch?v=GmxtE4RZP3U

PS If you can't play HEVC can also call the customer service LG.

Well the model number is 55UB859Y. On the official LG page it claims to have a full HEVC 60p decoder that can play directly from USB, but I have not been able to play either MP4 or MKV with HEVC at all.

Do you think a software update will solve the issue? It was installed today and I have not updated it at all yet.

Jamaika
17th July 2016, 10:06
Updates certainly something correct.

I forgot to add that it must be a card USB3/SD for fast data transfer up to 100MB/s.

dror.sharon
17th July 2016, 11:55
A card USB3? What does that mean?

I have a 3TB external USB 3 WD drive. It plays 4K movies fine in h.264. Only h.265/HEVC are problematic...

Jamaika
17th July 2016, 12:27
There are different memory stick from various years.
https://www.scan.co.uk/products/512gb-corsair-flash-voyager-slider-x2-usb-30-capless-slider-design-read-upto-200mbs-write-upto-90mbs
There are programs for testing memory stick.
http://media.bestofmicro.com/X/2/336854/original/copy_bench_mp3_read.png
In your case it should all play.

dror.sharon
17th July 2016, 12:35
Ok, I'll update the TV and see if it works. If not I'll know something is wrong :\

Thanx!

dror.sharon
17th July 2016, 16:08
Wow, you were right!
I updated the software, and now it plays HEVC MKVs! Not MP4s though but that's fine by me :)
I only tried up to 1080p so far. Will try 4K when I get home again tonight...

Thanx a lot! I was beginning to fear I'd have to return this TV!

dror.sharon
17th July 2016, 20:56
Well, I may have spoken too soon :(
I have managed to play 4K MKVs, but not all of them, and I have no idea why. They all seem to be HEVC MKV 2160p files.
Could it be the audio? I thought TVs would play video with no audio of the audio codec was the problem...

How can I check for differences between files so I can learn what is causing the problem?

Thanx guys!

Leo 69
17th July 2016, 21:28
You may want to try this:
https://mediaarea.net/en/MediaInfo

dror.sharon
18th July 2016, 05:53
Thanx!
That helped a lot!

I used it, but am now even more confused, as I see nothing that would indicate what could possibly cause it...
Here are the results, for example:
File 1 (doesn't work):
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 1 h 48 min
Bit rate : 5 932 kb/s
Width : 3 840 pixels
Height : 1 600 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.040
Stream size : 4.48 GiB (92%)
Writing library : x265 1.9+140-34a3d35c5f97:[Windows][GCC 5.3.0][64 bit] 10bit
Encoding settings : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=1 / subme=2 / merange=57 / no-rect / no-amp / max-merge=2 / temporal-mvp / no-early-skip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / no-fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=23 / scenecut=40 / rc-lookahead=20 / lookahead-slices=8 / bframes=4 / bframe-bias=0 / b-adapt=2 / ref=3 / limit-refs=3 / no-limit-modes / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=3 / psy-rd=2.00 / rdoq-level=0 / psy-rdoq=0.00 / no-rd-refine / signhide / deblock=0:0 / sao / no-sao-non-deblock / b-pyramid / cutree / no-intra-refresh / rc=2 / pass / bitrate=5933 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30
Default : Yes
Forced : No

Audio #1
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 1 h 48 min
Bit rate : 373 kb/s
Channel(s) : 7 channels
Channel(s)_Original : 8 channels
Channel positions : Front: L C R, Side: L R, Back: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 spf)
Compression mode : Lossy
Delay relative to video : 9 ms
Stream size : 289 MiB (6%)
Title : English 7.1
Language : English
Default : Yes
Forced : No

Audio #2
ID : 3
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Codec ID : A_AAC
Duration : 1 h 48 min
Bit rate : 50.8 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz / 24.0 kHz
Frame rate : 23.438 FPS (1024 spf)
Compression mode : Lossy
Delay relative to video : 31 ms
Stream size : 39.3 MiB (1%)
Title : Commentary w Ryan Renolds
Language : English
Default : No
Forced : No

Audio #3
ID : 4
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Codec ID : A_AAC
Duration : 1 h 48 min
Bit rate : 48.0 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz / 24.0 kHz
Frame rate : 23.438 FPS (1024 spf)
Compression mode : Lossy
Delay relative to video : 31 ms
Stream size : 38.4 MiB (1%)
Title : Commentary w Tim Miller
Language : English
Default : No
Forced : No

Text #1
ID : 5
Format : VobSub
Muxing mode : zlib
Codec ID : S_VOBSUB
Codec ID/Info : Picture based subtitle format used on DVDs
Duration : 1 h 48 min
Bit rate : 15.4 kb/s
Count of elements : 2421
Stream size : 11.9 MiB (0%)
Title : Commentary 1
Language : English
Default : No
Forced : No

Text #2
ID : 6
Format : VobSub
Muxing mode : zlib
Codec ID : S_VOBSUB
Codec ID/Info : Picture based subtitle format used on DVDs
Duration : 1 h 47 min
Bit rate : 13.5 kb/s
Count of elements : 1994
Stream size : 10.4 MiB (0%)
Title : Commentary 2
Language : English
Default : No
Forced : No

Text #3
ID : 7
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 44 min
Bit rate : 58 b/s
Count of elements : 1572
Stream size : 44.9 KiB (0%)
Language : English
Default : No
Forced : No

Text #4
ID : 8
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 47 min
Bit rate : 87 b/s
Count of elements : 1408
Stream size : 69.1 KiB (0%)
Language : Hebrew
Default : No
Forced : No

File 2 (works perfectly at 4K):
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 1 h 0 min
Bit rate : 4 049 kb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.020
Stream size : 1.70 GiB (95%)
Writing library : x265 1.9+54-291beccb6760:[Windows][GCC 5.3.0][64 bit] 10bit
Encoding settings : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=1 / subme=2 / merange=57 / no-rect / no-amp / max-merge=2 / temporal-mvp / no-early-skip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=23 / scenecut=40 / rc-lookahead=15 / lookahead-slices=0 / bframes=4 / bframe-bias=0 / b-adapt=0 / ref=3 / limit-refs=0 / no-limit-modes / weightp / no-weightb / aq-mode=1 / qg-size=64 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=2 / psy-rd=0.30 / rdoq-level=0 / psy-rdoq=0.00 / no-rd-refine / signhide / deblock / sao / no-sao-non-deblock / b-pyramid / cutree / no-intra-refresh / rc=2 / pass / bitrate=4049 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Codec ID : A_AAC
Duration : 1 h 0 min
Bit rate : 192 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz / 24.0 kHz
Frame rate : 23.438 FPS (1024 spf)
Compression mode : Lossy
Delay relative to video : 31 ms
Stream size : 84.0 MiB (5%)
Language : English
Default : Yes
Forced : No

Text
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 58 min
Bit rate : 50 b/s
Count of elements : 721
Stream size : 21.6 KiB (0%)
Language : English
Default : No
Forced : No

Aside from minor differences in things like bitrate, the MKVs seem to be identical: main profile for HEVC, AAC audio, subtitle tracks... I doubt different subtitle tracks would cause the file not to play.
Here is another file that doesn't play at all:
File 3 (doesn't work):
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 51 min
Bit rate : 4 049 kb/s
Width : 3 840 pixels
Height : 1 920 pixels
Display aspect ratio : 2.000
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.023
Stream size : 1.45 GiB (95%)
Writing library : x265 1.8+38-fe65544b6c40:[Windows][GCC 4.8.2][64 bit] 10bit
Encoding settings : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=1 / subme=2 / merange=57 / no-rect / no-amp / max-merge=2 / temporal-mvp / no-early-skip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=23 / scenecut=40 / rc-lookahead=15 / lookahead-slices=0 / bframes=4 / bframe-bias=0 / b-adapt=0 / ref=2 / limit-refs=0 / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=2 / psy-rd=0.30 / rdoq-level=0 / psy-rdoq=0.00 / signhide / deblock / sao / no-sao-non-deblock / b-pyramid / cutree / rc=2 / pass / bitrate=4049 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30
Default : Yes
Forced : No

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Codec ID : A_AAC
Duration : 51 min
Bit rate : 206 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz / 24.0 kHz
Frame rate : 23.438 FPS (1024 spf)
Compression mode : Lossy
Delay relative to video : 40 ms
Stream size : 75.6 MiB (5%)
Language : English
Default : Yes
Forced : No

Text
ID : 3
Format : VobSub
Muxing mode : zlib
Codec ID : S_VOBSUB
Codec ID/Info : Picture based subtitle format used on DVDs
Duration : 47 min
Bit rate : 3 845 b/s
Count of elements : 561
Stream size : 1.31 MiB (0%)
Language : English
Default : No
Forced : No

Any thoughts? I can see several differences (things like AR) but none of those look like things that would prevent the playback of a file...

Jamaika
18th July 2016, 06:24
You can try play the same track video.
mkvextract.exe tracks "file.mkv" 0:111.h265

Sometimes it helps. I think the main factor is the aspect-ratio.

dror.sharon
18th July 2016, 06:28
I have no idea what you wrote there :)

I don't know how to use console commands for MKVextract/merge/etc.

Do you think the aspect ratio has to be 16:9 for the file to play?

Jamaika
18th July 2016, 06:34
Standard TV is:
Width: 3 840 pixels
Height: 2 160 pixels
Display aspect ratio: 16: 9

Although TV should all play, because advertising is that it plays YouTube.

dror.sharon
18th July 2016, 06:44
It does play YouTube, as well as Netflix. I just watched some stuff yesterday.

Is there a way to re-encode the aspect ratio without actually losing quality? Because in 4K, quality is the basic idea...
Did the commands you gave above do this? If so, how do I use it?
Whenever I try to use MKVextract without a GUI it only opens a black window, runs some stuff, then closes automatically.

Jamaika
18th July 2016, 06:55
You can try to resize the film by the DAR/SAR.
On the other hand I do not know, can the TV handle and is it the cause?

Do not give up, must be given the correct input filename.

Add a piece of the film is to remuxing.

dror.sharon
18th July 2016, 07:20
You can try to stretch the film by the SAO.
On the other hand I do not know, can the TV handle and is it the cause?

Do not give up, must be given the correct input filename.

Add a piece of the film is to remuxing.

I don't understand :( English is not my native language.

How do I even enter the filename and such? The window just opens and closes on its own.

dror.sharon
18th July 2016, 07:51
But again, I don't know what that means...
Can you give me a step by step guide (starting with even the most basic thing, like "put the file in a specific folder"), because I only know how to use GUI stuff.

Jamaika
18th July 2016, 08:15
download with https://mkvtoolnix.download/windows/pre/64bit/mkvtoolnix-64bit-9.3.1-build20160715-01264-3fc438c.7z
mkvextract.exe tracks "file.mkv" 0:111.h265
download with https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-20160718-a49ed9e-win64-static.zip
ffmpeg.exe -i "111.h265" -f matroska -c:v copy -aspect 16:9 "111.mkv"

Leo 69
18th July 2016, 11:34
@dror.sharon

Can you provide a link to the manual of your TV-set?

dror.sharon
18th July 2016, 17:30
Sure!

I think this (http://www.lg.com/il/lgecs.downloadFile.ldwf?DOC_ID=KROWM000588067&what=MANUAL&fromSystem=LG.COM&fileId=KROWM000588067.pdf&ORIGINAL_NAME_b1_a1=MFL68140513_03_ENG_RS.pdf) is the complete manual.

littlepox
18th July 2016, 18:34
I think the cause is due to 10bit encoding.
HEVC has two profiles, Main(8-bit) and Main10(10-bit)

Just treat them like apples and oranges, they are both "fruits"
The problematic ones you posted are all belongs to the later, which is more demanding.

A lot of TVs can only cope with Main Profile(8-bit). However they still say they can cope well with "fruits", which only refer to "apples"

Sir Didymus
18th July 2016, 23:03
Text #1
ID : 5
Format : VobSub
Muxing mode : zlib
Codec ID : S_VOBSUB
Codec ID/Info : Picture based subtitle format used on DVDs

I guess this is the issue. You may want to make some test without adding VobSub subtitles to the compilation: if I am not mistaken, basically these streams are muxed in the mkv container as "zip" files; maybe your TV does not support this muxing mode?

@littlepox: all three videos in the logs posted by Dror are encoded with the Main10 profile... So at least for one of the three examples, his LG TV can play it just fine... Right?

dror.sharon
19th July 2016, 08:33
Yes that is correct. I don't think the profile is the problem, because some of the files with bit10 work ok.

I will try to remove the subtitle tracks and see if that works (don't use subtitles anyway).
Will let you know what happens!

dror.sharon
19th July 2016, 18:00
Well, removing the subtitles with mkvtoolnix didn't work :(

Not sure what to do next... Maybe it IS the AR?

dror.sharon
19th July 2016, 18:19
Also now I tried:
1. Removing the cover jpg
2. Removing all audio tracks except the first one

Didn't work.

However, I still don't think it's the AR. I managed to play HEVC with AAC at a resolution of 1280x528, which is also not the standard 16:9 1280x720, and they played just fine...

Any other ideas?

Sir Didymus
19th July 2016, 18:46
UHD (4K) --> 3840x2160
1080p --> 1920x1080
720p --> 1280x720

To exclude it is a matter of video resolution, have you any example of NOT WORKING mkv files having (precisely) the above resolutions?

Cheers,
SD

dror.sharon
19th July 2016, 18:55
No, but I have examples of MKVs in other resolutions that ARE working...

I'll try to find some HEVC mkvs in those resolutions to see if I can find any that don't work.

Any other ideas in the meantime?

dror.sharon
23rd July 2016, 15:33
So I did the test with a few more files.
Here are the results :
File (only one) that played ok :
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L5@Main
Codec ID : hev1
Codec ID/Info : High Efficiency Video Coding
Duration : 45 min
Bit rate : 4 084 kb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16 : 9
Frame rate mode : Constant
Frame rate : 23.976 (23976/1000) FPS
Color space : YUV
Chroma subsampling : 4 : 2 : 0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.021
Stream size : 1.29 GiB (81%)
Writing library : x265 1.7-732-g3bb248f:[Linux][GCC 4.7.2][64 bit] 8bit
Encoding settings : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=1 / subme=2 / merange=57 / no-rect / no-amp / max-merge=2 / temporal-mvp / no-early-skip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / no-fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=23 / scenecut=40 / rc-lookahead=20 / lookahead-slices=8 / bframes=4 / bframe-bias=0 / b-adapt=2 / ref=3 / limit-refs=0 / no-limit-modes / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=3 / psy-rd=0.30 / rdoq-level=0 / psy-rdoq=0.00 / signhide / deblock / sao / no-sao-non-deblock / b-pyramid / cutree / no-intra-refresh / rc=abr / bitrate=4000 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / ipratio=1.40 / pbratio=1.30

Audio #1
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 45 min
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 2 channels
Channel(s)_Original : 6 channels
Channel positions : Front : L C R, Side : L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 spf)
Compression mode : Lossy
Stream size : 124 MiB (8%)
Default : Yes
Alternate group : 1

Audio #2
ID : 3
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 45 min
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 2 channels
Channel(s)_Original : 6 channels
Channel positions : Front : L C R, Side : L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 spf)
Compression mode : Lossy
Stream size : 124 MiB (8%)
Default : No
Alternate group : 1

Files that failed to play:
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 1 h 49 min
Bit rate : 5 924 kb/s
Width : 3 840 pixels
Height : 1 600 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.040
Stream size : 4.53 GiB (94%)
Writing library : x265 1.8+38-fe65544b6c40:[Windows][GCC 4.8.2][64 bit] 10bit
Encoding settings : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=1 / subme=2 / merange=57 / no-rect / no-amp / max-merge=2 / temporal-mvp / no-early-skip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / no-fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=23 / scenecut=40 / rc-lookahead=20 / lookahead-slices=0 / bframes=4 / bframe-bias=0 / b-adapt=2 / ref=3 / limit-refs=0 / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=0.30 / cbqpoffs=0 / crqpoffs=0 / rd=3 / psy-rd=0.50 / rdoq-level=2 / psy-rdoq=10.00 / signhide / deblock=-2:-2 / sao / no-sao-non-deblock / b-pyramid / cutree / rc=2 / pass / bitrate=5940 / qcomp=0.80 / qpmin=0 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ipratio=1.10 / pbratio=1.10
Default : Yes
Forced : No

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 1 h 49 min
Bit rate : 353 kb/s
Channel(s) : 7 channels
Channel(s)_Original : 8 channels
Channel positions : Front: L C R, Side: L R, Back: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 spf)
Compression mode : Lossy
Delay relative to video : 9 ms
Stream size : 278 MiB (6%)
Language : English
Default : Yes
Forced : No

Menu
00:00:00.000 : en:00:00:00.000
00:07:02.589 : en:00:07:02.589
00:11:59.344 : en:00:11:59.344
00:19:27.625 : en:00:19:27.625
00:25:34.825 : en:00:25:34.825
00:30:02.342 : en:00:30:02.342
00:39:22.068 : en:00:39:22.068
00:57:43.960 : en:00:57:43.960
01:00:59.197 : en:01:00:59.197
01:04:09.637 : en:01:04:09.637
01:07:22.664 : en:01:07:22.664
01:10:34.147 : en:01:10:34.147
01:16:59.865 : en:01:16:59.865
01:22:50.132 : en:01:22:50.132
01:30:19.914 : en:01:30:19.914
01:35:44.530 : en:01:35:44.530

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 h 6 min
Bit rate : 4 001 kb/s
Width : 3 840 pixels
Height : 2 064 pixels
Display aspect ratio : 1.85:1
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.021
Stream size : 3.55 GiB (91%)
Writing library : x265 1.8+38-fe65544b6c40:[Windows][GCC 4.8.2][64 bit] 10bit
Encoding settings : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=1 / subme=2 / merange=57 / no-rect / no-amp / max-merge=2 / temporal-mvp / no-early-skip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / no-fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=23 / scenecut=40 / rc-lookahead=20 / lookahead-slices=0 / bframes=4 / bframe-bias=0 / b-adapt=2 / ref=3 / limit-refs=0 / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=3 / psy-rd=0.30 / rdoq-level=0 / psy-rdoq=0.00 / signhide / deblock / sao / no-sao-non-deblock / b-pyramid / cutree / rc=2 / pass / bitrate=4000 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30
Default : Yes
Forced : No

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 2 h 6 min
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 spf)
Compression mode : Lossy
Delay relative to video : 1 s 0 ms
Stream size : 349 MiB (9%)
Language : English
Default : Yes
Forced : No

Menu
00:00:00.000 : en:(01)00:00:00:000
00:03:58.821 : en:(02)00:03:58:821
00:11:13.172 : en:(03)00:11:13:172
00:15:24.924 : en:(04)00:15:24:924
00:21:29.621 : en:(05)00:21:29:621
00:25:44.543 : en:(06)00:25:44:543
00:29:46.826 : en:(07)00:29:46:826
00:31:31.014 : en:(08)00:31:31:014
00:35:34.298 : en:(09)00:35:34:298
00:45:24.346 : en:(10)00:45:24:346
00:50:21.893 : en:(11)00:50:21:893
00:54:13.333 : en:(12)00:54:13:333
00:57:18.351 : en:(13)00:57:18:351
01:00:07.395 : en:(14)01:00:07:395
01:04:12.056 : en:(15)01:04:12:056
01:09:32.084 : en:(16)01:09:32:084
01:11:48.053 : en:(17)01:11:48:053
01:13:34.284 : en:(18)01:13:34:284
01:16:47.561 : en:(19)01:16:47:561
01:21:31.177 : en:(20)01:21:31:177
01:23:10.026 : en:(21)01:23:10:026
01:26:30.852 : en:(22)01:26:30:852
01:31:21.434 : en:(23)01:31:21:434
01:34:13.856 : en:(24)01:34:13:856
01:43:42.674 : en:(25)01:43:42:674
01:47:38.660 : en:(26)01:47:38:660
01:55:20.079 : en:(27)01:55:20:079
01:59:16.274 : en:(28)01:59:16:274

dror.sharon
23rd July 2016, 18:13
And a few more examples. These ones are 3D films:
Working:
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2 h 31 min
Bit rate : 6 750 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.136
Stream size : 7.15 GiB (90%)
Writing library : x264 core 148 r2638 7599210
Encoding settings : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=30 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=2 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=3 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=6750 / ratetol=1.0 / qcomp=0.60 / qpmin=1 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=62500 / vbv_bufsize=78125 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Duration : 2 h 31 min
Bit rate mode : Constant
Bit rate : 755 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 spf)
Bit depth : 24 bits
Compression mode : Lossy
Stream size : 819 MiB (10%)
Language : English
Default : Yes
Forced : No

Text #1
ID : 3
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 2 h 31 min
Bit rate : 13.1 kb/s
Count of elements : 2428
Stream size : 14.2 MiB (0%)
Language : English
Default : Yes
Forced : No

Text #2
ID : 4
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 2 h 31 min
Bit rate : 9 132 b/s
Count of elements : 2584
Stream size : 9.89 MiB (0%)
Language : Korean
Default : No
Forced : No

Menu
00:00:00.000 : en:Chapter 01
00:09:50.047 : en:Chapter 02
00:20:45.786 : en:Chapter 03
00:29:58.671 : en:Chapter 04
00:38:46.613 : en:Chapter 05
00:49:25.920 : en:Chapter 06
00:59:21.555 : en:Chapter 07
01:10:06.202 : en:Chapter 08
01:21:15.119 : en:Chapter 09
01:30:00.310 : en:Chapter 10
01:38:20.810 : en:Chapter 11
01:49:57.381 : en:Chapter 12
02:01:49.051 : en:Chapter 13
02:10:40.414 : en:Chapter 14
02:18:41.313 : en:Chapter 15
02:23:50.370 : en:Chapter 16
02:31:40.882 : en:Chapter 17

Not working:
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
MultiView_Count : 2
MultiView_Layout : Top-Bottom (left eye first)
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 3 h 14 min
Bit rate mode : Variable
Bit rate : 25.0 Mb/s
Maximum bit rate : 40.0 Mb/s
Width : 1 920 pixels
Height : 2 160 pixels
Display aspect ratio : 0.889
Original display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.251
Stream size : 34.0 GiB (94%)
Title : 3D Full-T&B (x264 BD compatible 2-pass 25000 Kbps preset slower, tune film)
Writing library : x264 core 148 r2638 7599210
Encoding settings : cabac=1 / ref=2 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=1 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=1 / constrained_intra=0 / bframes=3 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=1 / weightp=1 / keyint=24 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=24 / rc=2pass / mbtree=1 / bitrate=25000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=40000 / vbv_bufsize=30000 / nal_hrd=vbr / filler=0 / frame-packing=4 / ip_ratio=1.40 / aq=1:1.00
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Duration : 3 h 14 min
Bit rate mode : Constant
Bit rate : 1 509 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 spf)
Bit depth : 24 bits
Compression mode : Lossy
Delay relative to video : 3 ms
Stream size : 2.05 GiB (6%)
Title : English (DTS 5.1 48KHz)
Language : English
Default : Yes
Forced : No

Text #1
ID : 3
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 3 h 1 min
Bit rate : 6 300 b/s
Count of elements : 4392
Stream size : 8.16 MiB (0%)
Title : English 2D (BD SUP)
Language : English
Default : No
Forced : No

Text #2
ID : 4
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 3 h 9 min
Bit rate : 7 457 b/s
Count of elements : 5482
Stream size : 10.1 MiB (0%)
Title : English 2D (BD SUP)
Language : English
Default : No
Forced : No

Text #3
ID : 5
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 3 h 1 min
Bit rate : 4 749 b/s
Count of elements : 3514
Stream size : 6.15 MiB (0%)
Title : French 2D (BD SUP)
Language : French
Default : No
Forced : No

Text #4
ID : 6
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 3 h 1 min
Bit rate : 5 697 b/s
Count of elements : 4212
Stream size : 7.38 MiB (0%)
Title : Spanish 2D (BD SUP)
Language : Spanish
Default : No
Forced : No

Text #5
ID : 7
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 3 h 11 min
Bit rate : 1 290 b/s
Count of elements : 322
Stream size : 1.76 MiB (0%)
Title : Chinese 2D (BD SUP)
Language : Chinese
Default : No
Forced : No

benwaggoner
24th July 2016, 20:54
And a few more examples. These ones are 3D films:

MultiView and 3D tend to be pretty fraught in general. Also, top/bottom stereoscopic isn't nearly as common, nor nearly as good, as left-right. Most consumer 3D technologies more negatively impact horizontal detail, so compressing on that axis makes a lot more sense.

2160x1080 is also quite non-standard, and isn't supported by Level 4.1, which your streams are tagged as. That would be 2332800 pixels frame, which isn't supported below Level 5 in H.264 or HEVC. You can get away with 2048x1080 at Level 4 in HEVC and 4.1 in H.264.

x265 makes it a lot harder to generate streams tagged with the wrong profile and level compared to x264. I see the HEVC stream that isn't working is properly tagged as Level 5.

A lot of UHD players/TVs don't handle arbitrary frame sizes well at >1920x1080p, which could be the problem here.

dror.sharon
25th July 2016, 09:13
So you think it is indeed the resolution that is the problem? i.e. I need streams with the full AR for it to work?

Sir Didymus
25th July 2016, 13:53
Based on the logs provided by you, until you have counter-examples, it seems that encoding at the following resolutions always provides playable results:

UHD (4K) --> 3840x2160
1080p --> 1920x1080
720p --> 1280x720

So, why to struggle and self inflicting troubles with different frame sizes?

benwaggoner
25th July 2016, 17:49
So you think it is indeed the resolution that is the problem? i.e. I need streams with the full AR for it to work?
That's the most likely issue I see in there. You'd need to test both ways to verify.

dror.sharon
25th July 2016, 18:45
Based on the logs provided by you, until you have counter-examples, it seems that encoding at the following resolutions always provides playable results:

UHD (4K) --> 3840x2160
1080p --> 1920x1080
720p --> 1280x720

So, why to struggle and self inflicting troubles with different frame sizes?

Because when I have a movie with a resolution of 1600P, encoding it at 2160P with nothing but black bars top and bottom will result in a larger file size, sometimes much larger.
I have a 3 TB drive, but you'd be surprised how quickly it fills up (I mean, just my series collection of Lost, 6 seasons, at 1080P from blu ray, takes over 200GB. Battlestar Galactica takes even more!).

That's the most likely issue I see in there. You'd need to test both ways to verify.

Thanx, but I'm having trouble finding a lot of 4k files. For testing I usually download something, as it takes too long to make originals in those resolutions.

benwaggoner
25th July 2016, 19:01
Because when I have a movie with a resolution of 1600P, encoding it at 2160P with nothing but black bars top and bottom will result in a larger file size, sometimes much larger.
I have a 3 TB drive, but you'd be surprised how quickly it fills up (I mean, just my series collection of Lost, 6 seasons, at 1080P from blu ray, takes over 200GB. Battlestar Galactica takes even more!).
Encoding black bars takes virtually no bits. I personally find it offensive to the compressionist's spirit, but it isn't that bad in practice. You can also set the AFD to indicate the real active image.

Thanx, but I'm having trouble finding a lot of 4k files. For testing I usually download something, as it takes too long to make originals in those resolutions.
I'm not sure how you could get 4K sources other than downloading them or making them :).

dror.sharon
25th July 2016, 19:31
Ok...
Well, I found the problem!

The problem was... That I'm stupid!

Remember it started working after the update to the tv software? Well, turns out there were two more updates I didn't install!

I installed them now, and suddenly EVERYTHING works! Even the strangely resolutioned 3D files!

Thanx a lot for all the help! I REALLY appreciate it!