ç°å¢
- ffmpeg 4.3
ãããããã¨
ã¿ã¤ãã«ã§å®çµãã¦ããããWEBé ä¿¡ãã¦ããåç»ã«ã¯ã¹ããªã¼ãã³ã°åçã§ããããã«HLSå½¢å¼ã§é ä¿¡ããã¦ããã
ããããã¯Chromeã®ãããã¯ã¼ã¯ã¿ãçã§ç£è¦ãã¦ãm3u8ãã¡ã¤ã«ããåºã¦ããªããããã¯åç»æ¬ä½ã§ã¯ãªãããã ã®URLãç¾ åããã¦ããããã°ãã¬ã¤ãªã¹ãã
ãããèªåèªèãã¦ãã¦ã³ãã¼ãã¾ã§ãã£ã¦ãããChromeæ¡å¼µæ©è½ãããã
ä»åã¯ããã§ãDLã§ããªããæå·åãããHLSå½¢å¼ã®åç»ããã¦ã³ãã¼ããããã
æå·åããã¦ãããã®ç¢ºèªæ¹æ³
対象ã®m3u8ãã¡ã¤ã«ãç´æ¥ããã¹ãã¨ãã£ã¿ã§éãã¦ã¿ãã¨ã以ä¸ã®ããã« EXT-X-KEY:METHOD ã®è¨è¼ãããã°æå·åããã¦ããã¨è¨ãããã¤ã¾ãkeyããªããã°åç»ãåçãããã¨ã¯ã§ããªãã
#EXTM3U #EXT-X-VERSION:3 #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-ALLOW-CACHE:YES #EXT-X-TARGETDURATION:13 #EXT-X-KEY:METHOD=AES-128,URI="mysec.key",IV=0xbd8a63ff8d314a2e5a13045b61cdsssa #EXTINF:12.078733,
ãã¦ã³ãã¼ãããã³ãã³ã
é ¼ããã®ã¯ffmpegæ§ã®ã¿
ffmpeg -i https://example.com/playlist.m3u8 -c copy -bsf:a aac_adtstoasc -movflags faststart output.mp4
ã£ã¦ã ã
ãã¤ã³ã㯠-bsf:a aac_adtstoasc
㧠bsfã¯bitstream filtersã®ç¥ãå¾ãã®aã¯audioãã¤ã¾ãé³å£°ãæå³ãã¦ãããã§é³å£°ã§ããAACãadtsããããæã¤å ´åã¯æ示çã«aac_adtstoascãæå®ããªãããããªããããã
ãããbitstream filterã£ã¦ãªãã ãã£ã¦è©±ã ããffmpegã®å ¬å¼ããã¥ã¡ã³ããããã
A bitstream filter operates on the encoded stream data, and performs bitstream level modifications without performing decoding.
(ãããã¹ããªã¼ã ãã£ã«ã¿ã¯ã符å·åãããã¹ããªã¼ã ãã¼ã¿ã«å¯¾ãã¦åä½ãããã³ã¼ããè¡ããã«ãããã¹ããªã¼ã ã¬ãã«ã®ä¿®æ£ãè¡ãã)
ãµãµã£ãããããã