FAQ  •  Register  •  Login

Ability to match audio codec as required for hardsubs

<<

mdeli

Serviio newbie

Posts: 6

Joined: Sat Mar 30, 2013 2:36 pm

Post Sat Mar 30, 2013 2:52 pm

Ability to match audio codec as required for hardsubs

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 .
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Mar 31, 2013 12:19 am

Re: Ability to match audio codec as required for hardsubs

Shouldn't it work to set normal transcoding for dts and still use only softsubs with the target transcodes file?
<<

mdeli

Serviio newbie

Posts: 6

Joined: Sat Mar 30, 2013 2:36 pm

Post Mon Apr 01, 2013 12:02 am

Re: Ability to match audio codec as required for hardsubs

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 :?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Apr 01, 2013 12:08 am

Re: Ability to match audio codec as required for hardsubs

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?
<<

mdeli

Serviio newbie

Posts: 6

Joined: Sat Mar 30, 2013 2:36 pm

Post Mon Apr 01, 2013 12:14 am

Re: Ability to match audio codec as required for hardsubs

Sure, I will get on it as soon as I can. Thanks again
<<

mdeli

Serviio newbie

Posts: 6

Joined: Sat Mar 30, 2013 2:36 pm

Post Mon Apr 01, 2013 12:16 am

Re: Ability to match audio codec as required for hardsubs

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
<<

mdeli

Serviio newbie

Posts: 6

Joined: Sat Mar 30, 2013 2:36 pm

Post Mon Apr 01, 2013 1:48 pm

Re: Ability to match audio codec as required for hardsubs

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.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Apr 01, 2013 10:29 pm

Re: Ability to match audio codec as required for hardsubs

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.
<<

mdeli

Serviio newbie

Posts: 6

Joined: Sat Mar 30, 2013 2:36 pm

Post Tue Apr 02, 2013 2:12 pm

Re: Ability to match audio codec as required for hardsubs

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
<<

wbrione

Serviio newbie

Posts: 2

Joined: Sun Oct 30, 2011 3:32 pm

Post Fri May 31, 2013 12:08 am

Re: Ability to match audio codec as required for hardsubs

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.
<<

wbrione

Serviio newbie

Posts: 2

Joined: Sun Oct 30, 2011 3:32 pm

Post Mon Jun 03, 2013 12:00 pm

Re: Ability to match audio codec as required for hardsubs

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>

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 16 guests

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