Error when downloading #32

Closed
opened 2025-06-20 23:31:43 +00:00 by ArkhamKnight · 8 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).

I got the same problem, just downloaded the keys, and now i don't get any errors, but the video file I download is just black but with sound, so I guess i got a problem with the DRM, any idea on what that to do ?

I got the same problem, just downloaded the keys, and now i don't get any errors, but the video file I download is just black but with sound, so I guess i got a problem with the DRM, any idea on what that to do ?

I got the same problem, just downloaded the keys, and now i don't get any errors, but the video file I download is just black but with sound, so I guess i got a problem with the DRM, any idea on what that to do ?
Nevermind I had downloaded a newer version of FFMpeg it diden't like that, so it was my own fault :)

> I got the same problem, just downloaded the keys, and now i don't get any errors, but the video file I download is just black but with sound, so I guess i got a problem with the DRM, any idea on what that to do ? Nevermind I had downloaded a newer version of FFMpeg it diden't like that, so it was my own fault :)

When downloading I have black video with sound ? Any solutions ?

When downloading I have black video with sound ? Any solutions ?
Collaborator

When downloading I have black video with sound ? Any solutions ?

Are you using the ffmpeg.exe that was included with OF-DL (as opposed to downloading it yourself)? If not, use the ffmpeg.exe included in the OF-DL .zip file.

> When downloading I have black video with sound ? Any solutions ? Are you using the `ffmpeg.exe` that was included with OF-DL (as opposed to downloading it yourself)? If not, use the `ffmpeg.exe` included in the OF-DL .zip file.

Same issue, not sure what i need to do with the CDM procedure mentioned, @heisachar could you walk use through it?
[EDIT]

Go onto the discord server for OF-DL, find the key gen tool, under support I found a post that talked about it and found the "button" to create keys. testing them now... worked great!

Same issue, not sure what i need to do with the CDM procedure mentioned, @heisachar could you walk use through it? [EDIT] Go onto the discord server for OF-DL, find the key gen tool, under support I found a post that talked about it and found the "button" to create keys. testing them now... worked great!
Sign in to join this conversation.
8 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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