question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to finalize video (code 1)

See original GitHub issue

Checklist

Edition

Command Line Interface

Describe your issue here

I’m on MacOS Ventura 13.2.1.

[STATUS] - Fetching Video Info [1/4]
[STATUS] - Downloading 100% [2/4]
[STATUS] - Combining Parts 100% [3/4]
[STATUS] - Finalizing Video 0% [4/4]
[LOG] - Failed to finalize video (code 1), retrying in 10 seconds...

[LOG] - Failed to finalize video (code 1), retrying in 10 seconds...
Unhandled exception. System.AggregateException: One or more errors occurred. (Failed to finalize video. The download cache has not been cleared and can be found at /var/folders/xc/vnn2dtr95kl2x744xj_r2vt80000gn/T/TwitchDownloader/1786647944_1681822179812 along with a log file.)
 ---> System.Exception: Failed to finalize video. The download cache has not been cleared and can be found at /var/folders/xc/vnn2dtr95kl2x744xj_r2vt80000gn/T/TwitchDownloader/1786647944_1681822179812 along with a log file.
   at TwitchDownloaderCore.VideoDownloader.DownloadAsync(IProgress`1 progress, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean )
   at System.Threading.Tasks.Task.Wait(Int32 , CancellationToken )
   at System.Threading.Tasks.Task.Wait()
   at TwitchDownloaderCLI.Modes.DownloadVideo.Download(VideoDownloadArgs inputOptions)
   at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
   at TwitchDownloaderCLI.Program.Main(String[] args)
zsh: abort      ./TwitchDownloaderCLI videodownload -u https://www.twitch.tv/videos/178664794

Issue Analytics

  • State:open
  • Created 5 months ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
quiet23commented, Apr 27, 2023

Your specific issue is that you need to wrap output path in single or double quotes because there are spaces. TwitchDownloaderCLI videodownload -u 1804998252 -o "Ande vs Hammer on CPQ Bullet 2023.mp4" -b 3718 -e 3816 -t 1

I know, thank you. I mentioned that in the first sentence. It worked.

0reactions
ScrubNcommented, Apr 27, 2023

In my case it was indeed missing quotes in -o parameter: TwitchDownloaderCLI videodownload -u 1804998252 -o Ande vs Hammer on CPQ Bullet 2023.mp4 -b 3718 -e 3816 -t 1 ffmpegLog.txt Linux Mint 21.1

Your specific issue is that you need to wrap output path in single or double quotes because there are spaces. TwitchDownloaderCLI videodownload -u 1804998252 -o "Ande vs Hammer on CPQ Bullet 2023.mp4" -b 3718 -e 3816 -t 1

But I think it would be nice if TwitchDownloader had processed the exception and given meaningful error message.

That might be a good idea. I might look into that later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

19.01.24 cant export any video Failed with exit code 1 - Bug
Hello looking for help somehow my pc can't export any videos … i was looking for solutions but didn't found any that would...
Read more >
iMovie error 2191 - Apple Community
iMovie error 2191. Trying to export and finalize a 6 minute clip on iMovie but this error keeps coming up. Can anyone help?!...
Read more >
Failed to finalize LSBundleWrapper…
Suddenly I started to get: "Failed to finalize LSBundleWrapper mutator instance for ". I deleted the derived data and did "clean folder" but...
Read more >
Gstreamer: Unable to finalize video recorded in parallel ...
I've successfully written to properly finalized video files before, but never in conjunction with gst-rtsp-streamer. I suspect the issue lies ...
Read more >
junit.framework.AssertionFailedError: Expectation failure ...
This is really strange. It it expecting finalize . It means that an expectation was set for it. But I don't see an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found