mirror of
https://github.com/u2takey/ffmpeg-go.git
synced 2025-10-05 16:06:52 +08:00
add example showProgress
This commit is contained in:
@@ -10,7 +10,7 @@ func TestExampleStream(t *testing.T) {
|
||||
ExampleStream("./sample_data/in1.mp4", "./sample_data/out1.mp4", false)
|
||||
}
|
||||
|
||||
func TestExampleReadFramAsJpeg(t *testing.T) {
|
||||
func TestExampleReadFrameAsJpeg(t *testing.T) {
|
||||
reader := ExampleReadFrameAsJpeg("./sample_data/in1.mp4", 5)
|
||||
img, err := imaging.Decode(reader)
|
||||
if err != nil {
|
||||
@@ -21,3 +21,7 @@ func TestExampleReadFramAsJpeg(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestExampleShowProgess(t *testing.T) {
|
||||
ExampleShowProgess("./sample_data/in1.mp4", "./sample_data/out2.mp4")
|
||||
}
|
||||
|
Reference in New Issue
Block a user