- m3u8 parser - segments download - video-audio merge
This commit is contained in:
parent
330cc39583
commit
c8d0666d1d
5 changed files with 254 additions and 174 deletions
|
@ -18,7 +18,6 @@ func MergeVideoWithAudio(
|
|||
if err != nil {
|
||||
return fmt.Errorf("failed to rename file: %w", err)
|
||||
}
|
||||
|
||||
defer os.Remove(tempFileName)
|
||||
defer os.Remove(audioFile)
|
||||
|
||||
|
@ -39,6 +38,7 @@ func MergeVideoWithAudio(
|
|||
Run()
|
||||
|
||||
if err != nil {
|
||||
os.Remove(outputFile)
|
||||
return fmt.Errorf("failed to merge files: %w", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue