From 0ee637c101a2fe7846e5dc8d32512f072c269ffe Mon Sep 17 00:00:00 2001 From: Star Brilliant Date: Fri, 20 Sep 2013 17:06:28 +0800 Subject: [PATCH] Format README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fd1a2f4..98b7323 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,9 @@ Then, execute `danmaku2ass`. You can see further instructions below. Example usage ------------- -`./danmaku2ass -o foo.ass -s 1920x1080 -fn "MS PGothic" -fs 48 -a 0.8 -l 5 foo.xml` +```sh +./danmaku2ass -o foo.ass -s 1920x1080 -fn "MS PGothic" -fs 48 -a 0.8 -l 5 foo.xml +``` Name the output file with same basename but different extension (.ass) as the video. Put them into the same directory and most media players will automatically load them. @@ -67,7 +69,9 @@ Most ASS renderers render ASS subtitles at the same resolution as the video. Thi Use `ffmpeg`: -`ffmpeg -i foo.flv -vf ass=foo.ass -vcodec libx264 -acodec copy foo-with-danmaku.flv` +```sh +ffmpeg -i foo.flv -vf ass=foo.ass -vcodec libx264 -acodec copy foo-with-danmaku.flv +``` Change the parameters as you like.