tag:blogger.com,1999:blog-6653558328125881331.post8984158749527145277..comments2024-03-05T00:00:34.263-05:00Comments on Ben Collins: Solo6x10: Recording from videoBen Collinshttp://www.blogger.com/profile/16641016264284463086noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6653558328125881331.post-71859609519367068132011-06-23T11:09:14.278-04:002011-06-23T11:09:14.278-04:00I'm getting this when I try to compile:
# gcc...I'm getting this when I try to compile:<br /><br /># gcc -lavformat bc-record.c -o bc-record<br />bc-record.c: In function ‘av_prepare’:<br />bc-record.c:145:11: warning: assignment makes pointer from integer without a cast<br />bc-record.c:166:33: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function)<br />bc-record.c:166:33: note: each undeclared identifier is reported only once for each function it appears in<br />bc-record.c:178:3: warning: ‘av_set_parameters’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1400)<br />bc-record.c:190:3: warning: ‘url_fopen’ is deprecated (declared at /usr/local/include/libavformat/avio.h:279)<br />bc-record.c:193:3: warning: ‘av_write_header’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1458)<br />bc-record.c: In function ‘video_out’:<br />bc-record.c:204:18: error: ‘PKT_FLAG_KEY’ undeclared (first use in this function)Hackeronhttps://www.blogger.com/profile/02863748225203145227noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-57258708454997805492010-09-01T10:55:16.167-04:002010-09-01T10:55:16.167-04:00I've updated the program. There was one mistak...I've updated the program. There was one mistake where I was setting the av packet size to the wrong value. It needed to use vb->bytesused.<br /><br />Anyone using this, make sure to get the updated copy of the source.<br /><br />Thanks!Ben Collinshttps://www.blogger.com/profile/16641016264284463086noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-75507687118616232242010-08-25T17:20:10.036-04:002010-08-25T17:20:10.036-04:00your intelect on this stuff allways impresses me. ...your intelect on this stuff allways impresses me. I havnt a clue what ur talking about.Darryl Cromernoreply@blogger.com