Browse Source

Update README.md

Volodymyr Tkach 2 years ago
parent
commit
882e48f1f1
1 changed files with 9 additions and 3 deletions
  1. 9 3
      README.md

+ 9 - 3
README.md

@@ -1,7 +1,8 @@
 # notes-ffmpeg-waveforms
 
 ## Installing ffmpeg on Linux Debian
-```
+
+```sh
 apt-get install ffmpeg
 
 # After this operation, 300 MB of additional disk space will be used.
@@ -9,23 +10,28 @@ apt-get install ffmpeg
 ```
 
 ## Create red waves from audio file
-```
+
+```sh
 ffmpeg -i ./testdata/test.wav \
 	-filter_complex "showwavespic=s=898x120:colors=red" \
 	-frames:v 1 ./testdata/test_red.png
 ```
+
 ![Example red](https://raw.githubusercontent.com/vladimirok5959/notes-ffmpeg-waveforms/master/testdata/test_red.png)
 
 ## Create green waves from audio file
-```
+
+```sh
 ffmpeg -i ./testdata/test.wav \
 	-filter_complex "showwavespic=s=898x120:colors=green" \
 	-frames:v 1 ./testdata/test_green.png
 ```
+
 ![Example green](https://raw.githubusercontent.com/vladimirok5959/notes-ffmpeg-waveforms/master/testdata/test_green.png)
 
 This can be useful for some audio service (website or application) to get waveform image from audio file. For example for playback progress bar, [soundcloud.com](https://soundcloud.com) is the best example.
 
 ## Useful links
+
 * [soundcloud.com](https://soundcloud.com)
 * [Waveform – FFmpeg](https://trac.ffmpeg.org/wiki/Waveform)