ljubobratovicrelja / ffmpeg-d

D port of the FFmpeg C headers
16 stars 9 forks source link

Updated source for v4.4. #15

Closed ljubobratovicrelja closed 2 years ago

ljubobratovicrelja commented 2 years ago

dstep convert, done by Ferhat Kurtulmuş.

This branch is to be merged into master, but not deleted, to be kept for future backwards compatibility.

ljubobratovicrelja commented 2 years ago

Thanks so much for your inputs @aferust! I spent a lot of time during the weekend to set up dev environment, and remembered what hell it is with D - on Windows, compiling C libraries like FFmpeg is horrible, on macos lldb is still not working properly out of the box, and for gdb you have to set up some certificates, which completely destroyed all my willpower to do this. I'll probably end up with setting up ubuntu machine, since I remember everything functioning 100% there back in the day. Any hint in this regard is more then welcome, it doesn't really seem D has moved an inch since I left (3-4 years ago) in these things, which is quite depressing and rather embarrassing for them.

Anyhow, examples are failing for me, but I didn't manage to set up the debugger, so I am yet to understand why. Until that remains the issue, we shouldn't merge this. If by some chance this is something you are willing to look into, please do. In either case, I am continuing with setting up my environment asap, so I can do stuff properly in the future.

aferust commented 2 years ago

Dear Relja, I am writing on my mobile phone. I will send you ffmpeg compiled libs (win10) when I get back to my office. I need your email.

ljubobratovicrelja commented 2 years ago

Dear Relja, I am writing on my mobile phone. I will send you ffmpeg compiled libs (win10) when I get back to my office. I need your email.

That would be of huge help! Thanks! email: ljubobratovic.relja@gmail.com

ljubobratovicrelja commented 2 years ago

@aferust the encode_example seems to be working, however we do get a low of deprecation warnings (even errors crashing the program if we don't enable experimental features).

These are the warnings I'm seeing though honestly, I am feeling like Alice in Wonderland trying to resolve those. Do you have more understanding of those, and of ffmpeg API to know what to change? image

Also, I would be OK to leave this example unattended like this, and switch our focus to DCV videoio module as soon as possible. So if you are OK, I would merge this as such, and then if there's errors we encounter on DCV end, we can make another PR to fix it here at the source.