Draw subtitles on top of input video using the libass library.
To enable compilation of this filter you need to configure FFmpeg with --enable-libass. This filter also requires a build with libavcodec and libavformat to convert the passed subtitles file to ASS (Advanced Substation Alpha) subtitles format.
The filter accepts the following options:
‘filename, f’
Set the filename of the subtitle file to read. It must be specified.
‘original_size’
Specify the size of the original video, the video for which the ASS file was composed. For the syntax of this option, check the "Video size" section in the ffmpeg-utils manual. Due to a misdesign in ASS aspect ratio arithmetic, this is necessary to correctly scale the fonts if the aspect ratio has been changed.
‘charenc’
Set subtitles input character encoding. subtitles filter only. Only useful if not UTF-8.
If the first key is not specified, it is assumed that the first value specifies the ‘filename’.
For example, to render the file ‘sub.srt’ on top of the input video, use the command:
빠른 설정-영상/자막 에서 영상에 자막 입히기를 체크하면
shanasubtitle 필터부분이 자동으로 `1'로 바뀝니다..
이외에 영상에 자막입히는 필터를 더 자세히 알고 있을 필요가 있는지는
모르겠네요(영상에 자막을 입혀서 인코딩 하지 않는 편이라)
필터창에 직접 입력하지 않고 편하게 사용하기 위해 만든 프로그램인데
굳이 일일이 변수를 넣어줄 필요없죠..
subtitles필터에 관한 내용입니다..
Draw subtitles on top of input video using the libass library.
To enable compilation of this filter you need to configure FFmpeg with
--enable-libass
. This filter also requires a build with libavcodec and libavformat to convert the passed subtitles file to ASS (Advanced Substation Alpha) subtitles format.The filter accepts the following options:
Set the filename of the subtitle file to read. It must be specified.
Specify the size of the original video, the video for which the ASS file was composed. For the syntax of this option, check the "Video size" section in the ffmpeg-utils manual. Due to a misdesign in ASS aspect ratio arithmetic, this is necessary to correctly scale the fonts if the aspect ratio has been changed.
Set subtitles input character encoding.
subtitles
filter only. Only useful if not UTF-8.If the first key is not specified, it is assumed that the first value specifies the ‘filename’.
For example, to render the file ‘sub.srt’ on top of the input video, use the command:
which is equivalent to: