FAQ  •  Register  •  Login

Connection drop while playing online video with Samsung c630

<<

vard81

Serviio newbie

Posts: 18

Joined: Sun Oct 02, 2011 1:17 pm

Post Wed Oct 05, 2011 7:46 pm

Re: Connection drop while playing online video with Samsung

moltra wrote:Try this after you try to play a file and it disconnects copy the file generated by ffmpeg to your serviio video directory and see if it will play fully.

This will help make sure there is not an error with the transcoding.

Also you did not specify your network setup, but if it is wireless please run the tool from this thread to rule out any other network interferences.

http://forum.serviio.org/viewtopic.php?f=17&t=2439


Basically that what i did at first. Copied file works without any problem. I am running on wired connection. And OS that server runs is Windows 7.
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Wed Oct 05, 2011 9:03 pm

Re: Connection drop while playing online video with Samsung

I copied this from one of Zip's posts on another thread. Can you capture packets when you are trying to play the online video? And post the results on here? Maybe something will show up that is causing the problem.

zip wrote:Any chance you could capture packets via Wireshark between the player and a server that works? I'm interested in traffic between the 2 IP addresses (server, player) from the point of starting the player to browsing to a media file (no need to play it).
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

aekstrom

Serviio newbie

Posts: 7

Joined: Sun Oct 02, 2011 12:40 pm

Location: Sweden

Post Thu Oct 06, 2011 11:57 am

Re: Connection drop while playing online video with Samsung

Hi.
As written earlier in the thread above I have about the same problem as vard81.

vard81 will probably post a pcap as well. Anyway I had the time so here it is.

I have capture the traffic between my windows 7(64bit) running Serviio 0.6.0.1 with IP: [172.27.27.5] and my Samsung UE46C6005 with IP:[172.27.27.107]
Test clip is recorded by me on my youtube profile: http://www.youtube.com/watch?v=OLploYLfkDk
The clip is 26sec long and stops after 14sec on the TV.
The clip starts about 16sec in the pcap file and I can see the video data starts at frame 273.
PCAP file can be downloaded here: http://aekstrom.com/Serviio-capture.pcap
I have also saved the video file from the temp dir: http://aekstrom.com/transcoding-temp-10 ... PEG2PS.stf

Some notes:
-The size on the pcap gile is 15mb and the full clip is about 13mb so it looks like Serviio is actually sending the full video to the TV.
-Please ignore the CRC check reported by Wireshark. This is normal because the checksum will be calculated after Wireshark has capture the packet.
-One difference for vard81 and me is that the shortest clip I have been able to start is 21 sec and will run for about 10sec.

I hope this information can help and not confuse things more. :?

Best Regards
/Andreas
<<

vard81

Serviio newbie

Posts: 18

Joined: Sun Oct 02, 2011 1:17 pm

Post Thu Oct 06, 2011 6:31 pm

Re: Connection drop while playing online video with Samsung

Hi,
I have my PCAP file for same video that Andreas posted but I did not know where to post it. If you need it let me know I will figure out something.

Andreas is right while his TV can play that video 10 second my TV dose not play at all.
I did other experiment. I got online http://www.youtube.com/bmw#p/u/1/g9KVYlczExU video and played it and captured by Wireshark. Then copied temp file to .mp4 file and the played and captured again.
I have attached screenshots for last packets. Please look at time difference between last PSH packet and SYN one.
Attachments
BMW microNavigation.jpg
BMW microNavigation.jpg (224.48 KiB) Viewed 17898 times
online BMW microNavigation.jpg
online feed version
online BMW microNavigation.jpg (241.34 KiB) Viewed 17898 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Oct 09, 2011 5:54 pm

Re: Connection drop while playing online video with Samsung

First, just to confirm, all online content is transcoded (inherited from Generic profile).

Second, can you enable detailed log, play the file, find the ffmpeg command used for transcoding and try running it manually? Check how many fps it's doing.

Another thing you can try is install Intel UPnp tools, run AV Media Controller. Assign Samsung C/D profile to the IP running the Intel Tools. Restart AV Media Controller, browse to the feed you want to play, Properties (post them here, especially duration), find the video resource. Post the resource details here (especially protocol info). Copy resource URL and try playing it (Open stream) in VLC - does it play the whole file?
<<

aekstrom

Serviio newbie

Posts: 7

Joined: Sun Oct 02, 2011 12:40 pm

Location: Sweden

Post Sun Oct 09, 2011 7:28 pm

Re: Connection drop while playing online video with Samsung

Hi

Here are the FPS and duration reported by ffmpeg running manually from the line in the log.
Duration: 00:00:26.30, start: 0.000000, bitrate: 1433 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1280x720, 1352 kb/s, 15.97 fps, 16 tbr, 1k tbn, 32 tbc

I have attached the output from AV Media Controllers Properties on the video.
Copy and playing the URL in VLC works fine and play the full video.
The video tested is the same as I tested above.
http://www.youtube.com/watch?v=OLploYLfkDk

Thanks.
Best Regards
/Andreas
Attachments
Resource2.JPG
From AV Media Controller
Resource2.JPG (25.36 KiB) Viewed 17868 times
Resource1.JPG
From AV Media Controller
Resource1.JPG (26.72 KiB) Viewed 17868 times
Properties.JPG
From AV Media Controller
Properties.JPG (26.89 KiB) Viewed 17868 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Oct 09, 2011 7:35 pm

Re: Connection drop while playing online video with Samsung

cool. so the duration of 26 seconds is correct. How long does this play on the TV?

What I meant with fps is, when the transcode job runs, how fast does it download/transcode?
<<

vard81

Serviio newbie

Posts: 18

Joined: Sun Oct 02, 2011 1:17 pm

Post Sun Oct 09, 2011 7:48 pm

Re: Connection drop while playing online video with Samsung

zip wrote:First, just to confirm, all online content is transcoded (inherited from Generic profile).

Second, can you enable detailed log, play the file, find the ffmpeg command used for transcoding and try running it manually? Check how many fps it's doing.

Another thing you can try is install Intel UPnp tools, run AV Media Controller. Assign Samsung C/D profile to the IP running the Intel Tools. Restart AV Media Controller, browse to the feed you want to play, Properties (post them here, especially duration), find the video resource. Post the resource details here (especially protocol info). Copy resource URL and try playing it (Open stream) in VLC - does it play the whole file?


I at Oct 04, 2011 9:44 pm in this thread I have posted In *-cmd.txt command line that ffmpeg starts by server when I am trying to play video on TV. sdtout for ffmpeg -i (without given output file) run is also attach. i have done with given output file and it does 80-120 fps.
I have tried to play TED video (url : http://download.ted.com/talks/ChristophAdami_2011X.mp4 ) with VLC and it plays till end.

For Intel tool I will run and post letter.

I can’t find in F.A.Q. how to enable detailed logging. I would like to enable it.

P.S. i also have xbox 360 maybe I should try to use it and see how it works. Or maybe I could use MS media player on other PC?
<<

vard81

Serviio newbie

Posts: 18

Joined: Sun Oct 02, 2011 1:17 pm

Post Sun Oct 09, 2011 7:56 pm

Re: Connection drop while playing online video with Samsung

zip wrote:cool. so the duration of 26 seconds is correct. How long does this play on the TV?

What I meant with fps is, when the transcode job runs, how fast does it download/transcode?


For that short video mine even dose not stats.

it fills to me that TV tries to buffer x MB and then play. if video smaller then x MB it buffers and drops connection without playing.
<<

aekstrom

Serviio newbie

Posts: 7

Joined: Sun Oct 02, 2011 12:40 pm

Location: Sweden

Post Sun Oct 09, 2011 8:04 pm

Re: Connection drop while playing online video with Samsung

zip wrote:cool. so the duration of 26 seconds is correct. How long does this play on the TV?

What I meant with fps is, when the transcode job runs, how fast does it download/transcode?


The clip runs for 14sec on the TV.
FPS differs between 96-99.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Oct 09, 2011 8:17 pm

Re: Connection drop while playing online video with Samsung

can you try adding this to the C/D profile and try again?

viewtopic.php?f=10&t=3560#p23804
<<

vard81

Serviio newbie

Posts: 18

Joined: Sun Oct 02, 2011 1:17 pm

Post Mon Oct 10, 2011 5:05 am

Re: Connection drop while playing online video with Samsung

zip wrote:can you try adding this to the C/D profile and try again?

viewtopic.php?f=10&t=3560#p23804


I have tired that (you can see it in first page) and it is not helping.
Also i don think that is transcoding related because of:
viewtopic.php?f=10&t=3490&start=10#p23455
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Oct 10, 2011 9:00 am

Re: Connection drop while playing online video with Samsung

Try this:

1) play the file
2) wait for the transcoded srt file to be fully finished
3) try to play again (and post detail log of this)

same problem?
<<

vard81

Serviio newbie

Posts: 18

Joined: Sun Oct 02, 2011 1:17 pm

Post Mon Oct 10, 2011 10:30 am

Re: Connection drop while playing online video with Samsung

zip wrote:Try this:

1) play the file
2) wait for the transcoded srt file to be fully finished
3) try to play again (and post detail log of this)

same problem?


I have already posted that it drops connection in same place. How to enable detail log? Edited: OK I found how to do it in viewtopic.php?f=5&t=7 i will pose later log file.

Could it be that Serviio closes connection once stream is uploaded to TV. But at that time TV had not finished playing yet(since it has buffer).
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Oct 10, 2011 11:57 am

Re: Connection drop while playing online video with Samsung

vard81 wrote:Could it be that Serviio closes connection once stream is uploaded to TV. But at that time TV had not finished playing yet(since it has buffer).

No.
<<

vard81

Serviio newbie

Posts: 18

Joined: Sun Oct 02, 2011 1:17 pm

Post Mon Oct 10, 2011 3:48 pm

Re: Connection drop while playing online video with Samsung

zip wrote:Try this:

1) play the file
2) wait for the transcoded srt file to be fully finished
3) try to play again (and post detail log of this)

same problem?


Please find attached detailed log file. There were already two backups when I have tired to play video mentioned by Andreas. Probably you just need .log file. TV was not able to play it (second play too).

I found "I/O error: Connection reset by peer: socket write error" in it.

Thanks.
Attachments
log.zip
(145.15 KiB) Downloaded 530 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Oct 10, 2011 4:09 pm

Re: Connection drop while playing online video with Samsung

Thanks. I'm not sure what exactly that could be, one thing that comes to my mind is that Serviio sets the file size of transcoded content to 50GB (as it doesn't know in advance the right number) and it might be too much for short videos.

But thinking about it again - you were saying that you're getting incomplete online content no matter the length?
<<

vard81

Serviio newbie

Posts: 18

Joined: Sun Oct 02, 2011 1:17 pm

Post Mon Oct 10, 2011 6:23 pm

Re: Connection drop while playing online video with Samsung

zip wrote:Thanks. I'm not sure what exactly that could be, one thing that comes to my mind is that Serviio sets the file size of transcoded content to 50GB (as it doesn't know in advance the right number) and it might be too much for short videos.

But thinking about it again - you were saying that you're getting incomplete online content no matter the length?


Yes, it seems that last 40-60 second cant be played. And if video shorter then ~40 second cant be played at all.

BTW as i already posted forceVTranscoding="true" plays longer and maxVBitrate="512" plays shorter. Transcoded file size is different for them but how it could be connected to that 50GB. Transfers longer plays longer?
<<

vard81

Serviio newbie

Posts: 18

Joined: Sun Oct 02, 2011 1:17 pm

Post Mon Oct 10, 2011 6:36 pm

Re: Connection drop while playing online video with Samsung

xbox 360 works with no problems.
it is interesting how iMediaShare does
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Oct 10, 2011 7:07 pm

Re: Connection drop while playing online video with Samsung

do you have an example URL I can try on my C series TV to reproduce this? (including some very short video)
PreviousNext

Return to Samsung

Who is online

Users browsing this forum: No registered users and 6 guests

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