FAQ  •  Register  •  Login

H264 Hi10p / 10-bit transcoding

<<

blm14

Serviio newbie

Posts: 8

Joined: Sun May 06, 2012 2:59 pm

Post Sun May 06, 2012 3:02 pm

H264 Hi10p / 10-bit transcoding

Hey there! I did a search already and didn't find anything on this topic yet. Does Serviio support transcoding of H264 Hi10p files? I run XBMC on an ION box and with the current VDPAU profile Hi10p is not supported (which means that 1080p or 720p files in Hi10p stutter badly). I was hoping to use the power of my core i5 desktop to transcode these types of files to XBMC but I need to know if Serviio supports this. Thanks!
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun May 06, 2012 3:12 pm

Re: H264 Hi10p / 10-bit transcoding

If there is no mention on the forum, then its probably that no one has had a problem/doesn't use them. If I was you I would simply try it, install serviio add the files and try to play them. Serviio will support transcoding from pretty much anything provided ffmpeg can read it.
If they don't work (it is quite likely that serviio won't try to transcode them) then http://wiki.serviio.org/doku.php?id=file_np and we can setup a working profile for them. You could also try the Direct TV profile that transcodes almost everything, although it is always nicer to transcode only the videos that really need it.

Edit, looking at a profile we can select to transcode based on the profile and level, so far I've only seen profile main and high, so would need zip to confirm if we could use 'high 10' in the profile field.
  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">
   <Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.1" />
</Video>
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

blm14

Serviio newbie

Posts: 8

Joined: Sun May 06, 2012 2:59 pm

Post Sun May 06, 2012 3:29 pm

Re: H264 Hi10p / 10-bit transcoding

OK I have installed serviio and the problem that I see streaming from XBMC remains. Namely I am getting like 8FPS on a file which has 24FPS :-/

My desktop is a core i5-2400, 16GB ram, windows 7 64-bit, dual ATI radeon HD 5670 (crossfired).

Output of ffmpeg -i:

  Code:
C:\Program Files\Serviio\lib>ffmpeg  -i "J:\Tiger & Bunny\[Zurako]_Tiger_&_Bunny
_01v2_(BD_1080p_FLAC)_[DB7E34FE].mkv"
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 13 2011 20:46:11 with gcc 4.4.2
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-co
nfig
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 0 / 53. 42. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (3692/7
7) -> 48.00 (48/1)
Input #0, matroska,webm, from 'J:\Tiger & Bunny\[Zurako]_Tiger_&_Bunny_01v2_(BD_
1080p_FLAC)_[DB7E34FE].mkv':
  Duration: 00:24:11.48, start: 0.000000, bitrate: 9567 kb/s
    Chapter #0.0: start 0.000000, end 50.175000
    Metadata:
      title           : Introduction
    Chapter #0.1: start 50.175000, end 140.223000
    Metadata:
      title           : Opening Theme
    Chapter #0.2: start 140.223000, end 624.415000
    Metadata:
      title           : Part A
    Chapter #0.3: start 624.415000, end 1322.112000
    Metadata:
      title           : Part B
    Chapter #0.4: start 1322.112000, end 1412.452000
    Metadata:
      title           : Ending Theme
    Chapter #0.5: start 1412.452000, end 1435.517000
    Metadata:
      title           : After Ending
    Chapter #0.6: start 1435.517000, end 1451.488000
    Metadata:
      title           : Preview
    Stream #0:0(jpn): Video: h264 (High 10), yuv420p10le, 1920x1080 [SAR 1:1 DAR
 16:9], 23.97 fps, 48 tbr, 1k tbn, 47.95 tbc
    Metadata:
      title           : Tiger & Bunny Episode 01
    Stream #0:1(jpn): Audio: flac, 48000 Hz, stereo, s32 (default)
    Metadata:
      title           : FLAC 2.0 24-bit
    Stream #0:2(eng): Subtitle: ssa (default)
    Metadata:
      title           : Dmonhiro
    Stream #0:3: Attachment: ttf
    Metadata:
      filename        : ArnoPro-Regular.otf
      mimetype        : application/x-truetype-font
    Stream #0:4: Attachment: ttf
    Metadata:
      filename        : Antipasto.ttf
      mimetype        : application/x-truetype-font
    Stream #0:5: Attachment: ttf
    Metadata:
      filename        : GeosansLight.ttf
      mimetype        : application/x-truetype-font
    Stream #0:6: Attachment: ttf
    Metadata:
      filename        : LT.ttf
      mimetype        : application/x-truetype-font
    Stream #0:7: Attachment: ttf
    Metadata:
      filename        : LT_3italic.ttf
      mimetype        : application/x-truetype-font
At least one output file must be specified

C:\Program Files\Serviio\lib>


Output from mediainfo:

  Code:

General
Unique ID                                : 234871887686581177626294426787924541193 (0xB0B2AE1EE70822FA9D3521869EC1FF09)
Complete name                            : J:\Tiger & Bunny\[Zurako]_Tiger_&_Bunny_01v2_(BD_1080p_FLAC)_[DB7E34FE].mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 1.62 GiB
Duration                                 : 24mn 11s
Overall bit rate mode                    : Variable
Overall bit rate                         : 9 567 Kbps
Encoded date                             : UTC 2012-01-15 14:27:52
Writing application                      : mkvmerge v3.4.0 ('Rapunzel') built on May 15 2010 09:38:20
Writing library                          : libebml v0.8.0 + libmatroska v0.9.0
Attachment                               : Yes / Yes / Yes / Yes / Yes

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 10@L5.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 16 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 24mn 11s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Scan type                                : Progressive
Title                                    : Tiger & Bunny Episode 01
Writing library                          : x264 core 120 r2120 0c7dab9
Encoding settings                        : cabac=1 / ref=16 / deblock=1:0:-1 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=16.5 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:1.10
Language                                 : Japanese
Default                                  : No
Forced                                   : No

Audio
ID                                       : 2
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Codec ID                                 : A_FLAC
Duration                                 : 24mn 11s
Bit rate mode                            : Variable
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Bit depth                                : 24 bits
Title                                    : FLAC 2.0 24-bit
Writing library                          : libFLAC 1.2.1 (UTC 2007-09-17)
Language                                 : Japanese
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : ASS
Codec ID                                 : S_TEXT/ASS
Codec ID/Info                            : Advanced Sub Station Alpha
Compression mode                         : Lossless
Title                                    : Dmonhiro
Language                                 : English
Default                                  : Yes
Forced                                   : No

Menu
00:00:00.000                             : Introduction
00:00:50.175                             : Opening Theme
00:02:20.223                             : Part A
00:10:24.415                             : Part B
00:22:02.112                             : Ending Theme
00:23:32.452                             : After Ending
00:23:55.517                             : Preview


I would really like to be able to transcode these 1080p and 720p H264 Hi10p files by taking advantage of the computing power of the machine upon which they reside, rather than asking my little Atom N330/ION box to do it... :)
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun May 06, 2012 3:44 pm

Re: H264 Hi10p / 10-bit transcoding

Can you try the DirecTV HD-DVR profile (select it in the console).

  Code:
Format profile                           : High 10@L5.1
was what I was expecting, If we can select the High 10 in the profile then we can only transcode what is needed. Otherwise, we might be able to get away with just using the level to filter out those files. Failing that, we can certainly get it to transcode all h264 content.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

blm14

Serviio newbie

Posts: 8

Joined: Sun May 06, 2012 2:59 pm

Post Sun May 06, 2012 6:54 pm

Re: H264 Hi10p / 10-bit transcoding

I'd be thrilled with only transcoding the hi10p stuff. :)
<<

blm14

Serviio newbie

Posts: 8

Joined: Sun May 06, 2012 2:59 pm

Post Sun May 06, 2012 7:20 pm

Re: H264 Hi10p / 10-bit transcoding

will wrote:Can you try the DirecTV HD-DVR profile (select it in the console).


Where is that setting?

EDIT: never mind - I found it. Yeah that totally worked. :) 1080p 10bit file playing cleanly and perfectly, with one exception. Subtitles not working LOL
<<

blm14

Serviio newbie

Posts: 8

Joined: Sun May 06, 2012 2:59 pm

Post Sun May 06, 2012 7:39 pm

Re: H264 Hi10p / 10-bit transcoding

reading up a little in the forums, it looks like I have to make a tradeoff - either MKV gets transcoded OR MKV doesn't get transcoded but embedded subtitles work.

Is there no way to transcode MKV but retain the embedded subs?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun May 06, 2012 11:35 pm

Re: H264 Hi10p / 10-bit transcoding

not at the moment.
<<

blm14

Serviio newbie

Posts: 8

Joined: Sun May 06, 2012 2:59 pm

Post Mon May 07, 2012 9:50 pm

Re: H264 Hi10p / 10-bit transcoding

Oh poo. is that something that I could contribute to? :)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon May 07, 2012 10:56 pm

Re: H264 Hi10p / 10-bit transcoding

<<

blm14

Serviio newbie

Posts: 8

Joined: Sun May 06, 2012 2:59 pm

Post Tue May 08, 2012 12:40 pm

Re: H264 Hi10p / 10-bit transcoding

ticket opened over a year ago. Responsible: nobody. Version: None. Priority: Major... :(

any ETA on that?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Tue May 08, 2012 4:05 pm

Re: H264 Hi10p / 10-bit transcoding

Sadly we are waiting on ffmpeg supporting this feature, once it does it will hopefully be intergrated into serviio pretty quickly.

I would love this as my player doesn't allow fastforwarding if I don't enable transcoding, but then I loose subtitles, i've had a look a few times for an intermediate solution, but I don't think there is one.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

blm14

Serviio newbie

Posts: 8

Joined: Sun May 06, 2012 2:59 pm

Post Thu May 10, 2012 2:59 am

Re: H264 Hi10p / 10-bit transcoding

It's shockingly hard to find exactly what google search on FFMPEG will describe exactly this use case. I'm trying to determine if there's already a ticket on FFMPEG's trac for this problem. Any ideas?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Thu May 10, 2012 7:14 am

Re: H264 Hi10p / 10-bit transcoding

So i've looked for ffmpeg burn in sub or ffmpeg hard code subtitles etc for embeding the subtitles into the video as text.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu May 10, 2012 7:58 pm

Re: H264 Hi10p / 10-bit transcoding

FFmpeg devs discuss it for example here: https://lists.ffmpeg.org/pipermail/ffmp ... 17059.html
I'm following their mailing list so should know once this becomes available

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 55 guests

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