FAQ  •  Register  •  Login

LG TV and HEVC transcoding problem

<<

EvSasha

Serviio newbie

Posts: 4

Joined: Sat May 30, 2015 9:54 pm

Post Wed Jan 10, 2018 5:50 pm

LG TV and HEVC transcoding problem

Hi i have Serviio 1.9 and LG TV HEVC codec transcoding problem.
When i use "LG TV / player" profile Serviio dont trying transcoding file, but if i change profile to "Sony Bravia TV 2012" (for example), transcoding is started.
My TV cant play HEVC, i tryed play file from USB.

Serviio: v1.9 on Synology NAS DS918+ (x86).
TV: LG47LA660V-ZA

  Code:
ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)
  configuration: --prefix=/usr --incdir='${prefix}/include/ffmpeg' --arch=i686 --target-os=linux --cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --enable-version3 --enable-nonfree --enable-libfaac --enable-encoders --enable-pthreads --disable-bzlib --disable-protocol=rtp --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffserver --disable-ffplay --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-vaapi --disable-decoder=amrnb --disable-encoder=zmbv --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc --enable-yasm --enable-libx264 --enable-encoder=libx264
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, matroska,webm, from 'Beyond Skyline (2017) BDRip 1080p [HEVC].mkv':
  Metadata:
    title           : Beyond.Skyline.2017.BDREMUX.1080p.ExKinoRay
    encoder         : libebml v1.3.4 + libmatroska v1.4.5
    creation_time   : 2018-01-01 10:41:32
  Duration: 01:46:38.69, start: 0.000000, bitrate: 5832 kb/s
    Chapter #0:0: start 0.000000, end 462.587000
    Metadata:
      title           : 00:00:00.000
    Chapter #0:1: start 462.587000, end 1006.172000
    Metadata:
      title           : 00:07:42.587
    Chapter #0:2: start 1006.172000, end 1448.946000
    Metadata:
      title           : 00:16:46.172
    Chapter #0:3: start 1448.946000, end 1999.998000
    Metadata:
      title           : 00:24:08.947
    Chapter #0:4: start 1999.998000, end 2531.112000
    Metadata:
      title           : 00:33:19.998
    Chapter #0:5: start 2531.112000, end 3067.439000
    Metadata:
      title           : 00:42:11.112
    Chapter #0:6: start 3067.439000, end 3595.717000
    Metadata:
      title           : 00:51:07.439
    Chapter #0:7: start 3595.717000, end 4089.627000
    Metadata:
      title           : 00:59:55.717
    Chapter #0:8: start 4089.627000, end 4715.961000
    Metadata:
      title           : 01:08:09.627
    Chapter #0:9: start 4715.961000, end 5219.089000
    Metadata:
      title           : 01:18:35.961
    Chapter #0:10: start 5219.089000, end 5750.453000
    Metadata:
      title           : 01:26:59.089
    Chapter #0:11: start 5750.453000, end 6398.688000
    Metadata:
      title           : 01:35:50.453
    Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 1920x804 [SAR 1:1 DAR 160:67], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      BPS             : 5446197
      BPS-eng         : 5446197
      DURATION        : 01:46:38.392000000
      DURATION-eng    : 01:46:38.392000000
      NUMBER_OF_FRAMES: 153408
      NUMBER_OF_FRAMES-eng: 153408
      NUMBER_OF_BYTES : 4355863146
      NUMBER_OF_BYTES-eng: 4355863146
      _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-01 10:41:32
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-01 10:41:32
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(rus): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Metadata:
      BPS             : 384000
      BPS-eng         : 384000
      DURATION        : 01:46:38.688000000
      DURATION-eng    : 01:46:38.688000000
      NUMBER_OF_FRAMES: 199959
      NUMBER_OF_FRAMES-eng: 199959
      NUMBER_OF_BYTES : 307137024
      NUMBER_OF_BYTES-eng: 307137024
      _STATISTICS_WRITING_APP: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.5.0 ('Quiet Fire') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2018-01-01 10:41:32
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-01 10:41:32
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 462x500 [SAR 96:96 DAR 231:250], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
<<

DenyAll

DLNA master

Posts: 2168

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Mon Jan 22, 2018 10:06 am

Re: LG TV and HEVC transcoding problem

The LG profile doesn't do much by default - it doesn't transcode anything.

To vary the profile to transcode your HEVC videos, try the following:

  • Edit the file config\profiles.xml using your favourite text editor (Notepad++ recommended)
  • find the line
    </MediaFormatProfiles>
    in the "LG TV / player" profile.
  • Add the following below that line
      Code:
    <Transcoding>
          <!-- Transcode all h265 video -->
          <Video targetContainer="mpegts" targetVCodec="mpeg2video targetACodec="ac3" aBitrate="384" DAR="16:9" >
                <Matches container="*" vCodec="h265"/>
          </Video>
    </Transcoding>
  • Save the file
  • Restart your PC

If it doesn't work, revert the changes and let me know. You will need to make this change every time Serviio is upgraded (there is another way to do this so that the change isn't lost on upgrades, but one step at a time). Whether your NAS has the power to transcode the files may be an issue (particularly if UHD)
DenyAll
Panasonic Viera CS610A | Panasonic Viera V20A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.9 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

EvSasha

Serviio newbie

Posts: 4

Joined: Sat May 30, 2015 9:54 pm

Post Tue Jan 23, 2018 7:12 pm

Re: LG TV and HEVC transcoding problem

Hi, it works.
But Serviio utilise 80% + CPU (Intel Celeron J3455) and you cant play forward.
Hardware transcoding dont work? How i can check this?
  Code:
<Transcoding>
    <Video targetContainer="mpegts" targetACodec="ac3">
        <Matches container="matroska" aCodec="dca" />
    </Video>
    <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" >
        <Matches container="flv" />
        <Matches container="asf" vCodec="wmv2"/>
        <!-- Add this string -->
        <Matches container="*" vCodec="h265"/>
        <Matches container="rm" />
        <Matches container="wtv" />
    </Video>
</Transcoding>
<<

atc98092

User avatar

DLNA master

Posts: 2678

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Tue Jan 23, 2018 7:22 pm

Re: LG TV and HEVC transcoding problem

FF and rewind will not work with transcoded files. And that level of CPU utilization is normal for transcoding. I see almost 100% even on powerful desktop computers.

As far as hardware transcoding, it will only work with specific Intel CPUs, and transcoding specific codecs, so unlikely to work with a NAS.
Dan

Panasonic ST30 Plasma, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku 4, Ultra and Stick, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 18 TB hard drive space | Test server Windows 7 Home Premium, AMD Phenom II X4 965, 8 gig ram

Enable debug logging Identify media file contents
<<

DenyAll

DLNA master

Posts: 2168

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Wed Jan 24, 2018 1:03 pm

Re: LG TV and HEVC transcoding problem

Agree other than I'd probably say "FF and rewind will not always work with transcoded files". I have some where it does, some where it doesn't, and it depends on the TV.
EvSasha wrote:Hi, it works.
Glad that it worked... however, your profile as written above will fail if you have an MKV file with HEVC video and DTS audio - in that case it will match your first transcode block, which will see the HEVC video remuxed into a MPEG-TS container (and audio transcoded to AC3). This will not play on your TV (as its still HEVC).

Statement order is important in profiles. To fix this, move the first block to be after the second:
  Code:
<Transcoding>
    <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" >
        <Matches container="flv" />
        <Matches container="asf" vCodec="wmv2"/>
        <!-- Add this string -->
        <Matches container="*" vCodec="h265"/>
        <Matches container="rm" />
        <Matches container="wtv" />
    </Video>
    <Video targetContainer="mpegts" targetACodec="ac3">
        <Matches container="matroska" aCodec="dca" />
    </Video>
</Transcoding>
This will now cause MKV files with DTS audio to be remuxed only if they don't contain HEVC video (which was handled by the earlier statement and transcoded).

ps. Your CPU supports Hardware Encoding (Intel Quick Sync Video) but it takes a bit to get it going in Serviio. Search the forum - there is quite a detailed topic on enabling it. Whether its worth it -- I'll leave to you to report back on ;-)
DenyAll
Panasonic Viera CS610A | Panasonic Viera V20A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.9 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 1 guest

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