{"action":"created","issue":{"url":"https://api.github.com/repos/e-lab/torch-toolbox/issues/12","repository_url":"https://api.github.com/repos/e-lab/torch-toolbox","labels_url":"https://api.github.com/repos/e-lab/torch-toolbox/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/e-lab/torch-toolbox/issues/12/comments","events_url":"https://api.github.com/repos/e-lab/torch-toolbox/issues/12/events","html_url":"https://github.com/e-lab/torch-toolbox/issues/12","id":173297349,"number":12,"title":"Video-decoder error during installation in mac","user":{"login":"codeAC29","id":12651576,"avatar_url":"https://avatars.githubusercontent.com/u/12651576?v=3","gravatar_id":"","url":"https://api.github.com/users/codeAC29","html_url":"https://github.com/codeAC29","followers_url":"https://api.github.com/users/codeAC29/followers","following_url":"https://api.github.com/users/codeAC29/following{/other_user}","gists_url":"https://api.github.com/users/codeAC29/gists{/gist_id}","starred_url":"https://api.github.com/users/codeAC29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeAC29/subscriptions","organizations_url":"https://api.github.com/users/codeAC29/orgs","repos_url":"https://api.github.com/users/codeAC29/repos","events_url":"https://api.github.com/users/codeAC29/events{/privacy}","received_events_url":"https://api.github.com/users/codeAC29/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-25T20:09:23Z","updated_at":"2016-08-25T22:21:59Z","closed_at":null,"body":"I am getting the following error on my mac while installing the libvideo-decoder. ffmpeg version is 3-1-2.\r\n\r\n```\r\nvideo_decoder.c:2859:3: warning: implicit declaration of function 'avcodec_free_frame' is invalid in C99 [-Wimplicit-function-declaration]\r\n                avcodec_free_frame(&enc.pFrame_yuv);\r\n                ^\r\nvideo_decoder.c:2865:9: warning: 'avcodec_encode_video2' is deprecated [-Wdeprecated-declarations]\r\n                while(avcodec_encode_video2(enc.fmt_ctx->streams[0]->codec, &enc.pkt, 0, &got) >= 0 && got)\r\n                      ^\r\n/usr/local/include/libavcodec/avcodec.h:5261:5: note: 'avcodec_encode_video2' has been explicitly marked deprecated here\r\nint avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,\r\n    ^\r\nvideo_decoder.c:2865:56: warning: 'codec' is deprecated [-Wdeprecated-declarations]\r\n                while(avcodec_encode_video2(enc.fmt_ctx->streams[0]->codec, &enc.pkt, 0, &got) >= 0 && got)\r\n                                                                     ^\r\n/usr/local/include/libavformat/avformat.h:880:21: note: 'codec' has been explicitly marked deprecated here\r\n    AVCodecContext *codec;\r\n                    ^\r\nvideo_decoder.c:2875:4: warning: 'av_free_packet' is deprecated [-Wdeprecated-declarations]\r\n                        av_free_packet(&enc.pkt);\r\n                        ^\r\n/usr/local/include/libavcodec/avcodec.h:4414:6: note: 'av_free_packet' has been explicitly marked deprecated here\r\nvoid av_free_packet(AVPacket *pkt);\r\n     ^\r\nvideo_decoder.c:2880:42: warning: 'codec' is deprecated [-Wdeprecated-declarations]\r\n                avcodec_close(enc.fmt_ctx->streams[0]->codec);\r\n                                                       ^\r\n/usr/local/include/libavformat/avformat.h:880:21: note: 'codec' has been explicitly marked deprecated here\r\n    AVCodecContext *codec;\r\n                    ^\r\n79 warnings generated.\r\ngcc -O3 -c -fpic -Wall -DDARWIN -I. -I/Users/abhi/torch/install/include mpjpeg.c\r\ngcc video_decoder.o mpjpeg.o -shared -L/Users/abhi/torch/install/lib/lua/5.1 -L/Users/abhi/torch/install/lib -o libvideo_decoder.so -lavutil -lavformat -lavcodec -lswscale -lTH -lluajit -lluaT /usr/local/lib/libjpeg.dylib\r\nUndefined symbols for architecture x86_64:\r\n  \"_avcodec_alloc_frame\", referenced from:\r\n      _video_decoder_init in video_decoder.o\r\n      _video_decoder_rgb in video_decoder.o\r\n      _encoderopen in video_decoder.o\r\n  \"_avcodec_free_frame\", referenced from:\r\n      _encoderclose in video_decoder.o\r\n  \"_avcodec_get_frame_defaults\", referenced from:\r\n      _video_decoder_batch_resized in video_decoder.o\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake: *** [libvideo_decoder.so] Error 1\r\n```"},"comment":{"url":"https://api.github.com/repos/e-lab/torch-toolbox/issues/comments/242562291","html_url":"https://github.com/e-lab/torch-toolbox/issues/12#issuecomment-242562291","issue_url":"https://api.github.com/repos/e-lab/torch-toolbox/issues/12","id":242562291,"user":{"login":"mvitez","id":7524531,"avatar_url":"https://avatars.githubusercontent.com/u/7524531?v=3","gravatar_id":"","url":"https://api.github.com/users/mvitez","html_url":"https://github.com/mvitez","followers_url":"https://api.github.com/users/mvitez/followers","following_url":"https://api.github.com/users/mvitez/following{/other_user}","gists_url":"https://api.github.com/users/mvitez/gists{/gist_id}","starred_url":"https://api.github.com/users/mvitez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvitez/subscriptions","organizations_url":"https://api.github.com/users/mvitez/orgs","repos_url":"https://api.github.com/users/mvitez/repos","events_url":"https://api.github.com/users/mvitez/events{/privacy}","received_events_url":"https://api.github.com/users/mvitez/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T22:21:59Z","updated_at":"2016-08-25T22:21:59Z","body":"See this: https://github.com/teradeep/demo-apps/issues/3, I can see your comments there."}}
{"actor":{"display_login":"mvitez"}}