u2takey / ffmpeg-go

golang binding for ffmpeg
Apache License 2.0
1.66k stars 167 forks source link

GlobalArgs Not effective #85

Closed iwanlebron closed 1 year ago

iwanlebron commented 1 year ago

The generated command is as follows

ffmpeg -i concat.txt -codec copy test.mp4 -f concat -safe 0

the error is : concat.txt Invalid data found when processing input

iwanlebron commented 1 year ago

Putting global parameters to the end will result in parameter invalidation

iwanlebron commented 1 year ago

Solution : args = append(_getGlobalArgs(n), args...)