{"action":"created","issue":{"url":"https://api.github.com/repos/dickontoo/omxmotion/issues/3","labels_url":"https://api.github.com/repos/dickontoo/omxmotion/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/dickontoo/omxmotion/issues/3/comments","events_url":"https://api.github.com/repos/dickontoo/omxmotion/issues/3/events","html_url":"https://github.com/dickontoo/omxmotion/issues/3","id":75211191,"number":3,"title":"Writing (kind of) corrupt video","user":{"login":"towolf","id":345210,"avatar_url":"https://avatars.githubusercontent.com/u/345210?v=3","gravatar_id":"","url":"https://api.github.com/users/towolf","html_url":"https://github.com/towolf","followers_url":"https://api.github.com/users/towolf/followers","following_url":"https://api.github.com/users/towolf/following{/other_user}","gists_url":"https://api.github.com/users/towolf/gists{/gist_id}","starred_url":"https://api.github.com/users/towolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/towolf/subscriptions","organizations_url":"https://api.github.com/users/towolf/orgs","repos_url":"https://api.github.com/users/towolf/repos","events_url":"https://api.github.com/users/towolf/events{/privacy}","received_events_url":"https://api.github.com/users/towolf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-05-11T12:49:09Z","updated_at":"2015-05-12T04:44:59Z","closed_at":null,"body":"Hi, your project is pretty interesting.\r\n\r\nI built it today to check it out and I’m not sure what I’m supposed to see.\r\n\r\nStarting it, it prints\r\n```\r\nFramerate:\t1966080 (1e0000); (30.000000)\r\n```\r\n\r\nSo, I assume it is supposed to write \"live action\" 30fps video? When I play the output mkv files (with `mpv`, `ffplay`, or `totem`), I get either a kind of low framerate \"timelapse\" with lots of errors, or one or two frames and then nothing (with lots of errors).\r\n\r\nThe output seems to have zeroed PTS timestamps\r\n\r\n![screenshot from 2015-05-11 14-32-15](https://cloud.githubusercontent.com/assets/345210/7564893/68bee65a-f7eb-11e4-82ed-0167b8a9110b.png)\r\n\r\nAnd it’s complaining about incomplete units frequently.\r\n\r\nI re-encoded a video to generate fresh timestamps and suddenly I got \"full motion\" video:\r\n\r\n```\r\nffmpeg  -i file:2015-05-11T14\\:12\\:44.mkv  -preset superfast -vf \"setpts=N/(25*TB)\" test.mp4\r\n```\r\n\r\nSo, there were *all the frames* in the file, but the \"corrupted\" muxing and/or the h.264 stream prevented playing them properly. The player skips almost all of them somehow.\r\n\r\nI think it would b good if the camera native timestamps were muxed into the file. And muxing to mp4 would be best, so the files can be played natively straight in the browser."},"comment":{"url":"https://api.github.com/repos/dickontoo/omxmotion/issues/comments/101129699","html_url":"https://github.com/dickontoo/omxmotion/issues/3#issuecomment-101129699","issue_url":"https://api.github.com/repos/dickontoo/omxmotion/issues/3","id":101129699,"user":{"login":"spikedrba","id":6811353,"avatar_url":"https://avatars.githubusercontent.com/u/6811353?v=3","gravatar_id":"","url":"https://api.github.com/users/spikedrba","html_url":"https://github.com/spikedrba","followers_url":"https://api.github.com/users/spikedrba/followers","following_url":"https://api.github.com/users/spikedrba/following{/other_user}","gists_url":"https://api.github.com/users/spikedrba/gists{/gist_id}","starred_url":"https://api.github.com/users/spikedrba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spikedrba/subscriptions","organizations_url":"https://api.github.com/users/spikedrba/orgs","repos_url":"https://api.github.com/users/spikedrba/repos","events_url":"https://api.github.com/users/spikedrba/events{/privacy}","received_events_url":"https://api.github.com/users/spikedrba/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T04:44:59Z","updated_at":"2015-05-12T04:44:59Z","body":"actually as I was biking home and thinking about what I wrote - for the sec cam I don't think the stream is a must have, but I do have a pi based streaming project that I'd love this for. I don't know if @towolf , who seem very well versed on gstreamer, already has a solution, but as it stands I haven't seen/found a good way to stream from the pi to say youtube. Some ppl have done it with custom builds of gstreamer but they seem to be laggy and can't quite mix in an audio feed from a pi critrus audio card (or ex wolfson). Anyway, don't want to sidetrack the conversation, just wanted to restate what I said and clarify that h264 streaming from the pi with low latency and high fps would be a huge win."}}