Page 1 of 1

Ability to match audio codec as required for hardsubs

PostPosted: Sat Mar 30, 2013 2:52 pm
by mdeli
Hello.

I have an Lg TV cs560 model and I managed to set the latest and greatest serviio 1.2.1 version to work almost perfectly with it.

I have just one problem regarding external subtitles and dts audio.
The TV doesnt support dts format.
I would like to be able to hardsub only files with dts codec and leave the rest with softsubs which work perfect.

There isnt an option to set "required for" in the hardsubs section of the profiles to match audio codec only specific containers.

This is already an incredible software, this one missing bit will make it perfect for me :D .

Re: Ability to match audio codec as required for hardsubs

PostPosted: Sun Mar 31, 2013 12:19 am
by zip
Shouldn't it work to set normal transcoding for dts and still use only softsubs with the target transcodes file?

Re: Ability to match audio codec as required for hardsubs

PostPosted: Mon Apr 01, 2013 12:02 am
by mdeli
Hello again, thanks for the reply.

It seems that this TV has a problem with on the fly transcoding with external softsubs.
The dts files that are transcoded and have softsubs appear but have no length and will not play, on the other hand,
files that are transcoded without softsubs appear normally with correct length and thumbnail and can play just fine.

Perhaps I'm missing something :?

Re: Ability to match audio codec as required for hardsubs

PostPosted: Mon Apr 01, 2013 12:08 am
by zip
So the same file with and without external srt file either plays or not, depending on the srt file's presence?

Can you post detailed log of playing the file with and without srt?

Re: Ability to match audio codec as required for hardsubs

PostPosted: Mon Apr 01, 2013 12:14 am
by mdeli
Sure, I will get on it as soon as I can. Thanks again

Re: Ability to match audio codec as required for hardsubs

PostPosted: Mon Apr 01, 2013 12:16 am
by mdeli
I just realized I didnt answer your question... Yes, the file plays or doesnt play depending upon the presence of an external subtitle file. I will try to get some details and logs as soon as I can

Re: Ability to match audio codec as required for hardsubs

PostPosted: Mon Apr 01, 2013 1:48 pm
by mdeli
Hi again.

I turned on DEBUG in the config, I got alot of log entries, the problem is that the tv refuses to even try to play the transcoded videos + external srt, so it doesnt even send a request to serviio and there is nothing logged when I hit play. when i remove/rename the srt, the video plays as usual, I rewrap the matroska + DTS to mpegts + ac3 and it works great as long as I dont add an external srt.

I tried rewrapping to ASF and the video thumbnail appeared on the tv with the correct length, I hit play and the TV tried to play the video but failed, saying the format is invalid and serviio logged:

WARN [VideoDeliveryEngine] Cannot get media info for transcoded file *****.mkv: ASF video file *****.mkv does not match any supported DLNA profile
ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error.

I tried adding a targetVCodec="wmv2" or targetVCodec="mpeg2video" to the profile in the transcoding section and that reverted things back to not showing a thumbnail or length for the transcoded videos with external srt with inability to play them.

Re: Ability to match audio codec as required for hardsubs

PostPosted: Mon Apr 01, 2013 10:29 pm
by zip
weird, I tried the same profile and it looks like all is right on the server side. Not sure thy the LG doesn't play it with external srt.

Re: Ability to match audio codec as required for hardsubs

PostPosted: Tue Apr 02, 2013 2:12 pm
by mdeli
Thanks anyway for your help.

I think I'll resort to re-encoding the dts to ac3, theres a great script called mkvdts2ac3 which uses mkvmerge and is very straight forward and easy to use.

BTW, good work on the software, been using it for a while and its extremely stable and comfortable to use. :D

Re: Ability to match audio codec as required for hardsubs

PostPosted: Fri May 31, 2013 12:08 am
by wbrione
I completely understand the problem of our friend "mdeli"... we don't doubt that the problem is with the LG TV (trancoding mkv/dts + external subtitle), and probably, don't have any problem on server-side... but... I don't see any problem in creating more "filters" on "hardsubs" session, making the software too more flexible... I believe that to configure this feature, certainly is more workable that to reencode all our media files with dts audio to ac3. How complex it would be to implement this ?

Note: When (and if) this filter will be implemented... A single code like below solving a lot of our problems ;-)

  Code:
<HardSubsTranscoding>
   <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" />
</HardSubsTranscoding>

<Subtitles>
   <SoftSubs mime-type="text/srt" />
   <HardSubs>
     <RequiredFor container="matroska" aCodec="dca" /> <== SEE HERE !!!
   </HardSubs>
</Subtitles>


PS.: Priority/Select of subtitle "formats" on console (.ass,.srt,...) is important too, depending of client/device... See "Plex Media Server" to understand what i trying to say.

Re: Ability to match audio codec as required for hardsubs

PostPosted: Mon Jun 03, 2013 12:00 pm
by wbrione
in time, I believe that this approach it's more simple/direct to solve the "problem" (When/And IF the feature will be implemented)...

  Code:
<Transcoding>
   <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" HardSubs="yes"> <== Demands HardSubs HERE !!! Default="no"
     <Matches container="matroska" aCodec="dca" />
  </Video>
</Transcoding>
<Subtitles>
   <Priority format="srt;ass;..." storage="embedded|external" ... /> <== Storage default priority="external"
   <HardSubs>
      <Style override="yes|no" > <== per example, override .ass style definition... Default="no"
         <Font name="Trebuchet MS" size="18" edge="3" colour="yellow" ... />
      </Style>
   </HardSubs>     
</Subtitles>