Page 1 of 1

Profile help MP4

PostPosted: Tue Aug 02, 2016 11:19 pm
by dayen
Hello i'm currently using this profile:
  Code:
<Profile id="sam_hu" name="Samsung TV / player (HU-series)" extendsProfileId="1">
      <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SamsungDLNAMessageBuilder</ContentDirectoryMessageBuilder>
      <ResourceTransportProtocolHandler>org.serviio.upnp.protocol.http.transport.SamsungWiseLinkProtocolHandler</ResourceTransportProtocolHandler>
      <Detection>
         <UPnPSearch>
            <FriendlyName>(^\[TV\][A-Z]{2}\d{2}(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-[EF].*)|(.*SEC_HHP_\[(HT|BD)\][EF].*)</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>
         <!-- only transcode wtv files -->
          <Video targetContainer="mpegts" targetVCodec="h264" targetACodec="ac3" aBitrate="384">
            <Matches container="wtv"/>
         </Video>
       <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
         <Matches container="mpegts" aCodec="truehd" />
       </Video>
       <!-- comment line just to break the settings up -->
       <Audio targetContainer="lpcm" forceInheritance="true">
            <Matches container="mp4"/>
            <Matches container="ogg"/>
            <Matches container="adts"/>
            <Matches container="mp2"/>
            <Matches container="wavpack"/>
            <Matches container="mpc"/>
            <Matches container="ape"/>
            <Matches container="asf"/>
         </Audio>
      </Transcoding>
      <OnlineTranscoding>
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
            <Matches container="applehttp" vCodec="h264"/>
         </Video>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
            <Matches container="asf"/>
            <!-- mms -->
            <Matches container="flv"/>
            <!-- transcoding all flv streams, even h264, to avoid premature disconnects, to avoid this, use Samsung C/D profile -->
         </Video>
      </OnlineTranscoding>
      <AutomaticImageRotation>true</AutomaticImageRotation>
      <LimitImageResolution>false</LimitImageResolution>
      <Subtitles>
         <SoftSubs mime-type="smi/caption"/>
      </Subtitles>
   </Profile>


But i have a problem with all file like that:
  Code:
General
Complete name               : D:\Film\Doc\Cocaine pt1.mp4
Format                      : MPEG-4
Format profile              : Base Media / Version 2
Codec ID                    : mp42
File size                   : 312 MiB
Duration                    : 34mn 15s
Overall bit rate mode       : Variable
Overall bit rate            : 1 275 Kbps
Encoded date                : UTC 2016-08-01 08:16:29
Tagged date                 : UTC 2016-08-01 08:16:50
Writing application         : mp4creator 1.6.1d

Video
ID                          : 1
Format                      : MPEG-4 Visual
Format profile              : Simple@L1
Format settings, BVOP       : No
Format settings, QPel       : No
Format settings, GMC        : No warppoints
Format settings, Matrix     : Default (H.263)
Codec ID                    : 20
Duration                    : 34mn 15s
Bit rate mode               : Variable
Bit rate                    : 1 176 Kbps
Maximum bit rate            : 4 778 Kbps
Width                       : 720 pixels
Height                      : 480 pixels
Display aspect ratio        : 3:2
Frame rate mode             : Constant
Frame rate                  : 30.000 fps
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Progressive
Compression mode            : Lossy
Bits/(Pixel*Frame)          : 0.113
Stream size                 : 288 MiB (92%)
Language                    : English
Encoded date                : UTC 2016-08-01 08:16:29
Tagged date                 : UTC 2016-08-01 08:16:49

Audio
ID                          : 2
Format                      : AAC
Format/Info                 : Advanced Audio Codec
Format profile              : LC
Codec ID                    : 40
Duration                    : 34mn 14s
Source duration             : 34mn 15s
Bit rate mode               : Variable
Bit rate                    : 96.0 Kbps
Maximum bit rate            : 135 Kbps
Channel(s)                  : 2 channels
Channel positions           : Front: L R
Sampling rate               : 44.1 KHz
Compression mode            : Lossy
Stream size                 : 23.6 MiB (8%)
Source stream size          : 23.6 MiB (8%)
Language                    : English
Encoded date                : UTC 2016-08-01 08:16:49
Tagged date                 : UTC 2016-08-01 08:16:50



cant figure out what is the problem, someone have a suggestion how to fix ?

Re: Profile help MP4

PostPosted: Sat Aug 06, 2016 4:22 am
by DenyAll
Try adding a transcode block for h263:

  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
            <Matches container="*" vCodec="h263" />
 </Video>
You could also add this to your existing transcode block if you really want to transcode to h264.

Re: Profile help MP4

PostPosted: Sat Aug 06, 2016 12:44 pm
by dayen
DenyAll wrote:Try adding a transcode block for h263:

  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
            <Matches container="*" vCodec="h263" />
 </Video>
You could also add this to your existing transcode block if you really want to transcode to h264.


Thanks for reply!
I tried adding the block , but the video and audio are not, however, do not work

Re: Profile help MP4

PostPosted: Sat Aug 06, 2016 1:39 pm
by dayen
Currently I can see this type of video files with these settings:
  Code:
      <Video targetContainer="mpegts" targetVCodec="h264" targetACodec="ac3" aBitrate="384">
               <Matches container="mp4" vCodec="mpeg4"/>
       </Video>

The problem is that the time bar does not work, you can not navigate in the video and does not show the video duration.

Re: Profile help MP4

PostPosted: Sun Aug 07, 2016 12:05 am
by DenyAll
Try transcoding to mpeg2video instead of h264 and see if that helps.

Re: Profile help MP4

PostPosted: Sun Aug 07, 2016 12:23 am
by dayen
DenyAll wrote:Try transcoding to mpeg2video instead of h264 and see if that helps.


Nope have same problem too :(

Re: Profile help MP4

PostPosted: Sun Aug 07, 2016 12:54 am
by DenyAll
In that case it may be a limitation of the TV (seeking in transcoded files). I haven't the TV so cant really help, but search the Samsung forum, somebody may have come up with a way to deal with it.