FAQ  •  Register  •  Login

Transcoding AVC High 4:2:2

<<

enrimilan

Serviio newbie

Posts: 7

Joined: Wed Sep 18, 2013 9:25 am

Location: Verratichnicht

Post Wed Sep 18, 2013 9:39 am

Transcoding AVC High 4:2:2

Hi all
Just started playing with Serviio and I am not able to play this file http://www.mediafire.com/download/pscaa ... 69r/000.ts on my Samsung UE40ES6800.
I thought it could be because of the chroma subsampling 4:2:2?
Im posting here my mediainfo

  Code:
General
ID                                       : 17185 (0x4321)
Complete name                            : C:\...\000.ts
Format                                   : MPEG-TS
File size                                : 190 MiB
Duration                                 : 41s 128ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 38.6 Mbps

Video
ID                                       : 512 (0x200)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 4:2:2@L4.0
Format settings, CABAC                   : No
Format settings, ReFrames                : 4 frames
Codec ID                                 : 27
Duration                                 : 40s 480ms
Bit rate mode                            : Variable
Bit rate                                 : 36.0 Mbps
Maximum bit rate                         : 36.9 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 0.694
Stream size                              : 174 MiB (91%)
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 4112 (0x1010)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Mode                                     : Dual mono
Codec ID                                 : 3
Duration                                 : 41s 160ms
Bit rate mode                            : Constant
Bit rate                                 : 384 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : -590ms
Stream size                              : 1.88 MiB (1%)

Audio #2
ID                                       : 4128 (0x1020)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Mode                                     : Dual mono
Codec ID                                 : 3
Duration                                 : 41s 160ms
Bit rate mode                            : Constant
Bit rate                                 : 384 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : -590ms
Stream size                              : 1.88 MiB (1%)

Menu
ID                                       : 2048 (0x800)
Menu ID                                  : 1 (0x1)
Duration                                 : 41s 128ms
List                                     : 512 (0x200) (AVC) / 4112 (0x1010) (MPEG Audio) / 4128 (0x1020) (MPEG Audio)
Service name                             : HD 1 MAIN 7A
Service provider                         : EBUER
Service type                             : digital television


and my ffmpeg -I
  Code:
ffmpeg version N-54096-ge41bf19 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 18 2013 10:49:28 with gcc 4.7.2 (GCC)
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtm
p --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --extr
a-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype -lfribidi -lz' --a
rch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross
-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  9.100 / 55.  9.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[h264 @ 003EF8E0] sps_id out of range
[h264 @ 003EF8E0] non-existing SPS 13 referenced in buffering period
[h264 @ 003EF8E0] non-existing PPS referenced
[h264 @ 003EF8E0] sps_id out of range
[h264 @ 003EF8E0] non-existing SPS 13 referenced in buffering period
[h264 @ 003EF8E0] non-existing PPS 0 referenced
[h264 @ 003EF8E0] decode_slice_header error
[h264 @ 003EF8E0] non-existing PPS 0 referenced
[h264 @ 003EF8E0] decode_slice_header error
[h264 @ 003EF8E0] non-existing PPS 0 referenced
[h264 @ 003EF8E0] decode_slice_header error
[h264 @ 003EF8E0] non-existing PPS 0 referenced
[h264 @ 003EF8E0] decode_slice_header error
[h264 @ 003EF8E0] non-existing PPS 0 referenced
[h264 @ 003EF8E0] decode_slice_header error
[h264 @ 003EF8E0] non-existing PPS 0 referenced
[h264 @ 003EF8E0] decode_slice_header error
[h264 @ 003EF8E0] no frame!
[h264 @ 003EF8E0] sps_id out of range
[h264 @ 003EF8E0] non-existing SPS 13 referenced in buffering period
[h264 @ 003EF8E0] non-existing PPS referenced
[h264 @ 003EF8E0] sps_id out of range
[h264 @ 003EF8E0] non-existing SPS 13 referenced in buffering period
[h264 @ 003EF8E0] non-existing PPS 0 referenced
[h264 @ 003EF8E0] decode_slice_header error
[h264 @ 003EF8E0] non-existing PPS 0 referenced
[h264 @ 003EF8E0] decode_slice_header error
[h264 @ 003EF8E0] non-existing PPS 0 referenced
[h264 @ 003EF8E0] decode_slice_header error
[h264 @ 003EF8E0] non-existing PPS 0 referenced
[h264 @ 003EF8E0] decode_slice_header error
[h264 @ 003EF8E0] non-existing PPS 0 referenced
[h264 @ 003EF8E0] decode_slice_header error
[h264 @ 003EF8E0] non-existing PPS 0 referenced
[h264 @ 003EF8E0] decode_slice_header error
[h264 @ 003EF8E0] no frame!
[mpegts @ 003EEAA0] Stream #3: not enough frames to estimate rate; consider incr
easing probesize
[mpegts @ 003EEAA0] Could not find codec parameters for stream 3 (Audio: s302m (
BSSD / 0x44535342), 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[NULL @ 03380500] start time is not set in estimate_timings_from_pts
Input #0, mpegts, from 'C:\...\000.ts':
  Duration: 00:00:41.76, start: 79747.274978, bitrate: 38164 kb/s
  Program 1
    Metadata:
      service_name    : HD 1 MAIN 7A
      service_provider: EBUER
    Stream #0:0[0x200]: Video: h264 (High 4:2:2) ([27][0][0][0] / 0x001B), yuv42
2p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1010]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s
16p, 384 kb/s
    Stream #0:2[0x1020]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s
16p, 384 kb/s
    Stream #0:3[0x1030]: Audio: s302m (BSSD / 0x44535342), 0 channels
At least one output file must be specified


Is it even possible to play this file? Could transcoding be a solution?
Any help is appreciated.
Cheers :)
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Sep 18, 2013 9:55 am

Re: Transcoding

Edit the profiles.xml, find your samsung section profile and edit these lines

replace...
  Code:
           <!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
         <Video targetContainer="m2ts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">
            <Matches container="*" vCodec="h264" profile="high_10" />
            <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
            <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />
         </Video>


by...
  Code:
           <!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
         <Video targetContainer="m2ts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">
            <Matches container="*" vCodec="h264" profile="high_10" />
            <Matches container="*" vCodec="h264" profile="high_422" />
            <Matches container="*" vCodec="h264" profile="high_444" />
            <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
            <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />
         </Video>



Save and restart serviio services.

So your file will be transcoded...
<<

enrimilan

Serviio newbie

Posts: 7

Joined: Wed Sep 18, 2013 9:25 am

Location: Verratichnicht

Post Wed Sep 18, 2013 11:18 am

Re: Transcoding AVC High 4:2:2

Thank you for your quick answer, but it seems that I still can't make it work yet :(
If I understood right, the profile I should edit is called "Samsung TV / player (C/D/E/F-series)" in the xml file.
Well, I couldn't find any <Video targetContainer="m2ts" ... </Video> so I simply added the new lines above.
So, that's how it now looks like:

  Code:
<Profile id="7" name="Samsung TV / player (C/D/E/F-series)" extendsProfileId="1">
      <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SamsungDLNAMessageBuilder</ContentDirectoryMessageBuilder>
        <ResourceTransportProtocolHandler>org.serviio.upnp.protocol.http.transport.SamsungWiseLinkProtocolHandler</ResourceTransportProtocolHandler>
        <Detection>
         <UPnPSearch>
            <FriendlyName>(^TV-\d{2}C\d{3}.*)|(^\[TV\][A-Z]{2}\d{2}(D|E|F)[A-Z]?\d{3,4}.*)|^\[TV\] Samsung</FriendlyName>            
            <ModelNumber>(1\.0)|(AllShare1\.0)</ModelNumber>
         </UPnPSearch>   
         <HttpHeaders>
            <!-- for BD players -->
            <User-Agent>(.*SEC_HHP_BD-[CDEF].*)|(.*SEC_HHP_\[(HT|BD)\][CDEF].*)</User-Agent>
         </HttpHeaders>
      </Detection>
      <DeviceDescription>
           <ExtraElements>
              &lt;sec:ProductCap&gt;smi,DCM10,getMediaInfo.sec,getCaptionInfo.sec&lt;/sec:ProductCap&gt;
            &lt;sec:X_ProductCap&gt;smi,DCM10,getMediaInfo.sec,getCaptionInfo.sec&lt;/sec:X_ProductCap&gt;
           </ExtraElements>
        </DeviceDescription>
        <MediaFormatProfiles>
            <MediaFormatProfile mime-type="video/x-mkv">MATROSKA</MediaFormatProfile>
            <MediaFormatProfile mime-type="video/x-msvideo" name="">AVI</MediaFormatProfile>
            <MediaFormatProfile mime-type="audio/x-flac">FLAC</MediaFormatProfile>
        </MediaFormatProfiles>
      <ContentDirectoryDefinitionFilter>org.serviio.upnp.service.contentdirectory.definition.SamsungContentDirectoryDefinitionFilter</ContentDirectoryDefinitionFilter>   
      <H264LevelCheck>FILE_ATTRIBUTES</H264LevelCheck>
      <Transcoding>
         <!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
         <Video targetContainer="m2ts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">
            <Matches container="*" vCodec="h264" profile="high_10" />
            <Matches container="*" vCodec="h264" profile="high_422" />
            <Matches container="*" vCodec="h264" profile="high_444" />
            <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
            <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />
         </Video>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">
            <Matches container="*" vCodec="h264" profile="high_10" />
            <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
            <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />
                <Matches container="mp4" vCodec="mpeg4" aCodec="lpcm" />
                <Matches container="mp4" vCodec="dvvideo" />
                <Matches container="mp4" vCodec="mjpeg" />
         </Video>
         <!-- transcode H264 MP4 files with LPCM audio -->
         <Video targetContainer="mpegts" targetACodec="ac3">
            <!-- Matches container="mpegts" aCodec="mp2" /-->
            <Matches container="mp4" aCodec="lpcm" />
            <!-- <Matches container="flv" vCodec="h264" /> -->
            <Matches container="matroska" vCodec="h264" aCodec="flac" />
            <Matches container="matroska" vCodec="h264" aCodec="vorbis" />
            <Matches container="matroska" vCodec="h264" aCodec="truehd" />
            <Matches container="mpegts" vCodec="h264" aCodec="truehd" />
            <Matches container="ogg" vCodec="mpeg4" />
            <Matches container="3gp" aCodec="amrnb" />
            <Matches container="wtv" vCodec="h264"/> 
         </Video>   
         <Video targetContainer="mpegts" targetACodec="ac3" targetVCodec="mpeg2video">
            <Matches container="matroska" vCodec="mpeg2video" />
            <Matches container="matroska" vCodec="vp8" />
            <Matches container="matroska" vCodec="vc1" aCodec="truehd" />
            <Matches container="avi" vCodec="h264" />
            <Matches container="avi" vCodec="mjpeg" />
            <Matches container="avi" vCodec="dvvideo" />
            <Matches container="flv" vCodec="flv"/> <!-- some models support playing flv natively, in that case remove this line -->
            <Matches container="flv" vCodec="h263"/>
            <Matches container="flv" vCodec="vp6"/>
            <Matches container="ogg" />
            <Matches container="rm" /> <!-- some models might support RealVideo natively, in that case remove this line -->
         </Video>
         <!-- For dvr-ms files force mpeg2video transcoding to fix monotone timestamps problems-->
         <Video targetContainer="mpegts" targetACodec="ac3" forceVTranscoding="true">
            <Matches container="asf" vCodec="mpeg2video" />
            <Matches container="asf" vCodec="mpeg1video" />
         </Video>                    
         <Video targetContainer="mpegts">
            <Matches container="wtv" />
         </Video>
         <!-- transcode audio only for wmv with wmapro -->
         <Video targetContainer="asf" targetACodec="ac3" aBitrate="256">
            <Matches container="asf" aCodec="wmapro" />
         </Video>
         <Audio targetContainer="lpcm">
            <Matches container="mp4" />
            <Matches container="flac" /> <!-- E series plays FLAC natively so this line can be removed-->
            <Matches container="ogg" />
            <Matches container="adts" />
            <Matches container="mp2" />
            <Matches container="wavpack" />
            <Matches container="mpc" />
                <Matches container="ape" />
         </Audio>
      </Transcoding>
      <OnlineTranscoding>
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
            <Matches container="mp4" vCodec="h264" />      
             <Matches container="applehttp" vCodec="h264"/>
             <Matches container="flv" vCodec="h264"/>
         </Video>      
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
            <Matches container="mp4" />
            <Matches container="asf" /> <!-- mms -->
         </Video>
      </OnlineTranscoding>
      <AutomaticImageRotation>true</AutomaticImageRotation>
        <LimitImageResolution>false</LimitImageResolution>
        <Subtitles>
         <SoftSubs mime-type="smi/caption" />
      </Subtitles>   
   </Profile>


What have I done wrong? Thanks in advance :)
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Sep 18, 2013 2:03 pm

Re: Transcoding AVC High 4:2:2

Sorry, I started from "Samsung TV (B-series)" profile...

So with your Samsung UE40ES6800, you have to edit the "Samsung TV / player (C/D/E/F-series)" profile like this :

  Code:
   <Profile id="7" name="Samsung TV / player (C/D/E/F-series)" extendsProfileId="1">
      <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SamsungDLNAMessageBuilder</ContentDirectoryMessageBuilder>
        <ResourceTransportProtocolHandler>org.serviio.upnp.protocol.http.transport.SamsungWiseLinkProtocolHandler</ResourceTransportProtocolHandler>
        <Detection>
         <UPnPSearch>
            <FriendlyName>(^TV-\d{2}C\d{3}.*)|(^\[TV\][A-Z]{2}\d{2}(D|E|F)[A-Z]?\d{3,4}.*)|^\[TV\] Samsung</FriendlyName>            
            <ModelNumber>(1\.0)|(AllShare1\.0)</ModelNumber>
         </UPnPSearch>   
         <HttpHeaders>
            <!-- for BD players -->
            <User-Agent>(.*SEC_HHP_BD-[CDEF].*)|(.*SEC_HHP_\[(HT|BD)\][CDEF].*)</User-Agent>
         </HttpHeaders>
      </Detection>
      <DeviceDescription>
           <ExtraElements>
              &lt;sec:ProductCap&gt;smi,DCM10,getMediaInfo.sec,getCaptionInfo.sec&lt;/sec:ProductCap&gt;
            &lt;sec:X_ProductCap&gt;smi,DCM10,getMediaInfo.sec,getCaptionInfo.sec&lt;/sec:X_ProductCap&gt;
           </ExtraElements>
        </DeviceDescription>
        <MediaFormatProfiles>
            <MediaFormatProfile mime-type="video/x-mkv">MATROSKA</MediaFormatProfile>
            <MediaFormatProfile mime-type="video/x-msvideo" name="">AVI</MediaFormatProfile>
            <MediaFormatProfile mime-type="audio/x-flac">FLAC</MediaFormatProfile>
        </MediaFormatProfiles>
      <ContentDirectoryDefinitionFilter>org.serviio.upnp.service.contentdirectory.definition.SamsungContentDirectoryDefinitionFilter</ContentDirectoryDefinitionFilter>   
      <H264LevelCheck>FILE_ATTRIBUTES</H264LevelCheck>
      <Transcoding>
         <!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">
            <Matches container="*" vCodec="h264" profile="high_10" />
            <Matches container="*" vCodec="h264" profile="high_422" />
            <Matches container="*" vCodec="h264" profile="high_444" />
            <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
            <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />
                <Matches container="mp4" vCodec="mpeg4" aCodec="lpcm" />
                <Matches container="mp4" vCodec="dvvideo" />
                <Matches container="mp4" vCodec="mjpeg" />
         </Video>
         <!-- transcode H264 MP4 files with LPCM audio -->
         <Video targetContainer="mpegts" targetACodec="ac3">
            <!-- Matches container="mpegts" aCodec="mp2" /-->
            <Matches container="mp4" aCodec="lpcm" />
            <!-- <Matches container="flv" vCodec="h264" /> -->
            <Matches container="matroska" vCodec="h264" aCodec="flac" />
            <Matches container="matroska" vCodec="h264" aCodec="vorbis" />
            <Matches container="matroska" vCodec="h264" aCodec="truehd" />
            <Matches container="mpegts" vCodec="h264" aCodec="truehd" />
            <Matches container="ogg" vCodec="mpeg4" />
            <Matches container="3gp" aCodec="amrnb" />
            <Matches container="wtv" vCodec="h264"/> 
         </Video>   
         <Video targetContainer="mpegts" targetACodec="ac3" targetVCodec="mpeg2video">
            <Matches container="matroska" vCodec="mpeg2video" />
            <Matches container="matroska" vCodec="vp8" />
            <Matches container="matroska" vCodec="vc1" aCodec="truehd" />
            <Matches container="avi" vCodec="h264" />
            <Matches container="avi" vCodec="mjpeg" />
            <Matches container="avi" vCodec="dvvideo" />
            <Matches container="flv" vCodec="flv"/> <!-- some models support playing flv natively, in that case remove this line -->
            <Matches container="flv" vCodec="h263"/>
            <Matches container="flv" vCodec="vp6"/>
            <Matches container="ogg" />
            <Matches container="rm" /> <!-- some models might support RealVideo natively, in that case remove this line -->
         </Video>
         <!-- For dvr-ms files force mpeg2video transcoding to fix monotone timestamps problems-->
         <Video targetContainer="mpegts" targetACodec="ac3" forceVTranscoding="true">
            <Matches container="asf" vCodec="mpeg2video" />
            <Matches container="asf" vCodec="mpeg1video" />
         </Video>                    
         <Video targetContainer="mpegts">
            <Matches container="wtv" />
         </Video>
         <!-- transcode audio only for wmv with wmapro -->
         <Video targetContainer="asf" targetACodec="ac3" aBitrate="256">
            <Matches container="asf" aCodec="wmapro" />
         </Video>
         <Audio targetContainer="lpcm">
            <Matches container="mp4" />
            <Matches container="flac" /> <!-- E series plays FLAC natively so this line can be removed-->
            <Matches container="ogg" />
            <Matches container="adts" />
            <Matches container="mp2" />
            <Matches container="wavpack" />
            <Matches container="mpc" />
                <Matches container="ape" />
         </Audio>
      </Transcoding>
      <OnlineTranscoding>
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
            <Matches container="mp4" vCodec="h264" />      
             <Matches container="applehttp" vCodec="h264"/>
             <Matches container="flv" vCodec="h264"/>
         </Video>      
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
            <Matches container="mp4" />
            <Matches container="asf" /> <!-- mms -->
         </Video>
      </OnlineTranscoding>
      <AutomaticImageRotation>true</AutomaticImageRotation>
        <LimitImageResolution>false</LimitImageResolution>
        <Subtitles>
         <SoftSubs mime-type="smi/caption" />
      </Subtitles>   
   </Profile>


You have to restart serviio service ( or reboot PC) to take modifications into account.
<<

enrimilan

Serviio newbie

Posts: 7

Joined: Wed Sep 18, 2013 9:25 am

Location: Verratichnicht

Post Wed Sep 18, 2013 2:32 pm

Re: Transcoding AVC High 4:2:2

After making these changes I rebooted everything I could and I get (as before) on the screen this message: "This file may not be playable properly" and after choosing ok "The selected file is not currently supported".
What could be the reason?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Sep 18, 2013 2:46 pm

Re: Transcoding AVC High 4:2:2

Could you enable detailed logging open serviio.log file and check the log lines when you start playing this 4:2:2 file ?
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
<<

enrimilan

Serviio newbie

Posts: 7

Joined: Wed Sep 18, 2013 9:25 am

Location: Verratichnicht

Post Wed Sep 18, 2013 3:23 pm

Re: Transcoding AVC High 4:2:2

That's my log after switching to DEBUG mode.
Attachments
log.txt
(132.2 KiB) Downloaded 577 times
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Sep 18, 2013 5:56 pm

Re: Transcoding AVC High 4:2:2

According to the log file, your file has been transcoded and delivered to your Samsung TV renderer. So seems good...

2013-09-18 17:13:46,057 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: C:\Users\Enri\Desktop\aaa\000.ts
2013-09-18 17:13:46,058 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\lib/ffmpeg.exe -threads auto -i C:\Users\Enri\Desktop\aaa\000.ts -y -threads auto -c:v mpeg2video -qscale:v 1 -r 50 -g 15 -c:a ac3 -b:a 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts C:\Users\Enri\AppData\Local\Temp\Serviio\transcoding-temp-80-7-ORIGINAL.stf
2013-09-18 17:13:46,557 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2013-09-18 17:13:46,559 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file 000.ts: MPEG_TS_SD_EU_ISO
2013-09-18 17:13:46,559 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file 000.ts: MPEG_TS_SD_NA_ISO
2013-09-18 17:13:46,559 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file 000.ts: MPEG_TS_SD_KO_ISO


This MPEG_TS_SD_EU_ISO format , should be supported by your TV.
Could you rename your 000.ts file by 001.ts, force library refresh on serviio console and retry ?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Sep 18, 2013 6:13 pm

Re: Transcoding AVC High 4:2:2

OK, I download and try with my Sony Bravia TV, and I have the same issue.

AVC is transcoded in MPEG2 with 4:2:2 subsampling.

Serviio have to force the output to 4.2.0

I will open a ticket : https://bitbucket.org/xnejp03/serviio/i ... high-4-2-2

Thanks
<<

enrimilan

Serviio newbie

Posts: 7

Joined: Wed Sep 18, 2013 9:25 am

Location: Verratichnicht

Post Sun Feb 09, 2014 9:30 pm

Re: Transcoding AVC High 4:2:2

Hello folks, it's me again :)
Has there been anything new about this problem?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Feb 10, 2014 8:30 am

Re: Transcoding AVC High 4:2:2

enrimilan wrote:Hello folks, it's me again :)
Has there been anything new about this problem?


Yes, resolved since serviio 1.4 version.

So update your serviio and retry...
<<

enrimilan

Serviio newbie

Posts: 7

Joined: Wed Sep 18, 2013 9:25 am

Location: Verratichnicht

Post Mon Feb 10, 2014 10:33 am

Re: Transcoding AVC High 4:2:2

Thank you, but I already did without success. Maybe I have smth wrong in my profiles.xml?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Feb 10, 2014 8:14 pm

Re: Transcoding AVC High 4:2:2

There is a bug.

I try with my 422 sample file :
  Code:
General
ID                                       : 17185 (0x4321)
Complete name                            : D:\Samples422\000.ts
Format                                   : MPEG-TS
File size                                : 190 MiB
Duration                                 : 41s 128ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 38.6 Mbps

Video
ID                                       : 512 (0x200)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 4:2:2@L4.0
Format settings, CABAC                   : No
Format settings, ReFrames                : 4 frames
Codec ID                                 : 27
Duration                                 : 40s 480ms
Bit rate mode                            : Variable
Bit rate                                 : 36.0 Mbps
Maximum bit rate                         : 36.9 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 0.694
Stream size                              : 174 MiB (91%)
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 4112 (0x1010)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Mode                                     : Dual mono
Codec ID                                 : 3
Duration                                 : 41s 160ms
Bit rate mode                            : Constant
Bit rate                                 : 384 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : -590ms
Stream size                              : 1.88 MiB (1%)

Audio #2
ID                                       : 4128 (0x1020)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Mode                                     : Dual mono
Codec ID                                 : 3
Duration                                 : 41s 160ms
Bit rate mode                            : Constant
Bit rate                                 : 384 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : -590ms
Stream size                              : 1.88 MiB (1%)

Menu
ID                                       : 2048 (0x800)
Menu ID                                  : 1 (0x1)
Duration                                 : 41s 128ms
List                                     : 512 (0x200) (AVC) / 4112 (0x1010) (MPEG Audio) / 4128 (0x1020) (MPEG Audio)
Service name                             : HD 1 MAIN 7A
Service provider                         : EBUER
Service type                             : digital television



and this file is detected as 422 but it was not transcoded.

It was delivered in native format.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Feb 10, 2014 8:35 pm

Re: Transcoding AVC High 4:2:2

Illico wrote:There is a bug.

Do you mean in Serviio? Can you raise it with profile details and ffmpeg -i?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Tue Feb 11, 2014 5:13 pm

Re: Transcoding AVC High 4:2:2

zip wrote:Do you mean in Serviio? Can you raise it with profile details and ffmpeg -i?


I used the same sample file : http://www.mediafire.com/download/pscaa ... 69r/000.ts

With "Sony Bravia 2010" profile with following modification:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">
<Matches container="*" vCodec="h264" profile="high_10" />
<Matches container="*" vCodec="h264" profile="high_422" />
<Matches container="*" vCodec="h264" profile="high_444" />



See ticket : https://bitbucket.org/xnejp03/serviio/i ... high-4-2-2
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Feb 13, 2014 10:24 pm

Re: Transcoding AVC High 4:2:2

With updated Sony2010 profile (so that it starts with:)

  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="17000" targetACodec="ac3" aBitrate="384" DAR="16:9" forceInheritance="true">
            <Matches container="*" vCodec="h264" profile="high_10" />
            <Matches container="*" vCodec="h264" profile="high_422" />
         <Matches container="*" vCodec="h264" profile="high_444" />
            <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.1" />
            <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.1" />
         </Video>


it transcodes to 420 and plays.
<<

enrimilan

Serviio newbie

Posts: 7

Joined: Wed Sep 18, 2013 9:25 am

Location: Verratichnicht

Post Fri Feb 14, 2014 12:02 am

Re: Transcoding AVC High 4:2:2

Hey there, thank you, but when I use that profile I get this error: "Frame rate 50 is not supported"

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 14 guests

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