Error when downloading #32

Open
opened 2025-06-20 23:31:43 +00:00 by ArkhamKnight · 3 comments

Tried to download videos. Error below keeps coming up. Even when i try to download a single post. Any fix?

Exception caught: Object reference not set to an instance of an object.

StackTrace: at OF_DL.Helpers.DownloadHelper.OnError(Object sender, ConversionErrorEventArgs e)
at FFmpeg.NET.Engine.OnError(ConversionErrorEventArgs e)
at FFmpeg.NET.FFmpegProcess.OnConversionError(ConversionErrorEventArgs eventArgs)
at FFmpeg.NET.FFmpegProcess.OnException(List`1 messages, FFmpegParameters parameters, Int32 exitCode, Exception caughtException)
at FFmpeg.NET.FFmpegProcess.ExecuteAsync(ProcessStartInfo startInfo, FFmpegParameters parameters, CancellationToken cancellationToken)
at FFmpeg.NET.FFmpegProcess.ExecuteAsync(CancellationToken cancellationToken)
at FFmpeg.NET.Engine.ExecuteAsync(FFmpegParameters parameters, CancellationToken cancellationToken)
at FFmpeg.NET.Engine.ExecuteAsync(String arguments, CancellationToken cancellationToken)
at OF_DL.Helpers.DownloadHelper.DownloadDrmMedia(String user_agent, String policy, String signature, String kvp, String sess, Stri fied, Int64 media_id, String api_type, ProgressTask task, String custom

Tried to download videos. Error below keeps coming up. Even when i try to download a single post. Any fix? Exception caught: Object reference not set to an instance of an object. StackTrace: at OF_DL.Helpers.DownloadHelper.OnError(Object sender, ConversionErrorEventArgs e) at FFmpeg.NET.Engine.OnError(ConversionErrorEventArgs e) at FFmpeg.NET.FFmpegProcess.OnConversionError(ConversionErrorEventArgs eventArgs) at FFmpeg.NET.FFmpegProcess.OnException(List`1 messages, FFmpegParameters parameters, Int32 exitCode, Exception caughtException) at FFmpeg.NET.FFmpegProcess.ExecuteAsync(ProcessStartInfo startInfo, FFmpegParameters parameters, CancellationToken cancellationToken) at FFmpeg.NET.FFmpegProcess.ExecuteAsync(CancellationToken cancellationToken) at FFmpeg.NET.Engine.ExecuteAsync(FFmpegParameters parameters, CancellationToken cancellationToken) at FFmpeg.NET.Engine.ExecuteAsync(String arguments, CancellationToken cancellationToken) at OF_DL.Helpers.DownloadHelper.DownloadDrmMedia(String user_agent, String policy, String signature, String kvp, String sess, Stri fied, Int64 media_id, String api_type, ProgressTask task, String custom

I was just getting the same thing. Do you have this yellow message being printed on startup?
device_client_id_blob and/or device_private_key missing, https://ofdl.tools/ or https://cdrm-project.com/ will be used instead for DRM protected videos
If so, try following the CDM steps here. I just did this (used the Discord bot to generate my keys) and the download error appears to have gone away.

I was just getting the same thing. Do you have this yellow message being printed on startup? `device_client_id_blob and/or device_private_key missing, https://ofdl.tools/ or https://cdrm-project.com/ will be used instead for DRM protected videos` If so, try following the [CDM steps here]([url](https://git.ofdl.tools/sim0n00ps/OF-DL/src/commit/37fae9185a7e78155705c43e3039bdbfd4e69c65/docs/config/cdm.md)). I just did this (used the Discord bot to generate my keys) and the download error appears to have gone away.

I can also confirm using the discord key fixed this issue

I can also confirm using the discord key fixed this issue

I fixed it for me by making sure the FFmpegPath variable in the config.conf file read FFmpegPath = " " which apparently forces OF-DL to look for it in the working directory - it must have been using another ffmpeg in my path (I have several versions for different apps).

I fixed it for me by making sure the FFmpegPath variable in the config.conf file read `FFmpegPath = " "` which apparently forces OF-DL to look for it in the working directory - it must have been using another ffmpeg in my path (I have several versions for different apps).
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sim0n00ps/OF-DL#32
No description provided.