Skip to content

Commit 3665bba

Browse files
committed
Update README.md
1 parent 2b027ec commit 3665bba

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
## mpeg
22
[![Status](https://github.com/gen2brain/mpeg/actions/workflows/test.yml/badge.svg)](https://github.com/gen2brain/mpeg/actions)
33
[![Go Reference](https://pkg.go.dev/badge/github.com/gen2brain/mpeg.svg)](https://pkg.go.dev/github.com/gen2brain/mpeg)
4-
[![Go Report Card](https://goreportcard.com/badge/github.com/gen2brain/mpeg?branch=main)](https://goreportcard.com/report/github.com/gen2brain/mpeg)
54

65
`MPEG-1` Video decoder, `MP2` Audio decoder and `MPEG-PS` Demuxer in pure Go.
76

@@ -36,6 +35,15 @@ ffmpeg -i input.mp4 -c:v mpeg1video -q:v 0 -c:a mp2 -format mpeg output.mpg
3635
You can use `-b:v` to set a fixed bitrate instead; e.g. `-b:v 2000k` for 2000 kbit/s.
3736
Refer to the [FFmpeg documentation](https://ffmpeg.org/ffmpeg.html#Options) for more details.
3837

38+
If you have FFmpeg compiled with `libtwolame` (An optimised MP2 encoder), you can use `-c:a libtwolame -b:a 224k` instead of `-c:a mp2`.
39+
40+
If you just want to quickly test the library, try this file:
41+
[https://gen2brain.github.io/mpeg/sintel.mpg](https://gen2brain.github.io/mpeg/sintel.mpg)
42+
43+
### Build tags
44+
45+
* `noasm` - do not use assembly optimizations
46+
3947
### Credits
4048

4149
* [pl_mpeg](https://github.com/phoboslab/pl_mpeg) by Dominic Szablewski.

0 commit comments

Comments
 (0)