FAQ  •  Register  •  Login

Recode H264 Level 5.1 doesn't kick in

<<

wotg

Streaming enthusiast

Posts: 28

Joined: Sun Jan 02, 2011 1:30 am

Post Sat Dec 03, 2011 8:33 am

Recode H264 Level 5.1 doesn't kick in

When playing back H264 Level 5.1 files, I was hopping the following recode section would kick in:

<Video targetContainer="mpegts" targetACodec="ac3" aBitrate="320">
<Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.1" />

However this didn't happen. Instead, the following recode section kicked in:
<Video targetContainer="mpegts">
<Matches container="matroska" />

If I delete the match condition:
<Video targetContainer="mpegts">
<Matches container="matroska" />

the file would not play at all.

Why is it the case?

An example file has the following properties:

Input #0, matroska,webm, from 'avc.mkv':
Duration: 01:44:21.59, start: 0.000000, bitrate: N/A
Stream #0.0(eng): Video: h264 (High), yuv420p, 624x352, PAR 1:1 DAR 39:22, 2
3.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
title : 皜臭?靽桀??VD9-HALFCD.NORM.by.?輯?
Stream #0.1(chi): Audio: aac, 48000 Hz, 2 channels (FC), s16 (default)
Metadata:
title : ?質祗
Stream #0.2(chi): Audio: aac, 48000 Hz, 2 channels (FC), s16
Metadata:
title : 蝎方祗
Stream #0.3(chi): Subtitle: [0][0][0][0] / 0x0000 (default)
Metadata:
title : chs.by.?輯rip
Stream #0.4(chi): Subtitle: [0][0][0][0] / 0x0000
Metadata:
title : cht.by.?輯rip
Stream #0.5(eng): Subtitle: [0][0][0][0] / 0x0000
Metadata:
title : eng.by.?輯rip
Stream #0.6(chi): Subtitle: [0][0][0][0] / 0x0000
Metadata:
title : chs eng.by.?輯rip
At least one output file must be specified

While ffmpeg didn't report the H264's level, Mediainfo confirm it is Level 5.1.
<<

pizzaguy541

Serviio lover

Posts: 89

Joined: Sun Jan 02, 2011 10:01 am

Location: United States

Post Sat Dec 03, 2011 12:59 pm

Re: Recode H2364 Level 5.1 doesn't kick in

This is a known problem and it is being looked into.

https://bitbucket.org/xnejp03/serviio/i ... -detection
<<

ChrisP1

Serviio newbie

Posts: 11

Joined: Wed Dec 28, 2011 12:13 am

Post Sun Jan 01, 2012 11:11 pm

Re: Recode H2364 Level 5.1 doesn't kick in

I have the same problem with 0.6.1 ticket says that this is now resolved? Is it supposed to be fixed in 0.6.1?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Jan 01, 2012 11:42 pm

Re: Recode H2364 Level 5.1 doesn't kick in

Hope so.
<<

ChrisP1

Serviio newbie

Posts: 11

Joined: Wed Dec 28, 2011 12:13 am

Post Mon Jan 02, 2012 12:19 am

Re: Recode H264 Level 5.1 doesn't kick in

Yes you are correct now it does appear to be working i had to add a couple of lines to the config as not all container types (ie mpegts) were checked in the Sony-Blu-Ray config.
  Code:
         <!-- h264 videos with high/main profile level > 4.1 will be transcoded to mpegts with mpeg2video and ac3 audio -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="17000" targetACodec="ac3" aBitrate="320">
            <Matches container="avi" vCodec="h264" profile="high" levelGreaterThan="4.1" />
            <Matches container="avi" vCodec="h264" profile="main" levelGreaterThan="4.1" />
            <Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.1" />
            <Matches container="matroska" vCodec="h264" profile="main" levelGreaterThan="4.1" />
            <Matches container="mp4" vCodec="h264" profile="high" levelGreaterThan="4.1" />
            <Matches container="mp4" vCodec="h264" profile="main" levelGreaterThan="4.1" />
            <Matches container="mpegts" vCodec="h264" profile="high" levelGreaterThan="4.1" />
            <Matches container="mpegts" vCodec="h264" profile="main" levelGreaterThan="4.1" />
         </Video>


However I do have a file that mediainfo reports as L5.0 that is not detected. The best part is that the file appears to play correctly without transcoding anyway. Info below

  Code:
General
Complete name                    : E:\Media\HD Test Files\test_hd_9refs_high_l5.1.mp4
Format                           : MPEG-4
Format profile                   : Base Media
Codec ID                         : isom
File size                        : 63.1 MiB
Duration                         : 1mn 58s
Overall bit rate mode            : Variable
Overall bit rate                 : 4 479 Kbps
Encoded date                     : UTC 2008-11-03 15:36:24
Tagged date                      : UTC 2008-11-03 15:36:24
Writing application              : Yamb 2.0.0.8 [http://yamb.unite-video.com]

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L5.0
Format settings, CABAC           : Yes
Format settings, ReFrames        : 9 frames
Codec ID                         : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                         : 1mn 58s
Bit rate                         : 4 377 Kbps
Maximum bit rate                 : 12.3 Mbps
Width                            : 1 920 pixels
Height                           : 1 056 pixels
Display aspect ratio             : 16:9
Frame rate mode                  : Constant
Frame rate                       : 23.976 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.090
Stream size                      : 61.7 MiB (98%)
Writing library                  : x264 core 65 r1016M dbc5ef0
Encoding settings                : cabac=1 / ref=9 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy_rd=1.0:0.0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=1 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=crf / crf=26.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
Encoded date                     : UTC 2008-11-03 12:53:10
Tagged date                      : UTC 2008-11-03 15:36:39

Audio
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format profile                   : LC
Codec ID                         : 40
Duration                         : 1mn 58s
Bit rate mode                    : Variable
Bit rate                         : 98.7 Kbps
Maximum bit rate                 : 144 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 44.1 KHz
Compression mode                 : Lossy
Stream size                      : 1.39 MiB (2%)
Encoded date                     : UTC 2008-11-03 15:36:38
Tagged date                      : UTC 2008-11-03 15:36:39
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Jan 02, 2012 1:49 pm

Re: Recode H264 Level 5.1 doesn't kick in

ChrisP1 wrote:Yes you are correct now it does appear to be working i had to add a couple of lines to the config as not all container types (ie mpegts) were checked in the Sony-Blu-Ray config.

You're right, mpegts with h264> L4.1 should be added.
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jan 02, 2012 1:50 pm

Re: Recode H264 Level 5.1 doesn't kick in

it's probably because Serviio 0.6 uses this to work out level: http://wiki.serviio.org/doku.php?id=get_h264_level
Not the actual header value. 0.6.1 will change that to take the higher of the 2.

Return to Sony

Who is online

Users browsing this forum: Google [Bot] and 13 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.