FAQ  •  Register  •  Login

Can not watch videos till the end

<<

EinWesen

Serviio newbie

Posts: 5

Joined: Tue Nov 06, 2018 7:56 pm

Post Tue Nov 06, 2018 8:13 pm

Can not watch videos till the end

Hi everyone,

First let me tell you, that i am very happy with serviio. It has been working well form me for quite some time.
It is a very well done piece of software.

Lately i have been looking into creating a webresourceplugin and I am on a very good way, my plugin extracts the video URLs just fine, and - in principle - i can watch them on my TV.

The only problem i still have is that my TV always shows an network error about 2 mins before the end of the video.
Playback will always stop at the same moment for a specific video. So it don’t think it is really a networkproblem.

I have tried several things to get as much information as possible, here is what i know so far:
- The plugin itself works fine so far, and extracts exactly the URLs which i am expecting (which is why i did not put this in plugin developement)
- Playing a video from this online source on the TV always get interrupted near the end, and the timestamp seems to always be the same for a specific video.
- That problem does not occur when playing the same video with VLC (still through serviio)
- According to the log the transcoding of the temp file is finished minuets before the error occurs ( so its not like that Connection was dropped)
- In fact i can copy the created tempfile to my usual library and after renaming the extension so that the file gets picked up by the scanner my TV will play the file just fine, and nothing is missing.
- despite the error, the logfile also says the playback stopped at 100%

I am not sure at the moment, where the issue orginates since each involved compoent seems to work fine by itself.
Has anyone got any ideas and could point me into a direction what i could check next?
Any help would be greatly appreciated.

I am on Serviio 1.10 now, but the behaviour was the same with 1.9.
My TV is from the samsung F-series.

  Code:
Input #0, hls,applehttp, from 'https://XXXXXXXXXXXXXXXXX.m3u8':
  Duration: 00:21:04.00, start: 10.000000, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg/bt470bg/unknown), 960x540 [SAR 1:1 DAR 16:9], 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16858

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Nov 09, 2018 10:18 am

Re: Can not watch videos till the end

Couple of things to try:
- check there is enough space in the transcoding folder
- check the log to see any ffmpeg error
- try to upgrade your ffmpeg to the latest version
<<

EinWesen

Serviio newbie

Posts: 5

Joined: Tue Nov 06, 2018 7:56 pm

Post Fri Nov 09, 2018 9:26 pm

Re: Can not watch videos till the end

Hi zip,

Thanks for your reply.


- Yes, the diskspace is sufficient. This can be seen as there was always several giga bytes free. But more importantly i have checked the temp file itself. That file was/is complete, and has more content than i could see on the TV. But then i can copy that file to my usual library (and rename to mp4) and as soon as it is detected, there isn't any problem.

- I had the root-logger on debug at some Point, couldn't see any error.

  Code:
[hls,applehttp @ 0000000000748020] Invalid timestamps stream=1, pts=1724400, dts=1728000, size=5761


But since the resulting file seems to be fine, i concluded these are propably just warnings (but i don't really know a lot about that)


- Did try that today, no Change (although only About 30 secs are missing for this one). Here is the log from that: https://pastebin.com/7gK60pue
(it has some packages set to debug, but not all)

Thanks again for taking your time.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16858

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Nov 12, 2018 12:01 pm

Re: Can not watch videos till the end

so if you execute

  Code:
E:\Apps\serviio\bin\\..\lib\ffmpeg.exe -fflags +genpts -threads 0 -analyzeduration 10000000 -i https://vodwbusoawshls.secure.footprint.net/proxy/manifest-wb-clear/at-ch-de/342318-1-23929.ism/342318-1-23929-audio=128000-video=2800000.m3u8 -y -threads 0 -c:v copy -c:a:0 ac3 -b:a:0 384k -ac:a:0 2 -map 0:1 -map 0:0 -sn -f mpegts C:\WINDOWS\TEMP\Serviio\transcoding-temp-ac9520a3ba79fdb8b016be025c6e3537.mpg


and then try to play the resulting .mpg file in VLC, is it complete?
<<

EinWesen

Serviio newbie

Posts: 5

Joined: Tue Nov 06, 2018 7:56 pm

Post Mon Nov 12, 2018 6:12 pm

Re: Can not watch videos till the end

Yes
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16858

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Nov 14, 2018 9:39 am

Re: Can not watch videos till the end

and if you add this file to the library and play normally, does it play completely on the TV?
<<

EinWesen

Serviio newbie

Posts: 5

Joined: Tue Nov 06, 2018 7:56 pm

Post Wed Nov 14, 2018 7:31 pm

Re: Can not watch videos till the end

Yes.

//Edit:

Since this problem only occurs if the transcoding is done on the fly, maybe, just maybe, i finally noticed something.

I have seen the following line in the log file a lot after requesting the online source.

  Code:
2018-11-14 21:10:57,009 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000


While for the test with the file i found this:

  Code:
2018-11-14 20:23:50,658 DEBUG [VideoDeliveryEngine] Delivering item '1204' for client 'Identifier=192.168.2.103, Profile=Samsung TV / player (E/F-series), Name=UE40F6400'
2018-11-14 20:23:50,658 DEBUG [VideoDeliveryEngine] Delivering file 'transcoding-temp-ac9520a3ba79fdb8b016be025c6e3537.mpg' in native format
2018-11-14 20:23:50,658 DEBUG [GETMethodProcessor] Stream entity has length: 95744264


So i am assuming:

1) This should be a reprensentation of the file size or length (don't know which unit, but does not matter)
2) 50000000000 is some kind of high default value, if serviio does not know the size


Now my theory (i don't know anything about the dnla protocol, so i am just guessing)

Because of the high default size the tv tries to read more data than is actually available at some point. At this moment the player throws an error and stops the playback, even if there was still data in the buffer it could play.


Would there be a way to confirm this? (Assuming this is a possible explanation in the first place)

On the other hand: Even if i could prove that, there propably isn't much serviio could do about it. :/ Maybe the plugin could provide the size ( not sure if i could)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16858

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Nov 16, 2018 9:15 am

Re: Can not watch videos till the end

it is a default large size, needed for some TVs to work with transcoded files. Unless the actual file size (transcoded) is larger, it should not be a problem.

What about if you play a transcoded file on the TV (local file)? Does it also finish early?
<<

EinWesen

Serviio newbie

Posts: 5

Joined: Tue Nov 06, 2018 7:56 pm

Post Fri Nov 16, 2018 7:07 pm

Re: Can not watch videos till the end

My tests are not as clean as i would have liked.
Most of my files did not trigger transcoding (and worked fine), but the few files which were transcoded immediately triggered a message that the file may possibly not be played correctly. (Thats something that does not happen for the stream)

Despite that, both of them seemed to work fine in general (video was clear, audio ok and in sync as far as i could see) BUT indeed they ended prematurely just as the online stream.

I still want to find a file which gets transcoded and does not trigger a warning at the start to be sure, but at the moment it looks like it has something to do with the on-the -fly transcoding.


//EDIT:

That didn't work out well. So i did change the profile in a way, that the files which need transcoding get transcoded in the same format as the stream. No warning message, but still ending early.

I propably had that problem with transcoding like "forever". But since i most often skip any kind of credits, i propably did not realize it even if it was transcoding. It's just that the episodes on that site have quite short credits which makes it noticeable here.

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 1 guest

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