{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/47","repository_url":"https://api.github.com/repos/Microsoft/FFmpegInterop","labels_url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/47/comments","events_url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/47/events","html_url":"https://github.com/Microsoft/FFmpegInterop/pull/47","id":119684800,"number":47,"title":"fix MPEG-PS incorrect packet position","user":{"login":"senkia","id":4932553,"avatar_url":"https://avatars.githubusercontent.com/u/4932553?v=3","gravatar_id":"","url":"https://api.github.com/users/senkia","html_url":"https://github.com/senkia","followers_url":"https://api.github.com/users/senkia/followers","following_url":"https://api.github.com/users/senkia/following{/other_user}","gists_url":"https://api.github.com/users/senkia/gists{/gist_id}","starred_url":"https://api.github.com/users/senkia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senkia/subscriptions","organizations_url":"https://api.github.com/users/senkia/orgs","repos_url":"https://api.github.com/users/senkia/repos","events_url":"https://api.github.com/users/senkia/events{/privacy}","received_events_url":"https://api.github.com/users/senkia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/FFmpegInterop/labels/cla-signed","name":"cla-signed","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":37,"created_at":"2015-12-01T10:11:13Z","updated_at":"2016-05-12T21:47:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Microsoft/FFmpegInterop/pulls/47","html_url":"https://github.com/Microsoft/FFmpegInterop/pull/47","diff_url":"https://github.com/Microsoft/FFmpegInterop/pull/47.diff","patch_url":"https://github.com/Microsoft/FFmpegInterop/pull/47.patch"},"body":"It seems that in the MediaSampleProvider.GetNextSample method when we get the current AVPacket, the packet's presentation timestamp is incorrect (it's actually larger that the duration of the movie I'd like to play). This timestamp should be 0 at the very first packet but it isn't.\r\n\r\nFortunately this error is consistent meaning that each AVPacket presentation timestamp is larger than it should be by the first packet's timestamp (because that one's should be 0). So if I save this constant \"offset\" (StartPosition attribute) at the first packet (the offset equals with the first packet's timestamp) and subtract it from every packet's presentation timestamp the video works just fine with seek and everything. "},"comment":{"url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/comments/218895748","html_url":"https://github.com/Microsoft/FFmpegInterop/pull/47#issuecomment-218895748","issue_url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/47","id":218895748,"user":{"login":"reego-fr","id":13314729,"avatar_url":"https://avatars.githubusercontent.com/u/13314729?v=3","gravatar_id":"","url":"https://api.github.com/users/reego-fr","html_url":"https://github.com/reego-fr","followers_url":"https://api.github.com/users/reego-fr/followers","following_url":"https://api.github.com/users/reego-fr/following{/other_user}","gists_url":"https://api.github.com/users/reego-fr/gists{/gist_id}","starred_url":"https://api.github.com/users/reego-fr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reego-fr/subscriptions","organizations_url":"https://api.github.com/users/reego-fr/orgs","repos_url":"https://api.github.com/users/reego-fr/repos","events_url":"https://api.github.com/users/reego-fr/events{/privacy}","received_events_url":"https://api.github.com/users/reego-fr/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T21:47:36Z","updated_at":"2016-05-12T21:47:36Z","body":"Sure, but you will still be using MF pipeline in the end :-)\r\nAnyway, it means there are two issues instead of three that prevent your file, amongst others, to play fine as uncompressed samples. This is good news !"}}