{"action":"created","issue":{"url":"https://api.github.com/repos/Chocobozzz/PeerTube/issues/970","repository_url":"https://api.github.com/repos/Chocobozzz/PeerTube","labels_url":"https://api.github.com/repos/Chocobozzz/PeerTube/issues/970/labels{/name}","comments_url":"https://api.github.com/repos/Chocobozzz/PeerTube/issues/970/comments","events_url":"https://api.github.com/repos/Chocobozzz/PeerTube/issues/970/events","html_url":"https://github.com/Chocobozzz/PeerTube/issues/970","id":354191672,"node_id":"MDU6SXNzdWUzNTQxOTE2NzI=","number":970,"title":"Longer videos are especially slow to start","user":{"login":"scanlime","id":923812,"node_id":"MDQ6VXNlcjkyMzgxMg==","avatar_url":"https://avatars2.githubusercontent.com/u/923812?v=4","gravatar_id":"","url":"https://api.github.com/users/scanlime","html_url":"https://github.com/scanlime","followers_url":"https://api.github.com/users/scanlime/followers","following_url":"https://api.github.com/users/scanlime/following{/other_user}","gists_url":"https://api.github.com/users/scanlime/gists{/gist_id}","starred_url":"https://api.github.com/users/scanlime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scanlime/subscriptions","organizations_url":"https://api.github.com/users/scanlime/orgs","repos_url":"https://api.github.com/users/scanlime/repos","events_url":"https://api.github.com/users/scanlime/events{/privacy}","received_events_url":"https://api.github.com/users/scanlime/received_events","type":"User","site_admin":false},"labels":[{"id":387859681,"node_id":"MDU6TGFiZWwzODc4NTk2ODE=","url":"https://api.github.com/repos/Chocobozzz/PeerTube/labels/Type:%20Discussion%20:thought_balloon:","name":"Type: Discussion :thought_balloon:","color":"5319e7","default":false},{"id":387859385,"node_id":"MDU6TGFiZWwzODc4NTkzODU=","url":"https://api.github.com/repos/Chocobozzz/PeerTube/labels/Type:%20Enhancement%20:sparkles:","name":"Type: Enhancement :sparkles:","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-27T06:10:07Z","updated_at":"2018-08-27T18:39:26Z","closed_at":null,"author_association":"NONE","body":"I've been putting up a lot of longer videos (archives from live streams) and, whereas there might be startup speed improvements to be had across the board, it seems like there's a special opportunity to optimize longer videos.\r\n\r\nThis might be related to the algorithm which chooses a resolution; maybe we want to be more likely to go ahead and stream the first 10 seconds at 240p while the 720p or 1080p version loads, for example.\r\n\r\nAlso, I'm not sure about the details of the mp4 header, but are there some data the player needs to download before streaming which scales with the length of the video? If so, would it be helpful to have a transcode that's both shorter and lower quality to start with, while the \"real\" version is still loading?"},"comment":{"url":"https://api.github.com/repos/Chocobozzz/PeerTube/issues/comments/416325568","html_url":"https://github.com/Chocobozzz/PeerTube/issues/970#issuecomment-416325568","issue_url":"https://api.github.com/repos/Chocobozzz/PeerTube/issues/970","id":416325568,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjMyNTU2OA==","user":{"login":"scanlime","id":923812,"node_id":"MDQ6VXNlcjkyMzgxMg==","avatar_url":"https://avatars2.githubusercontent.com/u/923812?v=4","gravatar_id":"","url":"https://api.github.com/users/scanlime","html_url":"https://github.com/scanlime","followers_url":"https://api.github.com/users/scanlime/followers","following_url":"https://api.github.com/users/scanlime/following{/other_user}","gists_url":"https://api.github.com/users/scanlime/gists{/gist_id}","starred_url":"https://api.github.com/users/scanlime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scanlime/subscriptions","organizations_url":"https://api.github.com/users/scanlime/orgs","repos_url":"https://api.github.com/users/scanlime/repos","events_url":"https://api.github.com/users/scanlime/events{/privacy}","received_events_url":"https://api.github.com/users/scanlime/received_events","type":"User","site_admin":false},"created_at":"2018-08-27T18:39:26Z","updated_at":"2018-08-27T18:39:26Z","author_association":"NONE","body":"This might be a separate bug, but with the (12 hour) video I just posted, I can reproduce behavior where the video never loads, despite the downloads succeeding at an okay rate. Here's the setup:\r\n\r\n1. This is on LAN, with just a hairpin NAT route between me and the server, so real network effects are not an issue.\r\n\r\n2. Using Firefox 61.0.2 on Mac OS, server is still running beta10. \r\n\r\n3. Firefox is set to simulate \"Regular 3G\" network speed, with cache disabled.\r\n\r\n4. Navigate to the long video (https://diode.zone/videos/watch/2f1544f6-3a3b-4cd0-bb72-c57d2e2d1e9b)\r\n\r\nResults:\r\n\r\nUser sees the load spinner forever. A look at the network tab shows files downloading at an okay rate. One potential problem: The latency for an individual request is getting very high, upwards of ~20 seconds, due to queueing. If the player isn't taking this into account, it could end up blocking on I/O forever I imagine.\r\n\r\n![screen shot 2018-08-27 at 11 33 54 am](https://user-images.githubusercontent.com/923812/44678683-cc9d3c00-a9ed-11e8-9c09-eb43f421bf7b.png)\r\n"}}
{"actor":{"display_login":"scanlime"}}