{"action":"opened","issue":{"url":"https://api.github.com/repos/gpac/gpac/issues/294","labels_url":"https://api.github.com/repos/gpac/gpac/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/gpac/gpac/issues/294/comments","events_url":"https://api.github.com/repos/gpac/gpac/issues/294/events","html_url":"https://github.com/gpac/gpac/issues/294","id":112652392,"number":294,"title":"MP4Client freezes when trying to stream","user":{"login":"nickdesaulniers","id":1823839,"avatar_url":"https://avatars.githubusercontent.com/u/1823839?v=3","gravatar_id":"","url":"https://api.github.com/users/nickdesaulniers","html_url":"https://github.com/nickdesaulniers","followers_url":"https://api.github.com/users/nickdesaulniers/followers","following_url":"https://api.github.com/users/nickdesaulniers/following{/other_user}","gists_url":"https://api.github.com/users/nickdesaulniers/gists{/gist_id}","starred_url":"https://api.github.com/users/nickdesaulniers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickdesaulniers/subscriptions","organizations_url":"https://api.github.com/users/nickdesaulniers/orgs","repos_url":"https://api.github.com/users/nickdesaulniers/repos","events_url":"https://api.github.com/users/nickdesaulniers/events{/privacy}","received_events_url":"https://api.github.com/users/nickdesaulniers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-21T18:36:36Z","updated_at":"2015-10-21T18:36:36Z","closed_at":null,"body":"In three terminal tabs, I run:\r\n\r\nterm1:\r\n```\r\n➜  buildz git:(master) ✗ bin/gcc/DashCast -vf avfoundation -vres 480x360 -v \"FaceTime HD Camera\" -vfr 25 -live\r\nMPD refresh time not set in live - defaulting to segment duration\r\nOptions:\r\n    video source: FaceTime HD Camera\r\n    video format: avfoundation\r\n    video framerate: 25\r\n    video resolution: 480x360\r\n    video crop: 0x0\r\n    audio source:\r\nConfigurations:\r\n    id:v1\tres:1280x720\tvbr:1000000\r\n    id:a1\tabr:192000\r\n[avfoundation @ 0x7fe7dc801a00] Selected pixel format (yuv420p) is not supported by the input device.\r\n[avfoundation @ 0x7fe7dc801a00] Supported pixel formats:\r\n[avfoundation @ 0x7fe7dc801a00]   uyvy422\r\n[avfoundation @ 0x7fe7dc801a00]   yuyv422\r\n[avfoundation @ 0x7fe7dc801a00]   nv12\r\n[avfoundation @ 0x7fe7dc801a00]   0rgb\r\n[avfoundation @ 0x7fe7dc801a00]   bgr0\r\n[avfoundation @ 0x7fe7dc801a00] Overriding selected pixel format to use uyvy422 instead.\r\nInput #0, avfoundation, from 'FaceTime HD Camera':\r\n  Duration: N/A, start: 376205.530067, bitrate: N/A\r\n    Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 480x360, 25 tbr, 1000k tbn, 1000k tbc\r\nAVCTX give frame duration of 1/1000000 - keeping requested rate 25, but this may result in unexpected behaviour.\r\n[DashCast] Error in PTS , diff too small (previous 0 - current 0\r\nPress q or Q to exit...\r\n[libx264 @ 0x7fe7dc80c800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX\r\n[libx264 @ 0x7fe7dc80c800] profile High, level 3.1\r\n[libx264 @ 0x7fe7dc80c800] 264 - core 146 r2555 0c21480 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=abr mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00\r\nGenerating MPD at 2015-10-21T18:32:07.839Z\r\nStartTime: 2015-10-21T18:32:07.839Z - startNumber 1 - last number 1\r\n[video_encoder] Rep v1 UTC diff 2013 bigger than segment duration 0 - some frame where probably lost. Adjusting\r\nGenerating MPD at 2015-10-21T18:32:07.839Z\r\nStartTime: 2015-10-21T18:32:07.839Z - startNumber 1 - last number 1\r\n[video_encoder] Rep v1 UTC diff at segment close: 2076 is lower than cumulated segment duration 3000 (diff -924) - frame rate is probably not correct or frames were lost!\r\nGenerating MPD at 2015-10-21T18:32:09.852Z\r\nStartTime: 2015-10-21T18:32:07.839Z - startNumber 1 - last number 3\r\nGenerating MPD at 2015-10-21T18:32:09.915Z\r\nStartTime: 2015-10-21T18:32:07.839Z - startNumber 1 - last number 4\r\nGenerating MPD at 2015-10-21T18:32:11.851Z\r\n...\r\n```\r\n\r\nterm2:\r\n```\r\n➜  buildz git:(master) ✗ node node-gpac-dash/gpac-dash.js -segment-marker eods -chunk-media-segments\r\n[11:32:15.414] Runnning /Users/Nicholas/code/c++/gpac/buildz/node-gpac-dash/gpac-dash.js using /Users/Nicholas/.nvm/versions/node/v0.12.7/bin/node version v0.12.7 in /Users/Nicholas/code/c++/gpac/buildz\r\n[11:32:15.423] Server running on 127.0.0.1:8000 in low-latency mode\r\n[11:32:21.568] Request for file: output/dashcast.mpd at UTC 1445452341567\r\n[11:32:21.582] Request for file: output/dashcast.mpd at UTC 1445452341582\r\n[11:32:21.587] Request for file: output/v1_init_gpac.mp4 at UTC 1445452341587\r\n[11:32:22.659] Request for file: output/v1_14_gpac.m4s at UTC 1445452342659\r\n[11:32:22.766] File output/v1_14_gpac.m4s, sending mdat data from 0 to 5023274 in 107 ms (total_sent: 5023275) at utc 1445452342766\r\n[11:32:22.769] File output/v1_14_gpac.m4s, sending mdat data from 0 to 237826 in 110 ms (total_sent: 5261102) at utc 1445452342769\r\n```\r\n\r\nterm3:\r\n```\r\n➜  buildz git:(master) ✗ MP4Client http://127.0.0.1:8000/output/dashcast.mpd -opt Network:BufferLength=200 -opt DASH:LowLatency=chunk -opt DASH:UseServerUTC=no\r\nUsing config file in /Users/Nicholas/.gpac directory\r\nSystem info: 16384 MB RAM - 8 cores\r\nModules Found : 29\r\nLoading GPAC Terminal\r\nTerminal Loaded in 119 ms\r\nOpening URL http://127.0.0.1:8000/output/dashcast.mpd\r\nService Connected\r\n```\r\n\r\nThe MP4Client window opens, but is black and unresponsive.\r\n\r\nThe video encoder has some interesting warnings about frames being lost.  The server also seems to transfer overlapping chunks of different sizes of the same file.  The client prints no warnings or erros."}}