{"id":5191,"date":"2023-10-23T03:28:49","date_gmt":"2023-10-22T18:28:49","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=5191"},"modified":"2023-10-23T03:28:49","modified_gmt":"2023-10-22T18:28:49","slug":"2023-10-22","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2023-10-22\/","title":{"rendered":"2023\/10\/22(\u65e5)"},"content":{"rendered":"\n<p>FFmpeg api\u306b\u3088\u308bRTMP\u6620\u50cf\u9001\u4fe1\u3092\u8272\u3005\u5b9f\u9a13\u3057\u3066\u307f\u3066\u3044\u308b\u3002Windows\u74b0\u5883\u3060\u3068\u4ee5\u4e0b\u306e\u3053\u3068\u3092\u3059\u308b\u3060\u3051\u3067\u975e\u5e38\u306b\u7c21\u5358\u306b\u3001\u52d5\u753b\u51fa\u529b\u3068\u540c\u3058\u8981\u9818\u3067\u6210\u529f\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u51fa\u529b\u5148\u3092<code>rtmp:\/\/<\/code>\u5f62\u5f0f\u306eURL\u3068\u3059\u308b<\/li>\n\n\n\n<li>AVFormatContext\u306e\u521d\u671f\u5316\u6642\u3001avformat_alloc_output_context2\u306e\u7b2c3\u5f15\u6570\u306b<code>\"flv\"<\/code>\u5f62\u5f0f\u3092\u6307\u5b9a<\/li>\n\n\n\n<li>1\u30d5\u30ec\u30fc\u30e0\u9001\u308b\u6bce\u306b\u9069\u5b9c\u6b21\u306e\u30d5\u30ec\u30fc\u30e0\u3092\u9001\u308b\u306e\u306b\u9069\u5f53\u306a\u6642\u9593\u307e\u3067\u5f85\u6a5f<\/li>\n<\/ul>\n\n\n\n<p>\u305f\u3060\u3001\u540c\u3058\u30b3\u30fc\u30c9\u3092Docker\u74b0\u5883\u306b\u6301\u3063\u3066\u3044\u3063\u305f\u3089\u5168\u7136\u52d5\u4f5c\u3057\u306a\u3044\u3002\u304a\u305d\u3089\u304fLinux\u74b0\u5883\u3060\u3068\u52dd\u624b\u304c\u9055\u3046\u3068\u3044\u3046\u3053\u3068\u306e\u3088\u3046\u306b\u601d\u308f\u308c\u308b\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u3057\u3070\u3089\u304f\u52d5\u4f5c\u3057\u305f\u306e\u3061\u306b<code>av_interleaved_write_frame()<\/code>\u304c<code>End of file<\/code>\u30a8\u30e9\u30fc\u3092\u5410\u3044\u3066\u505c\u6b62\u3002\u691c\u7d22\u3057\u305f\u3068\u3053\u308dlibrtmp\u306e\u554f\u984c\u3067\u3042\u308a\u3001librtmp\u3092\u7121\u52b9\u5316\u3059\u308c\u3070\u3088\u3044\u3068\u306e\u3053\u3068\u3002(<a href=\"https:\/\/stackoverflow.com\/questions\/63670141\/end-of-file-on-19-min-from-start\">\u53c2\u8003<\/a>)<\/li>\n\n\n\n<li>librtmp\u3092\u7121\u52b9\u5316\u3057\u305f\u3068\u3053\u308d\u3001<code>avcodec_open2<\/code>\u3067<code>Invalid argument<\/code>\u30a8\u30e9\u30fc\u3002\u3069\u3046\u3084\u3089\u4f7f\u308f\u308c\u308b\u30a8\u30f3\u30b3\u30fc\u30c0\u304c<code>libx264<\/code>\u304b\u3089<code>h264_v4l2m2m<\/code>\u306b\u5909\u308f\u3063\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u308b\u3002<\/li>\n\n\n\n<li>\u30b3\u30fc\u30c7\u30c3\u30af\u304b\u3089\u9069\u5408\u3059\u308b\u30a8\u30f3\u30b3\u30fc\u30c0\u3092\u52dd\u624b\u306b\u9078\u3076<code>avcodec_find_encoder<\/code>\u3067\u306f\u306a\u304f\u660e\u793a\u7684\u306b\u7279\u5b9a\u306e\u30a8\u30f3\u30b3\u30fc\u30c0\u3092\u6307\u5b9a\u3067\u304d\u308b<code>avcodec_find_encoder_by_name<\/code>\u3092\u5229\u7528\u3057\u305f\u3068\u3053\u308d\u3001<code>\"libx264\"<\/code>\u306e\u6307\u5b9a\u3067\u30a8\u30e9\u30fc\u3002<\/li>\n\n\n\n<li><code>av_codec_iterate<\/code>\u3067\u30b3\u30fc\u30c7\u30c3\u30af\u4e00\u89a7\u3092\u8868\u793a\u3057\u305f\u3068\u3053\u308d\u3001\u3069\u3046\u3084\u3089librtmp\u3092\u7121\u52b9\u5316\u3057\u305f\u7d50\u679clibx264\u3082\u7121\u52b9\u5316\u3055\u308c\u3066\u3044\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u3053\u3067\u3001\u305d\u3082\u305d\u3082\u30a8\u30f3\u30b3\u30fc\u30c0\u304c\u3069\u3046\u306a\u3063\u3066\u3044\u308b\u306e\u304b\u3092\u6574\u7406\u3002\u4f7f\u3044\u305f\u3044\u30b3\u30fc\u30c7\u30c3\u30af\u3068\u3057\u3066\u306fh264\u3060\u304c\u3001\u305d\u308c\u306b\u5bfe\u5fdc\u3057\u305f\u30a8\u30f3\u30b3\u30fc\u30c0\u304c\u3044\u304f\u3064\u3082\u3042\u308b\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>h264_mf: Windows\u3067\u4f55\u3082\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u306b\u9078\u3070\u308c\u308b\u6a21\u69d8\u3002\u5feb\u8abf\u306b\u52d5\u304f\u3002<\/li>\n\n\n\n<li>libx264: vcpkg\u3067[x264]\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408(=configure\u3067&#8211;enable-libx264\u3057\u305f\u5834\u5408)\u306b\u9078\u3070\u308c\u308b\u3002Docker\u74b0\u5883\u3067\u9014\u4e2d\u3067\u52d5\u304b\u306a\u304f\u306a\u308b\u3002\u9a5a\u3044\u305f\u3053\u3068\u306bWindows\u74b0\u5883\u3067\u3082\u52d5\u304b\u306a\u304f\u306a\u308b\u3002<\/li>\n\n\n\n<li><code>h264_v4l2m2m<\/code>: Docker\u74b0\u5883\u3067libx264\u304c\u4f7f\u3048\u306a\u3044\u5834\u5408\u306b\u9078\u3070\u308c\u308b\u6a21\u69d8\u3002<code>avcodec_open2<\/code>\u3067\u6b7b\u306c\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u5b9f\u306fh264_mf\u4ee5\u5916\u306e\u30a8\u30f3\u30b3\u30fc\u30c0\u3067\u6b63\u5e38\u52d5\u4f5c\u304c\u898b\u308c\u3066\u3044\u306a\u3044\u3002libx264\u306b\u4efb\u305b\u3066\u304a\u3051\u3070\u5b89\u5fc3\u3058\u3083\u306a\u304b\u3063\u305f\u306e\u304b\u3088\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FFmpeg api\u306b\u3088\u308bRTMP\u6620\u50cf\u9001\u4fe1\u3092\u8272\u3005\u5b9f\u9a13\u3057\u3066\u307f\u3066\u3044\u308b\u3002Windows\u74b0\u5883\u3060\u3068\u4ee5\u4e0b\u306e\u3053\u3068\u3092\u3059\u308b\u3060\u3051\u3067\u975e\u5e38\u306b\u7c21\u5358\u306b\u3001\u52d5\u753b\u51fa\u529b\u3068\u540c\u3058\u8981\u9818\u3067\u6210\u529f\u3057\u305f\u3002 \u305f\u3060\u3001\u540c\u3058\u30b3\u30fc\u30c9\u3092Docker\u74b0\u5883\u306b\u6301\u3063\u3066\u3044\u3063\u305f\u3089\u5168\u7136\u52d5\u4f5c\u3057\u306a\u3044 &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2023-10-22\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2023\/10\/22(\u65e5)&#8221;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5191","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/5191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/comments?post=5191"}],"version-history":[{"count":2,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/5191\/revisions"}],"predecessor-version":[{"id":5193,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/5191\/revisions\/5193"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=5191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=5191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=5191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}