{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/45","repository_url":"https://api.github.com/repos/Microsoft/FFmpegInterop","labels_url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/45/comments","events_url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/45/events","html_url":"https://github.com/Microsoft/FFmpegInterop/issues/45","id":115924314,"number":45,"title":"Changing audio/video properties mid stream","user":{"login":"nickkelsey","id":3937599,"avatar_url":"https://avatars.githubusercontent.com/u/3937599?v=3","gravatar_id":"","url":"https://api.github.com/users/nickkelsey","html_url":"https://github.com/nickkelsey","followers_url":"https://api.github.com/users/nickkelsey/followers","following_url":"https://api.github.com/users/nickkelsey/following{/other_user}","gists_url":"https://api.github.com/users/nickkelsey/gists{/gist_id}","starred_url":"https://api.github.com/users/nickkelsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickkelsey/subscriptions","organizations_url":"https://api.github.com/users/nickkelsey/orgs","repos_url":"https://api.github.com/users/nickkelsey/repos","events_url":"https://api.github.com/users/nickkelsey/events{/privacy}","received_events_url":"https://api.github.com/users/nickkelsey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2015-11-09T17:22:20Z","updated_at":"2016-10-16T18:43:29Z","closed_at":null,"body":"Sometimes digital TV from an antenna (live or recorded) will change key properties mid stream.\r\n\r\nAudio might switch from 5.1 to 2 channel between a show and advertising, or the video might switch from 1080i (1920x1080x30fps) to 720p (1280x720x60fps) between shows.\r\n\r\nThe audio path uses swr_convert() to convert from floating point to S16 samples - this API segfaults internally when audio changes from 5.1 to 2 channel. I fixed the interop code to reinitialize the swr_convert context to 2/5.1 channel as needed - this fixes the segfault but now I need to tell the MediaFoundation layer that the PCM data I am passing it is now only 2 channel without interrupting playback.\r\n\r\nCan you suggest a way to update the MediaFoundation properties mid-stream without interrupting playback?\r\n\r\n(Currently focused on the audio change. Guessing the video size/framerate changing mid stream will have a similar solution).\r\n\r\nNick"},"comment":{"url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/comments/254065416","html_url":"https://github.com/Microsoft/FFmpegInterop/issues/45#issuecomment-254065416","issue_url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/45","id":254065416,"user":{"login":"nograx","id":15158066,"avatar_url":"https://avatars.githubusercontent.com/u/15158066?v=3","gravatar_id":"","url":"https://api.github.com/users/nograx","html_url":"https://github.com/nograx","followers_url":"https://api.github.com/users/nograx/followers","following_url":"https://api.github.com/users/nograx/following{/other_user}","gists_url":"https://api.github.com/users/nograx/gists{/gist_id}","starred_url":"https://api.github.com/users/nograx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nograx/subscriptions","organizations_url":"https://api.github.com/users/nograx/orgs","repos_url":"https://api.github.com/users/nograx/repos","events_url":"https://api.github.com/users/nograx/events{/privacy}","received_events_url":"https://api.github.com/users/nograx/received_events","type":"User","site_admin":false},"created_at":"2016-10-16T18:43:29Z","updated_at":"2016-10-16T18:43:29Z","body":"Seems to work in a short test."}}
{"actor":{"display_login":"nograx"}}