Page 1 of 1

serviio with Toshiba TV

PostPosted: Fri Dec 31, 2010 9:13 am
by yule
Hello!

I just found serviio and must say it works brilliantly so far. What I was looking for was a tiny DLNA server with transcoding capabilites. I recently bought a Toshiba 37XV733G LCD which only seems to handle MPEG2 over DLNA. I added the following profile to the config/profiles.xml file, selected it from the console and it worked flawlessly (and fast!):

  Code:
<Profile id="11" name="Toshiba" extendsProfileId="1">
      <Detection>
         <X-AV-Client-Info>.*Intel.*</X-AV-Client-Info>
      </Detection>
      <Transcoding>
         <!-- All Others video/audio codec will be transcoded into mpeg2ts, mpeg2video and ac3 audio (MPEG_TS_SD_EU). -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
            <Matches container="asf" />
            <Matches container="avi" />
            <Matches container="mp4" />
            <Matches container="matroska" />
         </Video>
      </Transcoding>
      <AutomaticImageRotation>true</AutomaticImageRotation>
   </Profile>


Maybe you could add it to the permanent distribution? I will tweak it some more though over the next weeks and I can report back here when I find more useful changes.

But so far, I must say: thank you very much for this useful piece of software! There seem to be so many DLNA solutions, but yours just worked (TM) for me!

Re: serviio with Toshiba TV

PostPosted: Tue Jan 11, 2011 12:59 am
by ninjavz
Yes this works with the 55UX600U LED TV from Toshiba too, but:
1. Pause works, play again not.
2. FF and REV do not work properly.

Any1 knows what codecs this TV can play naturally?

-Miguel

Re: serviio with Toshiba TV

PostPosted: Wed Jan 12, 2011 1:54 pm
by Octalus
I have the same problem - i figured out that the TV also supports "mpeg" as targetVideoCodec. When i select mpeg, i can skip and pause and resume etc without problems!

my config :
  Code:
<Profile id="11" name="Toshiba REGZA" extendsProfileId="1">
      <Detection>
         <X-AV-Client-Info>.*TOSHIBA.*</X-AV-Client-Info>
      </Detection>
      <Transcoding>
         <Video targetContainer="mpeg" targetACodec="ac3" targetVCodec="mpeg2video">
            <Matches container="mp4" />
            <Matches container="avi" />
            <Matches container="mpegts" />
            <Matches container="mpegvideo" />
            <Matches container="asf" />
            <!-- if audio different to ac3, must be transcoded -->
            <Matches container="mpeg" aCodec="aac" />
            <Matches container="mpeg" aCodec="mp3" />
            <Matches container="mpeg" aCodec="dca" />
         </Video>
          <Video targetContainer="mpegts" targetACodec="ac3" targetVCodec="mpeg2video">
            <Matches container="matroska" />
          </Video>
      </Transcoding>
</Profile>

I figured out that i have problems with 1080p movies. when i use matroska with 1080p in combination with "mpeg" i get synch problems. This works better with mpegts (but here i cannot pause and resume - but its working at all)

Finally i have the problem with a 1080p MKV movie which has DTS and AC3 Audo track inside. I don't know why but ffmpeg returns :
  Code:
2011-01-12 14:35:18,013 WARN  [ProcessExecutor] Process C:\Program Files (x86)\Serviio\bin\\..\lib/ffmpeg.exe has a return code of 1! This is a possible error.
2011-01-12 14:35:25,466 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed

An other movie in MKV and 1080p with DTS only or AC3 tracks only is working. I have no idea why this one isn't transcoding :(

Any ideas?

Greatings!

Re: serviio with Toshiba TV

PostPosted: Wed Jan 12, 2011 2:36 pm
by Illico
Octalus wrote:An other movie in MKV and 1080p with DTS only or AC3 tracks only is working. I have no idea why this one isn't transcoding :(

Could you enable detailed logging (see signature) and post the line with "ffmpeg -i" command when you start this movie?

Re: serviio with Toshiba TV

PostPosted: Wed Jan 12, 2011 2:36 pm
by Octalus
Ok, if anybody also has this problem :

if a mkv has DTS and AC3 inside - ffmpeg couldn't transcode the file. I used the program "mkvmerge" to delete the AC3 audio track. Finally the muxed file is working with serviio :-)

EDIT :
to the problematic file i had :

i activated DEBUG and the ffmpeg line is :
ffmpeg.exe -threads 4 -i Movie.1080p.mkv -y -vcodec mpeg2video -sameq -r 23.98 -g 15 -copyts -acodec copy -sn -f mpegts D:\Temp\Serviio\transcoding-temp-6483-MPEG2TS.stf

in console i get for this command :
  Code:
FFmpeg version SVN-r23012, Copyright (c) 2000-2010 the FFmpeg developers
  built on May  3 2010 19:05:24 with gcc 3.4.5 (mingw-vista special r3)
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-w32threads --extra-ldf
lags=-L/static/lib --extra-cflags=-I/static/include
  libavutil     50.15. 0 / 50.15. 0
  libavcodec    52.66. 0 / 52.66. 0
  libavformat   52.62. 0 / 52.62. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.10. 0 /  0.10. 0
[matroska @ 00f9efa0]MAX_READ_SIZE:5000000 reached
[matroska @ 00f9efa0]Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/
1001) -> 23.98 (48000/2002)
Input #0, matroska, from 'Movie.1080p.mkv':
  Metadata:
    title           : presented by hd-world.org
  Duration: 02:28:07.96, start: 0.000000, bitrate: 192 kb/s
    Chapter #0.0: start 0.000000, end 701.743000
    Metadata:
      title           : 00:00:00.000
    Chapter #0.1: start 701.743000, end 1297.338000
    Metadata:
      title           : 00:11:41.743
    Chapter #0.2: start 1297.338000, end 1880.337000
    Metadata:
      title           : 00:21:37.338
    Chapter #0.3: start 1880.337000, end 2482.230000
    Metadata:
      title           : 00:31:20.337
    Chapter #0.4: start 2482.230000, end 3073.737000
    Metadata:
      title           : 00:41:22.230
    Chapter #0.5: start 3073.737000, end 3681.553000
    Metadata:
      title           : 00:51:13.737
    Chapter #0.6: start 3681.553000, end 4229.684000
    Metadata:
      title           : 01:01:21.553
    Chapter #0.7: start 4229.684000, end 4935.597000
    Metadata:
      title           : 01:10:29.684
    Chapter #0.8: start 4935.597000, end 5512.590000
    Metadata:
      title           : 01:22:15.597
    Chapter #0.9: start 5512.590000, end 6038.532000
    Metadata:
      title           : 01:31:52.590
    Chapter #0.10: start 6038.532000, end 6682.175000
    Metadata:
      title           : 01:40:38.532
    Chapter #0.11: start 6682.175000, end 7254.414000
    Metadata:
      title           : 01:51:22.175
    Chapter #0.12: start 7254.414000, end 7809.051000
    Metadata:
      title           : 02:00:54.414
    Chapter #0.13: start 7809.051000, end 8455.447000
    Metadata:
      title           : 02:10:09.051
    Chapter #0.14: start 8455.447000, end 8887.963000
    Metadata:
      title           : 02:20:55.447
    Stream #0.0(eng): Video: h264, yuv420p, 1920x800 [PAR 1:1 DAR 12:5], 23.98 t
br, 1k tbn, 47.95 tbc
    Stream #0.1(ger): Audio: ac3, 48000 Hz, 5.1, s16, 192 kb/s
    Stream #0.2(eng): Audio: dca, 48000 Hz, 6 channels, s16
    Stream #0.3(eng): Subtitle: 0x0000
[mpegts @ 035c0050]muxrate 1 bps, pcr every 2 pkts, sdt every 200, pat/pmt every
 40 pkts
Output #0, mpegts, to 'D:\Temp\Serviio\transcoding-temp-6483-MPEG2TS.stf':
  Metadata:
    encoder         : Lavf52.62.0
    Chapter #0.0: start 0.000000, end 701.743000
    Metadata:
      title           : 00:00:00.000
    Chapter #0.1: start 701.743000, end 1297.338000
    Metadata:
      title           : 00:11:41.743
    Chapter #0.2: start 1297.338000, end 1880.337000
    Metadata:
      title           : 00:21:37.338
    Chapter #0.3: start 1880.337000, end 2482.230000
    Metadata:
      title           : 00:31:20.337
    Chapter #0.4: start 2482.230000, end 3073.737000
    Metadata:
      title           : 00:41:22.230
    Chapter #0.5: start 3073.737000, end 3681.553000
    Metadata:
      title           : 00:51:13.737
    Chapter #0.6: start 3681.553000, end 4229.684000
    Metadata:
      title           : 01:01:21.553
    Chapter #0.7: start 4229.684000, end 4935.597000
    Metadata:
      title           : 01:10:29.684
    Chapter #0.8: start 4935.597000, end 5512.590000
    Metadata:
      title           : 01:22:15.597
    Chapter #0.9: start 5512.590000, end 6038.532000
    Metadata:
      title           : 01:31:52.590
    Chapter #0.10: start 6038.532000, end 6682.175000
    Metadata:
      title           : 01:40:38.532
    Chapter #0.11: start 6682.175000, end 7254.414000
    Metadata:
      title           : 01:51:22.175
    Chapter #0.12: start 7254.414000, end 7809.051000
    Metadata:
      title           : 02:00:54.414
    Chapter #0.13: start 7809.051000, end 8455.447000
    Metadata:
      title           : 02:10:09.051
    Chapter #0.14: start 8455.447000, end 8887.963000
    Metadata:
      title           : 02:20:55.447
    Stream #0.0(eng): Video: mpeg2video, yuv420p, 1920x800 [PAR 1:1 DAR 12:5], q
=2-31, 200 kb/s, 90k tbn, 23.98 tbc
    Stream #0.1(eng): Audio: 0x0000, 48000 Hz, 6 channels
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.2 -> #0.1
Press [q] to stop encoding
[h264 @ 00e63ea0]Cannot parallelize deblocking type 1, decoding such frames in s
equential order
[mpegts @ 035c0050]st:1 error, non monotone timestamps 990 >= 990
[mpegts @ 035c0050]st:1 error, pts < dts
av_interleaved_write_frame(): Error number -1 occurred

Re: serviio with Toshiba TV

PostPosted: Wed Jan 12, 2011 3:08 pm
by zip
I hope 0.5 should fix this, but it'll only take the first audio stream (AC3 in your case) to the output file. ATM Serviio knows nothing about additional audio streams.

Re: serviio with Toshiba TV

PostPosted: Wed Jan 12, 2011 3:21 pm
by Octalus
it should be fine if serviio would take the first stream and start transcoding - but ffmpeg seems to have problems too with 2 streams? nothing is transcoded in this case...
i dont understand exactly the problem but its from ffmpeg here. i believe that ffmpeg trys to find out the source audio codec - if there are two tracks with different codec its not transcodable.

Re: serviio with Toshiba TV

PostPosted: Wed Jan 12, 2011 4:03 pm
by Illico
Could you try locally these command lines (post ffmpeg traces) and add output files to the serviio library and test with your TV?
1) Serviio default command
ffmpeg.exe -threads 4 -i Movie.1080p.mkv -y -vcodec mpeg2video -sameq -r 23.98 -g 15 -copyts -acodec copy -sn -f mpegts Test1.ts
2) Selection of audio source: ac3
ffmpeg.exe -threads 4 -i Movie.1080p.mkv -y -vcodec mpeg2video -sameq -r 23.98 -g 15 -copyts -acodec copy -sn -f mpegts Test2.ts -map 0.0 -map 0.1
3) Selection of audio source: dca
ffmpeg.exe -threads 4 -i Movie.1080p.mkv -y -vcodec mpeg2video -sameq -r 23.98 -g 15 -copyts -acodec copy -sn -f mpegts Test2.ts -map 0.0 -map 0.2

Have a look on this topic: viewtopic.php?f=8&t=1125&start=0&hilit=monotone

Re: serviio with Toshiba TV

PostPosted: Wed Jan 12, 2011 4:17 pm
by zip
Illico wrote:2) Selection of audio source: ac3
ffmpeg.exe -threads 4 -i Movie.1080p.mkv -y -vcodec mpeg2video -sameq -r 23.98 -g 15 -copyts -acodec copy -sn -f mpegts Test2.ts -map 0.0 -map 0.1

This is what is used in 0.5

Re: serviio with Toshiba TV

PostPosted: Tue May 03, 2011 12:36 pm
by rlocke
Octalus' config file for Regza was the only one which allowed me to properly pause, rew, ff, etc.

It should probably replace the one which is currently bundled with Serviio for the next release.

Re: serviio with Toshiba TV

PostPosted: Thu May 19, 2011 8:28 pm
by NineRedDogs
Hi fellas,

I've got a 37RV753, and I've used octalus' regza profile - this helps me to pause & ffwd video nicely...

What's the best way of transcoding everything apart from mp2 ?

What I'm trying to say, is that if the TV can play the file natively - don't run ffmpeg on the server .....

Can i set an mp2 extension for all files I know to be in this form, then add an entry to the profile ?

or is there something buried in the video file itself that I'll need to use in the profile.

It would be good if I only run ffmpeg when I need to :)

cheers for any response
9rD

Re: serviio with Toshiba TV

PostPosted: Thu May 19, 2011 8:44 pm
by moltra
serviio only transcodes when it is required. If you look at the profile that you are using it will tell you if needs to be transcoded. You can also disable transcoding via the serviio console.

Re: serviio with Toshiba TV

PostPosted: Thu May 19, 2011 9:13 pm
by NineRedDogs
Cheers for the quick response Mark,

Here's the profile I'm using

  Code:
<Profile id="13" name="Toshiba REGZA" extendsProfileId="1">
      <!-- <Detection>
         <X-AV-Client-Info>.*TOSHIBA.*</X-AV-Client-Info>
      </Detection> -->
      <Transcoding>
         <Video targetContainer="mpeg" targetACodec="ac3" targetVCodec="mpeg2video">
            <Matches container="mp4" />
            <Matches container="avi" />
            <Matches container="mpegts" />
            <Matches container="mpegvideo" />
            <Matches container="asf" />
            <!-- if audio different to ac3, must be transcoded -->
            <Matches container="mpeg" aCodec="aac" />
            <Matches container="mpeg" aCodec="mp3" />
            <Matches container="mpeg" aCodec="dca" />
         </Video>
          <Video targetContainer="mpegts" targetACodec="ac3" targetVCodec="mpeg2video">
            <Matches container="matroska" />
          </Video>
      </Transcoding>
</Profile>



and here's the info on the video file:

  Code:
> ffmpeg -i myfile.mp2.avi

<snip>
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 480x480 [PAR 16:9 DAR 16:9], 2516 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
<snip>

I then switched off transcoding on serviio-console -

played file successfully on regza TV without any transcoding
to prove it wasn't transcoding, i ran 'top' on server - no ffmpeg process running.

but then i switched transcoding back on.
played file (again successfully) on regza TV -

I was hoping not to see an ffmpeg process running - but I did - so it looks like with my profile (see above) that it's going to transcode an mpeg2video

Is there an entry I need to add to the profile to ensure it skips the transcoding step ?



cheers
9rD

Re: serviio with Toshiba TV

PostPosted: Thu May 19, 2011 9:40 pm
by moltra
Try taking out the following line of the profile you are using.

  Code:
<Matches container="avi" />


That will prevent anything in an AVI container from being transcoded. The Generic profile does not transcode anything also. So you might want to look at that or see if the files play with it selected.

Re: serviio with Toshiba TV

PostPosted: Fri May 20, 2011 6:43 am
by Illico
Check the detailed logging file to see how serviio provide the media to your TV (native or transcode).

Re: serviio with Toshiba TV

PostPosted: Mon Sep 19, 2011 8:38 pm
by pteeson
I'm on Mac Pro with Snow Leopard and also Lion (separate partitions).
I use a wired connection to my TV which is a device on my LAN.

My Toshiba 55SL500U LED shows up in the Serviio Console with it's IP address and a Device name of 55SL500U.
But it is using a Generic profile. I have the Toshiba Manual specs for supported file formats (I'm interested in video ATM).
Also the DNLA Product Certification Certificate which I DL'd.

In the profiles.xml id=13 is for a "Toshiba Regza". My unit does support Regza.
However Serviio is not providing that profile (so far as Console is concerned.

Shall I make a new profile (inheriting from #1) with the relevant info from the Toshiba manual and DLNA certificate?

(I have actully been able to start a movie but that was using a Video_TS folder. But that is a different topic.)
(I tried running Device Spy under Windows XP which was running on my Mac under VBox but nothing showed up)

respect...

Peter

Re: serviio with Toshiba TV

PostPosted: Mon Sep 19, 2011 8:50 pm
by pteeson
Arrrggghhh!. I didn't realize there was a pop down. Sorry for the noise.

Peter