Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MP4 synthesis failed. Please help me find out where I made a mistake #84

Open
f1748x opened this issue Mar 27, 2023 · 0 comments
Open

Comments

@f1748x
Copy link

f1748x commented Mar 27, 2023

ffmpeg -f image2 -loop 1 -r 15 -i ./1.png -i ./1.mp3 -pix_fmt yuv420p -s 320x240 -t 15 -vcodec libx264 w.mp4 -y

func ComplexFilterExample(testInputFile, music, testOutputFile string) *ffmpeg.Stream {
// ffmpeg.
png := ffmpeg.Input(testInputFile, ffmpeg.KwArgs{
"r": "15",
"loop": 1,
"f": "image2",
})
mp3 := ffmpeg.Input(music)
return ffmpeg.Concat([]*ffmpeg.Stream{
png,
mp3,
}).
Output(testOutputFile, ffmpeg.KwArgs{
"pix_fmt": "yuv420p",
"vcodec": "libx264",
"s": "320x240",
"t": "15",
}).
OverWriteOutput()
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant