{"action":"created","issue":{"url":"https://api.github.com/repos/ccrisan/motionpie/issues/250","labels_url":"https://api.github.com/repos/ccrisan/motionpie/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/ccrisan/motionpie/issues/250/comments","events_url":"https://api.github.com/repos/ccrisan/motionpie/issues/250/events","html_url":"https://github.com/ccrisan/motionpie/issues/250","id":96947643,"number":250,"title":"hardware assist h264 encoding for pi2","user":{"login":"caguas","id":7303913,"avatar_url":"https://avatars.githubusercontent.com/u/7303913?v=3","gravatar_id":"","url":"https://api.github.com/users/caguas","html_url":"https://github.com/caguas","followers_url":"https://api.github.com/users/caguas/followers","following_url":"https://api.github.com/users/caguas/following{/other_user}","gists_url":"https://api.github.com/users/caguas/gists{/gist_id}","starred_url":"https://api.github.com/users/caguas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caguas/subscriptions","organizations_url":"https://api.github.com/users/caguas/orgs","repos_url":"https://api.github.com/users/caguas/repos","events_url":"https://api.github.com/users/caguas/events{/privacy}","received_events_url":"https://api.github.com/users/caguas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-07-24T02:39:02Z","updated_at":"2016-01-20T15:10:40Z","closed_at":null,"body":"These are modifications to motion and ffmpeg to\r\nperform hardware assist h264 encoding on\r\nraspberry pi 2 .\r\n\r\nffmpeg-2.6.1/libavcodec/vc264.c is the video encoder\r\nthat performs hardware assist encoding for the RPI2.\r\n\r\nthe command used to configure ffmpeg :\r\n./configure --enable-gpl --disable-decoder=opus --enable-encoder=vc264 --enabl\r\ne-nonfree --extra-libs=-ldl --extra-cflags=' -pipe '\r\n\r\nmotion/ffmpeg.c was modified to recognize the h264 extension\r\n\r\nTo see how to do hardware assist h264 encoding  please reference\r\nencode.c which was provided by Broadcam. The included\r\nfile was take from:\r\n/opt/vc/src/hello_pi/hello_encode/encode.c\r\n\r\nAmancio Hasty\r\n\r\nhttps://www.dropbox.com/s/2smfsqauhe0wo5v/pi2h264.tar.gz?dl=0"},"comment":{"url":"https://api.github.com/repos/ccrisan/motionpie/issues/comments/173232832","html_url":"https://github.com/ccrisan/motionpie/issues/250#issuecomment-173232832","issue_url":"https://api.github.com/repos/ccrisan/motionpie/issues/250","id":173232832,"user":{"login":"XFer012","id":16563943,"avatar_url":"https://avatars.githubusercontent.com/u/16563943?v=3","gravatar_id":"","url":"https://api.github.com/users/XFer012","html_url":"https://github.com/XFer012","followers_url":"https://api.github.com/users/XFer012/followers","following_url":"https://api.github.com/users/XFer012/following{/other_user}","gists_url":"https://api.github.com/users/XFer012/gists{/gist_id}","starred_url":"https://api.github.com/users/XFer012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XFer012/subscriptions","organizations_url":"https://api.github.com/users/XFer012/orgs","repos_url":"https://api.github.com/users/XFer012/repos","events_url":"https://api.github.com/users/XFer012/events{/privacy}","received_events_url":"https://api.github.com/users/XFer012/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T15:10:40Z","updated_at":"2016-01-20T15:10:40Z","body":"Sorry Amancio, I think you did not read my message thoroughly.\r\n\r\nThe problem is not the USB camera.\r\nThe problem is that the \"bcm2835-v4l2\" kernel module, needed for OpenMax hardware acceleration, is NOT loaded if the Raspberry Camera Module is not mounted on the board.\r\n\r\nSo, no Hardware-accelerated ffmpeg available for a Raspberry without the Camera Module."}}