cBlog

Tips for you.

FFmpegで出力するとカクカクする動画の対処法

スポンサーリンク
※当ブログのAmazon、iTunes、サウンドハウス等のリンクはアフィリエイトを利用しています。

ゆっくりと進む矢印のキャラクター

FFmpegでカクカクするm3u8ファイルがあった。igndtsフラグをセットすることで解決した。

 

-fflags +igndts

DTSを無視するオプション-fflags +igndtsを指定する。

ffmpeg -fflags +igndts -i in.m3u8 -c copy out.mp4

 

+(プラス)記号の意味

ほかのフラグは手を加えずに、指定したフラグのみトグルすることを意味するらしい。「+」を付けないと、そのフラグ以外はデフォルト値にリセットされてしまうとか。

stackoverflow.com

The + sign indicates that ffmpeg should set the specified value in addition to any values that the MOV/MP4 muxer will automatically set during the course of executing the command. Omitting it means ffmpeg will reset the flags to their default values, and only toggle the state of faststart. Most MP4s generation doesn't involve the other flags so usually it doesn't make a difference.

 

参考

video.stackexchange.com