FAQ  •  Register  •  Login

.avi and some .mkv files problems

<<

jhb50

DLNA master

Posts: 2854

Joined: Thu Jun 30, 2011 9:32 pm

Post Thu Dec 24, 2015 3:32 am

Re: .avi and some .mkv files problems

When I added the .srt, it stopped and couldn't be played until I deleted the .srt in the folder.

So to clarify, on PC VLC played when .srt was absent but would not play when srt was added?
That implies there is something wrong with the srt file.
Can you put them on a flash drive and play thru TV USB?

The log says the subs were found and were sent with the file, But does not the connection reset by peer indicate you stopped playback 2 seconds later before subs could show?
  Code:
2015-12-24 00:54:39,075 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 661 and profile Panasonic AS640
2015-12-24 00:54:39,078 DEBUG [SubtitlesService] Found external subtitles file: Stargate SG-1 - [2x01] - The Serpent's Lair.srt
2015-12-24 00:54:39,078 DEBUG [ResourceValuesBuilder] Softsubs for media item 661 found, will be served as a resource
2015-12-24 00:54:42,569 DEBUG [ResourceDeliveryProcessor] Request for resource 661 and type 'MEDIA_ITEM' received
2015-12-24 00:54:42,569 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 661 (local)
2015-12-24 00:54:42,576 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 661, format MPEG_TS_SD_EU_ISO and profile Panasonic AS640
2015-12-24 00:54:42,576 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 661 (local)
2015-12-24 00:54:42,577 DEBUG [VideoDeliveryEngine] Delivering item '661' for client 'Identifier=192.168.1.227, Profile=Panasonic AS640'
2015-12-24 00:54:42,577 DEBUG [VideoDeliveryEngine] Delivering file 'Stargate SG-1 - [2x01] - The Serpent's Lair.mpg' in native format
2015-12-24 00:54:42,589 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2015-12-24 00:54:42,589 DEBUG [GETMethodProcessor] Stream entity has length: 794661336
2015-12-24 00:54:44,759 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error


I don't know enough to determine if Serviio failed to actually send the subs. ie: what shows they were actually delivered as a resource? However when I play a file with subs I get a lot more in my log (I also have restlet set to debug) and I can see the subs actually being retrieved along with the video.
  Code:
2015-12-23 23:08:07,297 DEBUG [LogService] Processing request to: "http://localhost:23424/cds/resource/29794/SUBTITLE.srt?profile=flv_player&authToken=2f9cf64895a0437aad1ee7fa6e019195"
2015-12-23 23:08:07,297 DEBUG [ServerRouter] Default virtual host selected
2015-12-23 23:08:07,298 DEBUG [ServerRouter] Base URI: "http://localhost:23424". Remaining part: "/cds/resource/29794/SUBTITLE.srt?profile=flv_player&authToken=2f9cf64895a0437aad1ee7fa6e019195"
2015-12-23 23:08:07,298 DEBUG [VirtualHost] Selected route: "/cds" -> org.serviio.upnp.service.contentdirectory.rest.ContentDirectoryRestletApplication@134f009
2015-12-23 23:08:07,298 DEBUG [VirtualHost] New base URI: "http://localhost:23424/cds". New remaining part: "/resource/29794/SUBTITLE.srt"
2015-12-23 23:08:07,298 DEBUG [ContentDirectoryRestletApplication] Selected route: "/resource" -> Finder for CDSRetrieveMediaServerResource
2015-12-23 23:08:07,298 DEBUG [ContentDirectoryRestletApplication] New base URI: "http://localhost:23424/cds/resource". New remaining part: "/29794/SUBTITLE.srt"
2015-12-23 23:08:07,300 DEBUG [CDSRetrieveMediaServerResource] GET http://localhost:23424/cds/resource/29794/SUBTITLE.srt?profile=flv_player&authToken=2f9cf64895a0437aad1ee7fa6e019195 HTTP/1.1, headers = [host: localhost:23424,connection: keep-alive,user-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36,x-requested-with: ShockwaveFlash/20.0.0.228,accept: */*,referer: http://localhost:23424/mediabrowser/,accept-encoding: gzip, deflate, sdch,accept-language: en-US,en;q=0.8]
2015-12-23 23:08:07,300 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '127.0.0.1'
2015-12-23 23:08:07,300 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=127.0.0.1, Profile=Flash player'
2015-12-23 23:08:07,300 DEBUG [ResourceDeliveryProcessor] Request for resource 29794 and type 'SUBTITLE' received
2015-12-23 23:08:07,300 DEBUG [VideoDAOImpl] Reading a Video (id = 29794)
2015-12-23 23:08:07,301 DEBUG [MediaItemDAOImpl] Getting file of media item 29794
2015-12-23 23:08:07,303 DEBUG [SubtitlesService] Found external subtitle file: D:\Azureus Active Downloads\Transmission Downloads\Downton.Abbey.S06\Downton.Abbey.S06E02.srt
2015-12-23 23:08:07,303 DEBUG [SubtitlesRetrievalStrategy] Retrieving info of Subtitles for media item with id 29794
2015-12-23 23:08:07,303 DEBUG [VideoDAOImpl] Reading a Video (id = 29794)
2015-12-23 23:08:07,304 DEBUG [MediaItemDAOImpl] Getting file of media item 29794
2015-12-23 23:08:07,305 DEBUG [SubtitlesService] Found external subtitle file: D:\Azureus Active Downloads\Transmission Downloads\Downton.Abbey.S06\Downton.Abbey.S06E02.srt
2015-12-23 23:08:07,305 DEBUG [SubtitlesRetrievalStrategy] Retrieving Subtitles for media item with id 29794
2015-12-23 23:08:07,326 DEBUG [GETMethodProcessor] Stream entity has length: 101447
2015-12-23 23:08:07,326 DEBUG [ContentDirectoryRestletApplication] Converter selected for ClosingInputRepresentation: DefaultConverter
2015-12-23 23:08:07,326 INFO  [LogService] 2015-12-23   23:08:07   127.0.0.1   -   -   23424   GET   /cds/resource/29794/SUBTITLE.srt   profile=flv_player&authToken=2f9cf64895a0437aad1ee7fa6e019195   200   -   0   29   http://localhost:23424   Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36   http://localhost:23424/mediabrowser/


It makes no sense that your TV will not play subs on a basic mpeg2.mpg file. After we understand the cause of the VLC problem, we should chase this down by looking at an expanded log. We need to be sure its not a Serviio problem sending the subs. We could also try transcoding to x264 instead of mpeg2.

We should also find out what this line in your log means. Is it showing some DLNA restriction for your Panny and does the profile need to contain lines as a result?
  Code:
2015-12-24 00:54:39,002 DEBUG [ServiioHttpService] Incoming request from /192.168.1.227:41435: POST /serviceControl HTTP/1.1, headers = [User-Agent: Panasonic MIL DLNA CP UPnP/1.0 DLNADOC/1.50,Host: 192.168.1.182:8895,Content-Type: text/xml; charset="utf-8",SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse",X-PANASONIC-Registration: NDhBUzY0MF9TZXJpZXMAAAA=,X-PANASONIC-DMP-Profile: MPEG_PS_PAL JPEG_SM PV_DIVX_DIV3 PV_DIVX_DIV4 PV_DIVX_DIVX PV_DIVX_DX50 PV_DRM_DIVX_DIV3 PV_DRM_DIVX_DIV4 PV_DRM_DIVX_DIVX PV_DRM_DIVX_DX50,Content-Length: 794]]
<<

vibreaza

Streaming enthusiast

Posts: 28

Joined: Wed Dec 16, 2015 12:34 pm

Post Thu Dec 24, 2015 9:32 am

Re: .avi and some .mkv files problems

@DenyAll - Thanks for the suggestions. I'll try XMedia for the MKVs and let you know. I already tried AVI FourCC Code Changer 1.0 for the AVIs but it didn't work as you assumed. I'll stick with burn in subs unless jhb50 makes me a surprise and finds out a workaround with the help of the log, who knows :geek:

@jhb50 -
So to clarify, on PC VLC played when .srt was absent but would not play when srt was added?

Yes, on PC, VLC played the renamed .mpeg file when .srt was absent but would not play when .srt was added. I don't think there is something wrong with the subtitle though.

Can you put them on a flash drive and play thru TV USB?

I put the .mpeg and .srt file on a USB stick and they DID play nicely on TV through TV USB, showing subtitles. So maybe the TV is not requesting the external subs when transcoding?

The log says the subs were found and were sent with the file, But does not the connection reset by peer indicate you stopped playback 2 seconds later before subs could show?

I played them for a few seconds indeed, I just tried to load the subs with the option button which displayed "No Subtitles" and also toggled the STTL button showing "subtitles on/off" but having no effect.

It makes no sense that your TV will not play subs on a basic mpeg2.mpg file. After we understand the cause of the VLC problem, we should chase this down by looking at an expanded log. We need to be sure its not a Serviio problem sending the subs.

Anyway, I attach an expanded log adding DEBUG to restlet and LogService also, maybe you can see something.
I played the following files (a few seconds though trying to add subtitles and FFW a few seconds):

Stargate SG-1 - [2x01] - The Serpent's Lair.MPEG (the renamed .stf to .mpeg file) - this played natively WITHOUT working subs.
Stargate SG-1 - [3x01] - Into the Fire.avi - this played transcoded WITHOUT working subs.
Stargate SG-1 - [3x04] - Legacy.avi - this played transcoded WITHOUT working subs.

As said the first 4 or 5 seasons of Stargate have DIV3 vcodecs, so they can't be played natively.
The only way to play subs for these files is to have them burned in, as mentioned.


and then I played
Stargate SG-1 (Season 8) - 04 - Zero Hour.avi - this played natively WITH working subs.
Stargate SG-1 (Season 8) - 07 - Affinity.avi - this played natively WITH working subs.

The last seasons have XVID vcodecs, thus they play natively and can be loaded with external subs, as you can see.

It makes no sense that your TV will not play subs on a basic mpeg2.mpg file. After we understand the cause of the VLC problem, we should chase this down by looking at an expanded log. We need to be sure its not a Serviio problem sending the subs. We could also try transcoding to x264 instead of mpeg2.

I remember having tried that at some point (transcoding to x264), but I will do it again and post if it makes any difference.

We should also find out what this line in your log means. Is it showing some DLNA restriction for your Panny and does the profile need to contain lines as a result?

I know nothing about this, can't say anything.

Please let me know if there is anything I should add and I thank you both for your time and effort,
TIA
Attachments
log.txt
(404.13 KiB) Downloaded 61 times
<<

jhb50

DLNA master

Posts: 2854

Joined: Thu Jun 30, 2011 9:32 pm

Post Fri Dec 25, 2015 1:50 am

Re: .avi and some .mkv files problems

OK, looking at your log, the native .mpeg and the following 2 files that are transcoded to mpeg, both play but the TV does not request the subtitles.
For the last 2 .avi's that play natively the TV does request subtitles.
  Code:
2015-12-24 10:55:28,749 DEBUG [ServiioHttpService] Incoming request from /192.168.1.227:61110: GET /resource/260/SUBTITLE.srt HTTP/1.1, headers = [User-Agent: ,Accept: */*,Range: bytes=0-,Connection: close,Host: 192.168.1.182:8895]]

Since the native .avi does play subs and the both the native and transcoded to mpeg do not, it would seem to be a problem only when playing mpeg. It will be interesting to see what a native X264 and a transcoded to x264 with subs do.

On my Samsung I have subs set on and both my native x264 and my x265 transcoded to mpeg request and play subs
  Code:
2015-12-24 17:25:12,180 DEBUG [ServiioHttpService] Incoming request from /192.168.1.20:34675: HEAD /resource/29566/MEDIA_ITEM/MATROSKA-0/ORIGINAL HTTP/1.0, headers = [getCaptionInfo.sec: 1]]2015-12-24 17:25:12,188 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Length: 1047678883,Content-Type: video/x-mkv,Cache-control: no-cache,CaptionInfo.sec: http://192.168.1.10:8895/resource/29566/SUBTITLE.srt,Connection: close,contentFeatures.dlna.org: DLNA.ORG_PN=MATROSKA;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000,Date: Fri, 2015-12-24 2015-12-24 17:25:12,194 DEBUG [ServiioHttpService] Incoming request from /192.168.1.20:36041: GET /resource/29566/SUBTITLE.srt HTTP/1.0, headers = [HOST: 192.168.1.10:8895,ACCEPT-LANGUAGE: en-us,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Background]]
and
2015-12-24 17:31:26,142 DEBUG [ServiioHttpService] Incoming request from /192.168.1.20:59250: HEAD /resource/29913/MEDIA_ITEM/MPEG_TS_SD_KO_ISO-0/ORIGINAL HTTP/1.0, headers = [getCaptionInfo.sec: 1]]2015-12-24 17:31:26,139 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Length: 50000000000,Content-Type: video/mpeg,Cache-control: no-cache,CaptionInfo.sec: http://192.168.1.10:8895/resource/29913/SUBTITLE.srt,Connection: close,contentFeatures.dlna.org: DLNA.ORG_PN=MPEG_TS_SD_KO_ISO;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,Date: Fri, 25 Dec 2015 01:31:26 GMT,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/1.5.2,transferMode.dlna.org: Streaming]]
17:31:26,151 DEBUG [ServiioHttpService] Incoming request from /192.168.1.20:34975: GET /resource/29913/SUBTITLE.srt HTTP/1.0, headers = [HOST: 192.168.1.10:8895,ACCEPT-LANGUAGE: en-us,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Background]]


I do not know the DLNA dialog enough to tell if this signals a Serviio or TV firmware problem. Perhaps zip could take a look??
<<

jhb50

DLNA master

Posts: 2854

Joined: Thu Jun 30, 2011 9:32 pm

Post Fri Dec 25, 2015 7:21 pm

Re: .avi and some .mkv files problems

I suspect the subtitle problem may be related to a change in the way newer tv's are requesting subs. see viewtopic.php?f=10&t=19198 and http://www.universalmediaserver.com/for ... 724eda5ee4.

Zip will release a fix for that in 1.6 and I will point him to here to look at the above log and see what he thinks.
<<

vibreaza

Streaming enthusiast

Posts: 28

Joined: Wed Dec 16, 2015 12:34 pm

Post Fri Dec 25, 2015 7:28 pm

Re: .avi and some .mkv files problems

Thanks! Yes, I suspected my TV was guilty for this.
I also tried X264 and transcoded X264, no dice.

It would be awesome if Zip could release a fix for Panasonic as well in the next version.
Thanks for your efforts to help out guys!
<<

DenyAll

DLNA master

Posts: 2032

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Tue Dec 29, 2015 5:27 am

Re: .avi and some .mkv files problems

@vibreaza: As fate would have it, I bought a new Veira yesterday as the post christmas sales :)

So as an aside, I spent a bit of time working through my media and seeing what worked, what didn't. I haven't extensively tested this yet, and am going away for a week so won't be able to play for a while, but fyi, this is the profile I have develop for it to date:

  Code:
   <Profile id="viera2015" name="Panasonic Viera (2015)" extendsProfileId="1">
      <!-- Panasonic Viera 2015 Models:
         LED/LCD's: CS610, CS650
      Supports native streaming of mainstream MP4, MKV and XVid files -->
      <Detection>
         <UPnPSearch>
            <FriendlyName>.*CS6(1|5)0_Series.*</FriendlyName>
            <Manufacturer>Panasonic</Manufacturer>
         </UPnPSearch>
      </Detection>
      <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PacketVideoDLNAMessageBuilder</ContentDirectoryMessageBuilder>
      <Transcoding>
         <!-- Transcode h264 videos with profile level > 4.1 to mpegts with ac3 audio -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" DAR="16:9" targetACodec="ac3" aBitrate="384" forceInheritance="true">
            <Matches container="*" vCodec="h265" />            
            <Matches container="*" vCodec="h264" profile="high_10" />
            <!--Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" / -->
            <!--Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" / -->
            <!--Matches container="*" vCodec="h263" / -->
            <Matches container="mp4" vCodec="mjpeg" />
            <!-- Matches container="mp4" vCodec="dvvideo" / -->
            <Matches container="mpeg" vCodec="mpeg1video" />
            <Matches container="matroska" vCodec="vp8" />      
            <Matches container="ogg" />
            <Matches container="rm" />
         </Video>
         <!-- remux FLAC/TrueHD in MKV/MP4 to AC3, DTS (MP4) to AC3 -->
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384" forceInheritance="true">
            <!-- Matches container="matroska" vCodec="h264" aCodec="dca" / --> <!-- Uncomment this line if DTS is not supported natively -->
            <Matches container="matroska" vCodec="h264" aCodec="dts-hd" />
            <!--Matches container="matroska" vCodec="h264" aCodec="flac" / -->
            <Matches container="matroska" vCodec="h264" aCodec="truehd" />
            <!--Matches container="mp4" vCodec="h264" aCodec="dca" /--> <!-- E6 support??, remove this line -->
         </Video>
         <!-- Remux MPEG-PS with no transcoding -->
         <!-- Video targetContainer="mpegts" forceInheritance="true">
            <Matches container="wtv" />
         </Video -->
         <!-- AVI files will be transcoded into mpeg-ts, mpeg2 video and ac3 audio. 
         This section is NOT inherited by other Panasonic profiles  -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
            <Matches container="avi" vCodec="mpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
            <Matches container="avi" vCodec="msmpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
            <Matches container="avi" vCodec="dvvideo" />
         </Video>
         <!-- unsupported audio will be transcoded into lpcm audio -->
         <Audio targetContainer="lpcm" forceInheritance="true">
            <Matches container="ogg" />
            <Matches container="asf" />
            <Matches container="adts" />
            <Matches container="wavpack" />
            <Matches container="mpc" />
            <Matches container="ape" />
         </Audio>
      </Transcoding>
      <HardSubsTranscoding>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" DAR="16:9" targetACodec="ac3" aBitrate="384" />
      </HardSubsTranscoding>
      <Subtitles>
         <SoftSubs mime-type="text/srt" />
      </Subtitles>
      <ThumbnailsResolution>HD</ThumbnailsResolution>
   </Profile>
Its based on the 2013 profile with a lot of it is commented out - this is where I still need to test. Appreciate if you could compare it to what you have developed.

One other thing I did: I didn't like the transcoding of my older divx based AVI files (aspect ratio changes which needs then to be corrected via the remote - not catastrophic but...), so for all of my movies I tried the 4CC changer program on them. For 23 out of the 25 AVI movies I had, this worked. You manually need to type in "XVID" in both fields (it doesn't appear in the drop downs). Unfortunately I couldn't tell you any reason why two didn't work other than they work both "div3" (other div3's did work) and I may just have been lucky, but in the main this has worked a treat (and allows your subs to work).

I have a stack of AVI's for TV series, but these all seem to be working without transcoding (it will take some time to go through them all).
DenyAll
Panasonic Viera CS610A | Panasonic Viera V20A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 7 | Serviio 1.8 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

vibreaza

Streaming enthusiast

Posts: 28

Joined: Wed Dec 16, 2015 12:34 pm

Post Wed Jan 13, 2016 11:31 am

Re: .avi and some .mkv files problems

Congrats on your new TV and sorry for my delayed reply!
Meanwhile, I bought an android box (Tronsmart Vega s95 Telos) and all my problems with subs and stuttering in certain files/formats are now solved.
I still use Serviio to stream to the box some movies in my pc, but now I dont use transcoding and use generic profile and the box does the hard work :)
And for the most part I turned to Kodi.
Many thanks for your support guys though!
Previous

Return to Panasonic

Who is online

Users browsing this forum: No registered users and 1 guest

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