Page 1 of 1

[SOLVED] Transcode all the files?

PostPosted: Mon Feb 20, 2012 5:24 am
by Tarrasque
Hopefully I have the terminology correct. If the config file is setup, for the support client, and the file is nativity supported, it does not transcode the file, but just gets the TV to play the file. But if the file is not support, serviio transcode the file in a format tv supports?

Is there a config that serviio transcode all the files, nativily supported by the TV or not? As there are those annoying AVI's which do not correctly play with my TV, other than remuxing those certain files, just allow serviio transcode everything? (if so what would be the disadvantages with doing that?)

Re: Transcode all the files?

PostPosted: Mon Feb 20, 2012 6:15 am
by moltra
try the directTV DVR it transcodes everything.

disadvantages CPU load and sometimes slightly lower quality.

Re: Transcode all the files?

PostPosted: Mon Feb 20, 2012 7:01 am
by Tarrasque
Is there a profile which can just transcode all the files? As CPU usage isn't a problem.

Trying to avoid purchasing something like WDTV or something similar that happens to work better than native Panasonic TV capability

Re: Transcode all the files?

PostPosted: Mon Feb 20, 2012 8:07 am
by moltra
Yes the directTV dvr profile

Sent from my DROIDX using Tapatalk

Re: Transcode all the files?

PostPosted: Mon Feb 20, 2012 11:26 am
by Cerberus
Tarrasque wrote:Is there a profile which can just transcode all the files? As CPU usage isn't a problem.

Trying to avoid purchasing something like WDTV or something similar that happens to work better than native Panasonic TV capability


why would you wnat to do that we have some great panasonic specific profile, that will be a perfect partner to your panasonic TV and keep the great HD quality of your files.

what model panasonic do u have ?

Re: Transcode all the files?

PostPosted: Tue Feb 21, 2012 4:26 am
by Tarrasque
TV = UT30 (same support as E and G series as to what files it can play) Running the latest profile, but the problem is with the TV firmware, as those AVI also crash when played from a usb stick

I can not fault the serviio at all, (and recommend it) problem is with the TV, it doesn't play avi files coded with transcode correctly. As a lot of my tv shows I have (downloaded) use that program it is kind of annoying to have to remux them so it plays fine on the TV.

I will most likely just switch between the two profiles depending on what I am watching, than remux the files (easier with the phone to login to the web gui of serviio to change profiles, than remote into the server, and run mkvmerge)

Unless the programmers out there want to have some funky detect the AVI, and what program it was used transcode it, then depending on that play natively or re transcode.

I have tried to email panasonic support about the issue with the tv, but I get rather generic response. (might try and calling them and hope it doesn't go to some offshore support place)

Re: Transcode all the files?

PostPosted: Tue Feb 21, 2012 5:31 am
by PMI
Tarrasque wrote:TV = UT30 (same support as E and G series as to what files it can play) Running the latest profile, but the problem is with the TV firmware, as those AVI also crash when played from a usb stick
If your TV is similar to my set (E-series), then it supports only MKV files from USB. This is not a problem with the firmware, just a limitation of the design. With proper configuration and transcoding you can play AVI files via Serviio and DLNA, even if your TV does not support them in their native format.

Re: Transcode all the files?

PostPosted: Tue Feb 21, 2012 7:17 am
by Tarrasque
PMI you re correct, only plays MKV, must have got my self mixed up when originally testing.

Any how the TV still doesn't support files played over DLNA that was written using transcode. These files do work on another dlna clients (like the nokia n900 via DLNA, I did use the generic profile, would they just play the avi/xvid with out transcoding it?).

Example the xvids of the daily show, before last week, they used transcode 1.0.4. now they using 'some super fast avi muxer' The more recent ones work, while the one which use transcode 1.0.4 do not. All other tv shows I have tried to play over dlna which failed seem to be written with transcode (all different version, but I do believe the 1.0.15 did work).

They start to play, then after a few seconds get artefacts, and pause / crash. and tv goes back to the main dlna screen.

So I still would think its a problem with the Panasonic firmware.

Re: Transcode all the files?

PostPosted: Tue Feb 21, 2012 11:41 am
by Cerberus
Tarrasque wrote:PMI you re correct, only plays MKV, must have got my self mixed up when originally testing.

Any how the TV still doesn't support files played over DLNA that was written using transcode. These files do work on another dlna clients (like the nokia n900 via DLNA, I did use the generic profile, would they just play the avi/xvid with out transcoding it?).

Example the xvids of the daily show, before last week, they used transcode 1.0.4. now they using 'some super fast avi muxer' The more recent ones work, while the one which use transcode 1.0.4 do not. All other tv shows I have tried to play over dlna which failed seem to be written with transcode (all different version, but I do believe the 1.0.15 did work).

They start to play, then after a few seconds get artefacts, and pause / crash. and tv goes back to the main dlna screen.

So I still would think its a problem with the Panasonic firmware.


ok tarrasque your not listening to us this device can be made to work if you use one of the panasonic specific profiles we have created.

  Code:
    <Profile id="24" name="Panasonic Viera (2011) With AVI Support" extendsProfileId="1">
        <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PacketVideoDLNAMessageBuilder</ContentDirectoryMessageBuilder>
        <SubtitlesMimeType>text/srt</SubtitlesMimeType>
        <MediaFormatProfiles>
           <MediaFormatProfile mime-type="video/divx">AVI</MediaFormatProfile>
        </MediaFormatProfiles>
        <Transcoding>
      <!-- Transcode h264 videos with profile level > 4.1 to mpegts with ac3 audio -->
      <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" >
         <Matches container="avi" vCodec="h264" profile="high" levelGreaterThan="4.2" />
         <Matches container="avi" vCodec="h264" profile="main" levelGreaterThan="4.2" />
         <Matches container="mp4" vCodec="h264" profile="high" levelGreaterThan="4.2" />
         <Matches container="mp4" vCodec="h264" profile="main" levelGreaterThan="4.2" />
         <Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.2" />
         <Matches container="matroska" vCodec="h264" profile="main" levelGreaterThan="4.2" />
      </Video>
           <!-- remux VORBIS/FLAC/LPCM in MKV/MP4 to AC3 -->
           <Video targetContainer="mpegts" targetACodec="ac3" >
              <Matches container="matroska" vCodec="h264" aCodec="flac" />
              <Matches container="matroska" vCodec="h264" aCodec="vorbis" />
              <Matches container="matroska" vCodec="h264" aCodec="truehd" />
              <Matches container="mp4" vCodec="h264" aCodec="lpcm"/>
              <Matches container="mp4" vCodec="h264" aCodec="aac"/>
              <Matches container="3gp" vCodec="h264" />
           </Video>
           <!-- Remux MPEG-TS with no transcoding -->
           <Video targetContainer="mpegts">
              <Matches container="avi" vCodec="h264" />
              <Matches container="mp4" vCodec="h264" />
              <Matches container="matroska" vCodec="mpeg2video"/>
           </Video>
           <!-- Remux WTV files to MPEG-PS with no transcoding-->
           <Video targetContainer="mpeg">
              <Matches container="wtv" />
           </Video>
           <!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
           <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">           
              <Matches container="avi" vCodec="mjpeg" />
              <Matches container="avi" vCodec="dvvideo" />
              <Matches container="mp4" vCodec="mjpeg" />
              <Matches container="mp4" vCodec="mpeg4" />
         <Matches container="mpeg" vCodec="mpeg1video" />
         <Matches container="matroska" vCodec="mpeg4" />
              <Matches container="asf" />
              <Matches container="flv" />
              <Matches container="ogg" />
              <Matches container="3gp" />
           </Video>
           <!-- unsupported audio will be transcoded into lpcm audio -->
           <Audio targetContainer="lpcm">
              <Matches container="flac" />
              <Matches container="ogg" />
              <Matches container="asf" />
              <Matches container="adts" />
           </Audio>
        </Transcoding>     
    </Profile>


add that to your profiles.xml file and it should work, if it doesnt then try this profile.

  Code:
    <Profile id="24" name="Panasonic Viera (2011) Without AVI Support" extendsProfileId="1">
       <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PacketVideoDLNAMessageBuilder</ContentDirectoryMessageBuilder>
        <SubtitlesMimeType>text/srt</SubtitlesMimeType>
        <Transcoding>
      <!-- Transcode h264 videos with profile level > 4.1 to mpegts with ac3 audio -->
      <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" >
         <Matches container="mp4" vCodec="h264" profile="high" levelGreaterThan="4.2" />
         <Matches container="mp4" vCodec="h264" profile="main" levelGreaterThan="4.2" />
         <Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.2" />
         <Matches container="matroska" vCodec="h264" profile="main" levelGreaterThan="4.2" />
      </Video>
           <!-- remux VORBIS/FLAC/LPCM in MKV/MP4 to AC3 -->
           <Video targetContainer="mpegts" targetACodec="ac3" >
              <Matches container="matroska" vCodec="h264" aCodec="flac" />
              <Matches container="matroska" vCodec="h264" aCodec="vorbis" />
              <Matches container="matroska" vCodec="h264" aCodec="truehd" />
              <Matches container="mp4" vCodec="h264" aCodec="lpcm"/>
              <Matches container="mp4" vCodec="h264" aCodec="aac"/>
              <Matches container="3gp" vCodec="h264" />
           </Video>
           <!-- Remux MPEG-TS with no transcoding -->
           <Video targetContainer="mpegts">
              <Matches container="mp4" vCodec="h264" />
              <Matches container="matroska" vCodec="mpeg2video"/>
           </Video>
           <!-- Remux WTV files to MPEG-PS with no transcoding-->
           <Video targetContainer="mpeg">
              <Matches container="wtv" />
           </Video>
           <!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
           <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">           
              <Matches container="avi" />
              <Matches container="mp4" vCodec="mjpeg" />
              <Matches container="mp4" vCodec="mpeg4" />
         <Matches container="mpeg" vCodec="mpeg1video" />
         <Matches container="matroska" vCodec="mpeg4" />
              <Matches container="asf" />
              <Matches container="flv" />
              <Matches container="ogg" />
              <Matches container="3gp" />
           </Video>
           <!-- unsupported audio will be transcoded into lpcm audio -->
           <Audio targetContainer="lpcm">
              <Matches container="flac" />
              <Matches container="ogg" />
              <Matches container="asf" />
              <Matches container="adts" />
           </Audio>
        </Transcoding>     
    </Profile>


if they both dont work then its the program your using to make the files and NOT serviio or the TV.

Re: Transcode all the files?

PostPosted: Tue Feb 21, 2012 12:48 pm
by Tarrasque
I am currently using the Panasonic Viera with AVI support. and most avi's do play with out any issues, except the ones which are encoded using transcode 1.0.4 / 1.0.6 and other versions.

Which I am assuming is this program
http://www.transcoding.org/transcode?Download
http://tcforge.berlios.de/

The only files which seem to have errors while playing seem to all be encoded via transcode.

As the those AVI's play fine via serviio on the Nokia n900 and iPhone. I can then assume that its the AVI encoded via transcode and the Panasonic TV compatibility issue.

For now I just easily switch between the two profiles, with any of those AVI's which crash.

Re: Transcode all the files?

PostPosted: Tue Feb 21, 2012 12:51 pm
by Illico
Try to change the FourCC parameter : http://wiki.serviio.org/doku.php?id=avi4cc
or
Try to check the avi/divx source file with repair tool: http://wiki.serviio.org/doku.php?id=avirepair

Re: Transcode all the files?

PostPosted: Tue Feb 21, 2012 1:59 pm
by Tarrasque
Avi fix worked, but still in the end have the same problem. Either run the file I want to watch thru a program first (Avi fix or mkvmerge) or swap profiles.

Re: Transcode all the files?

PostPosted: Tue Feb 21, 2012 4:44 pm
by PMI
OK, I will look into this at my end, since I have a similar set, but what I don't understand, is are you encoding the AVI files yourself, or are they downloaded from somewhere? You mentioned the Daily show, like you download it in this format?

Also, if you have an avi file which does not play using either profile, can you post the Media Info in text form for that file?

I ask this b/c although our sets support mkv files, they do not support ALL mkv files, and some still have to be transcoded because of a memory limitation of our set. So, if by some chance you have an AVI file which runs into the same kind of issue, the rest of us with Panasonic gear would like to know about it, not just find a workaround that fixes your particular issue...

Thanks, :)

Re: Transcode all the files?

PostPosted: Tue Feb 21, 2012 5:13 pm
by Cerberus
PMI wrote:OK, I will look into this at my end, since I have a similar set, but what I don't understand, is are you encoding the AVI files yourself, or are they downloaded from somewhere? You mentioned the Daily show, like you download it in this format?

Also, if you have an avi file which does not play using either profile, can you post the Media Info in text form for that file?

I ask this b/c although our sets support mkv files, they do not support ALL mkv files, and some still have to be transcoded because of a memory limitation of our set. So, if by some chance you have an AVI file which runs into the same kind of issue, the rest of us with Panasonic gear would like to know about it, not just find a workaround that fixes your particular issue...

Thanks, :)


its nothing special about pansonic gear its just there alot of badly encoded avi file flying about atm, that have to be fixed before they can be streamed.

Re: Transcode all the files?

PostPosted: Wed Feb 22, 2012 9:43 pm
by PMI
See below for the Media Info for the AVI file in question. The file was downloaded from a popular web site for TV shows.
See http://eztv.it/ and, there seem to be more just like it... :(

I can confirm that the file WILL play when transcoded in the profile for VIERA without AVI support (like mine).

I can't test it playing in native format, someone who owns a VIERA TV set that supports other AVI's would have to do that.

Re: Transcode all the files?

PostPosted: Wed Feb 22, 2012 9:51 pm
by Cerberus
not sure why we are continuing this topic, as its not cause by serviio but by badly encoded avi files as i stated above, and a fix has been given to solve this.

Re: Transcode all the files?

PostPosted: Sun Feb 26, 2012 11:27 am
by Tarrasque
To give this thread conclusion. I created a batch file that run divfix to the file, and as divfix creates a new file the batch file then renames it back to the original file name. Also a similar batch file that can be run to fix up all the files in a folder.