Page 1 of 2

New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Wed Feb 08, 2012 6:48 am
by Cerberus
UPDATED - 08/02/2012

Please can users of following device please test the profile and report if they are able to play all of their files and if not post information on files that wont play so that default profile can be updated in serviio.( howto in my signature)


Profile for Panasonic Blu-ray Player

  Code:
<Profile id="23" name="Panasonic Blu-ray Player" 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" />
      </Video>
           <!-- remux unsupported audio codecs in MP4 to AC3 -->
           <Video targetContainer="mpegts" targetACodec="ac3" >
              <Matches container="mp4" vCodec="h264" aCodec="vorbis" />
              <Matches container="mp4" vCodec="h264" aCodec="truehd" />
              <Matches container="mp4" vCodec="h264" aCodec="dca"/>
           </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="mpeg" vCodec="mpeg1video" />
              <Matches container="matroska" />
              <Matches container="avi" />
              <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="mp3" />
              <Matches container="flac" />
              <Matches container="ogg" />
              <Matches container="asf" />
              <Matches container="adts" />
           </Audio>
        </Transcoding>     
    </Profile>


Thanks to PMI and voodoo for there help in building teh Panasonic TV profile that has now been modified to work with the Blu-ray player. :)

Re: Pansonic Blu-ray players??

PostPosted: Wed Feb 08, 2012 2:59 pm
by PMI
I thought you gave up on this one... :lol:

FYI, version 1.8 of the firmware for the BDT210/310 is out this week. Without transcoding, the player supports MPEG-TS, MPEG-PS, with MPEG2, H.264, and AAC or AC-3 audio.

WTV files have to be remuxed to MPEG-PS, otherwise some will not play.

The player supports MKV using the network drive feature ONLY, DLNA client does NOT support MKV files (dissapointed about that).

The player does support pause, resume, fwd and rev, not sure at which revision, 1.7 and up at least.

Re: Pansonic Blu-ray players??

PostPosted: Wed Feb 08, 2012 6:01 pm
by Cerberus
sink info please PMI we might aswell get it done even if its gunna be a pain then i can say i did all profiles for panasonic and get my name on teh credits :P

Re: Pansonic Blu-ray players??

PostPosted: Wed Feb 08, 2012 8:15 pm
by PMI
Cerberus wrote:sink info please PMI we might aswell get it done even if its gunna be a pain then i can say i did all profiles for panasonic and get my name on teh credits :P
Same as you have already in the wiki, I believe!

http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_24_LPCM_T,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_24_AC3_X_T,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_24_AC3_T,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_24_AC3,
http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_HD_24_AC3_ISO,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_60_LPCM_T,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_60_AC3_X_T,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_60_AC3_T,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=AVC_TS_HD_60_AC3,
http-get:*:video/mpeg:DLNA.ORG_PN=AVC_TS_HD_60_AC3_ISO,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA_T,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA,
http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_NA_ISO,
http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_NTSC,
http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG,
http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED,
http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM,
http-get:*:video/vnd.dlna.mpeg-tts:*,
http-get:*:video/mpeg:*,
http-get:*:video/mp4:*,
http-get:*:video/quicktime:*,
http-get:*:image/jpeg:*

Re: Pansonic Blu-ray Profiles Requiring Testers.

PostPosted: Wed Feb 08, 2012 9:13 pm
by Cerberus
always better to confirm to be on safe side :).

ok lets get to it PMI. :D modified version of the TV profile we did now should be working with the blu-ray specs. (see post 1 for profile)


MODS: can we stickie this topic please.

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Wed Feb 08, 2012 10:59 pm
by PMI
Example, does not play.
Video codec and audio codec are both supported, but container is not.
(and there is no rule to remux the file into MPEG-TS container).
Keiko_Matsui-H264.mp4.txt
(3.99 KiB) Downloaded 583 times


edit:

MPEG1 video, not supported. Also came up testing the Viera profile:
mpeg1_media_info.txt
(1.56 KiB) Downloaded 633 times

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Thu Feb 09, 2012 12:18 am
by Cerberus
ok mpeg1video taken into account in profile, as for the mp4 it should of been remuxed to mpegts with h264 and ac3 audio and that should then be supported by the device. Can you turn on detailed logging and try and play file again, then take the ffmpeg command run be serviio and run it manualy in cmd prompt and then add teh resulting file to serviio library does that new file now play ok or does it fail ?

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Thu Feb 09, 2012 2:06 am
by PMI
Cerberus wrote:ok mpeg1video taken into account in profile, as for the mp4 it should of been remuxed to mpegts with h264 and ac3 audio and that should then be supported by the device. Can you turn on detailed logging and try and play file again, then take the ffmpeg command run be serviio and run it manualy in cmd prompt and then add teh resulting file to serviio library does that new file now play ok or does it fail ?
OK, I can do that tomorrow.

Can you take another look at this profile first? I don't see much for MKV files in it.

Maybe I am missing something, or something else is wrong here. With this profile, NONE of my MKV's are playing, and most of the MP4 files are not playing either... maybe I am doing something wrong, but before I used this profile, most MKVs played just remuxed into MPEG-TS container, and at least some of the MP4's played also.

edit: what I mean is, this is not working at all like the Viera profile!

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Thu Feb 09, 2012 2:13 am
by Cerberus
mkv file are transcoded as they are not natively supported, mp4 are apparently natively supported, so i have transcoded as little as possible.

i have made a few changes to the profile again some how it got messed up.

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Thu Feb 09, 2012 4:28 am
by PMI
Cerberus wrote:mkv file are transcoded as they are not natively supported, mp4 are apparently natively supported, so i have transcoded as little as possible.

i have made a few changes to the profile again some how it got messed up.
Ok, but for me the first step is to play lossless files with as little change as possible. Like this, for DVD's ripped by MakeMKV (or similar):

<Video targetContainer="mpegts">
<Matches container="matroska" vCodec="mpeg2video" aCodec="ac3"/>
</Video>

You may have a better way, but at least this does work.

Next I will test that mp4 file w. ffmpeg.

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Thu Feb 09, 2012 4:56 am
by Cerberus
PMI wrote:
Cerberus wrote:mkv file are transcoded as they are not natively supported, mp4 are apparently natively supported, so i have transcoded as little as possible.

i have made a few changes to the profile again some how it got messed up.
Ok, but for me the first step is to play lossless files with as little change as possible. Like this, for DVD's ripped by MakeMKV (or similar):

<Video targetContainer="mpegts">
<Matches container="matroska" vCodec="mpeg2video" aCodec="ac3"/>
</Video>

You may have a better way, but at least this does work.

Next I will test that mp4 file w. ffmpeg.


so its letting you remux to ts without transcoding sound promising, wonder if we can do that for everything then, that would be nice

change

  Code:
           <!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
           <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3"> 


to

  Code:
           <!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
           <Video targetContainer="mpegts"> 


leaving rest as i have it in the post on first page, then hopefully most files will play.

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Thu Feb 09, 2012 6:11 am
by PMI
Yah, you would think so... :roll:

You would think that might work, but it does not. Not invoking ffmpeg from serviio, at least.

To be specific, this works:

<!-- Remux MKV with mpeg2 video to MPEG-TS -->
<Video targetContainer="mpegts">
<Matches container="matroska" vCodec="mpeg2video" aCodec="ac3" />
</Video>


and this works:

<Video targetContainer="mpegts" targetVCodec="mpeg2video">
<Matches container="matroska" vCodec="h264" aCodec="ac3" />
<Matches container="mp4" vCodec="h264" aCodec="aac" />
</Video>


and this also works:

<Video targetContainer="mpeg" targetVCodec="mpeg2video">
<Matches container="matroska" vCodec="h264" aCodec="ac3" />
<Matches container="mp4" vCodec="h264" aCodec="aac" />
</Video>


but this does NOT work... :o :

<Video targetContainer="mpegts">
<Matches container="matroska" vCodec="h264" aCodec="ac3" />
<Matches container="mp4" vCodec="h264" aCodec="aac" />
</Video>


It should, because when I play a file which is already MPEG-TS/H.264/AC-3 everything works fine.
Should work, but does NOT. Not with what I have now, at least.
I will run through this again tomorrow to make sure I did not mess up, but I repeated every test.

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Thu Feb 09, 2012 9:12 pm
by PMI
@Cerberus: Your earlier question about what is in the log file...

I looked up the actual command in the log file. (Debug turned on)

an example:

2012-02-09 11:57:40,087 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: I:\DVD_Video\Music Videos\Keiko_Matsui_ch6.mkv
2012-02-09 11:57:40,087 DEBUG [ProcessExecutor] Starting C:\Program Files (x86)\Serviio\bin\\..\lib/ffmpeg.exe -i I:\DVD_Video\Music Videos\Keiko_Matsui_ch6.mkv -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts C:\Windows\TEMP\Serviio\transcoding-temp-3026-MPEG2TS.stf
2012-02-09 11:57:40,176 WARN [ProcessExecutor] Process cmd has a return code of 1! This is a possible error.
2012-02-09 11:57:40,176 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2012-02-09 11:57:40,587 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed
java.io.IOException: FFmpeg execution failed
at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:47)
at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:129)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:96)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:121)
at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:116)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:54)
at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:187)

So you can see the source of the error is ffmpeg. Nothing I can do repeating the testing will change that.

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Thu Feb 09, 2012 9:21 pm
by Cerberus
run that command:

  Code:
ffmpeg.exe -i I:\DVD_Video\Music Videos\Keiko_Matsui_ch6.mkv -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts C:\Windows\TEMP\Serviio\transcoding-temp-3026-MPEG2TS.stf


if it fails post the ffmpeg readout here, if it works, then take the created file, and rename it .mpg and add it to the library and try and play it. Does it now work ?

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Thu Feb 09, 2012 10:53 pm
by PMI
not @ home, sorry
if that is the same command from command line, tried it already - it failed
if that is with different arguments, I will post the result later

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Fri Feb 10, 2012 12:58 am
by PMI
To establish a baseline for a test, first we try a command I know will work:

I:\DVD_Video\Music Videos>ffmpeg.exe -i Keiko_Matsui_ch6.mkv -y -threads 2 -async 1 -vcodec mpeg2vid
eo -sameq -r 30000/1001 -g 15 -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts Keiko_Matsui_ch6.ts
ffmpeg version N-36890-g67f5650 Copyright (c) 2000-2012 the FFmpeg developers built on Jan 16 2012 22:02:45 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --en
able-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb -
-enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enab
le-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 34.100 / 51. 34.100
libavcodec 53. 56.105 / 53. 56.105
libavformat 53. 30.100 / 53. 30.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 59.100 / 2. 59.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 51. 2.100 / 51. 2.100
Input #0, matroska,webm, from 'Keiko_Matsui_ch6.mkv':
Duration: 00:04:47.01, start: 0.000000, bitrate: 2247 kb/s
Stream #0:0(eng): Video: h264 (Main), yuv420p, 720x480, SAR 1:1 DAR 3:2, 29.92 fps, 29.97 tbr, 1k tbn, 180k tbc (default)
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s (default)
[buffer @ 00000000046A8680] w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[mpegts @ 0000000004658390] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'Keiko_Matsui_ch6.ts':
Metadata:
encoder : Lavf53.30.100
Stream #0:0(eng): Video: mpeg2video, yuv420p, 720x480 [SAR 1:1 DAR 3:2], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc (default)
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), 448 kb/s (default)
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mpeg2video)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 8602 fps=208 q=0.0 Lsize= 218289kB time=00:04:46.94 bitrate=6231.9kbits/s dup=1 drop=0
video:185428kB audio:15692kB global headers:0kB muxing overhead 8.536267%


Now we try a command that fails, like the one we pulled from the log:

I:\DVD_Video\Music Videos>ffmpeg.exe -i Keiko_Matsui_ch6.mkv -y -async 1 -vcodec copy -vbsf h264_mp4
toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts Keiko_Matsui_ch6.ts
ffmpeg version N-36890-g67f5650 Copyright (c) 2000-2012 the FFmpeg developers
built on Jan 16 2012 22:02:45 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --en
able-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb -
-enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enab
le-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 34.100 / 51. 34.100
libavcodec 53. 56.105 / 53. 56.105
libavformat 53. 30.100 / 53. 30.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 59.100 / 2. 59.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 51. 2.100 / 51. 2.100
Input #0, matroska,webm, from 'Keiko_Matsui_ch6.mkv':
Duration: 00:04:47.01, start: 0.000000, bitrate: 2247 kb/s
Stream #0:0(eng): Video: h264 (Main), yuv420p, 720x480, SAR 1:1 DAR 3:2, 29.92 fps, 29.97 tbr, 1k tbn, 180k tbc (default)
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s (default)
[mpegts @ 00000000047D1170] muxrate VBR, pcr every 100 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'Keiko_Matsui_ch6.ts':
Metadata:
encoder : Lavf53.30.100
Stream #0:0(eng): Video: h264, yuv420p, 720x480 [SAR 1:1 DAR 3:2], q=2-31, 29.92 fps, 90k tbn, 1k tbc (default)
Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), 448 kb/s (default)
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 00000000047D1170] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 5940 >= 5940
av_interleaved_write_frame(): Invalid argument

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Fri Feb 10, 2012 5:56 am
by Cerberus
oh for god sake so it not the device giving us issues its bloody ffmpeg. :( might have to put this one on hold till they sort some of the bugs with h264 :(

EDIT: try the latest GIT dated 06/02/2012.

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Fri Feb 10, 2012 5:13 pm
by PMI
Yes, I think so. :(

A lot of my testing is not valid, because I can't distinguish between ffmpeg errors and files that won't play for other reasons without a lot of extra work. Last time we tried this, I just could not tell what was happening, and why files that should have played did not work. This is the third time this has happened to me with ffmpeg since I have been posting here...

I will try to make some sense out of this this weekend.

Why doesn't anyone just TELL me these things! :roll:

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Fri Feb 10, 2012 5:18 pm
by Cerberus
PMI wrote:Yes, I think so. :(

A lot of my testing is not valid, because I can't distinguish between ffmpeg errors and files that won't play for other reasons without a lot of extra work. Last time we tried this, I just could not tell what was happening, and why files that should have played did not work. This is the third time this has happened to me with ffmpeg since I have been posting here...

I will try to make some sense out of this this weekend.

Why doesn't anyone just TELL me these things! :roll:


ffmpeg have a big thing on the homepage about missing patches, so hopefully they will sort it out very soon.

Re: New Pansonic Blu-ray Profile Requiring Testers.

PostPosted: Fri Feb 10, 2012 5:30 pm
by PMI
Cerberus wrote:ffmpeg have a big thing on the homepage about missing patches, so hopefully they will sort it out very soon.


OK, and btw, I did try the 06/02/12 version, result was the same.
(I really do not consider myself qualified to test ffmpeg issues tho.)