ljubobratovicrelja / ffmpeg-d Goto Github PK
View Code? Open in Web Editor NEWD port of the FFmpeg C headers
D port of the FFmpeg C headers
ld: unknown option: -pthread
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1
That's what happens on my MBA 2013 running OS X 10.11.2.
Here's my LD version.
ld -v
@(#)PROGRAM:ld PROJECT:ld64-253.9
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS)
LTO support using: Apple LLVM 7.0.2 (clang-700.1.81)
I did some research. Apparently pthread is not supported everywhere. It is hard to find info on. Perhaps that is true for OS X too?
This only happens when depending on ffmpeg-d.
Hey, I've started work on porting the headers over from 3.0.2 and I was just wondering what should happen with the version of this project. I don’t really was to push a breaking change to master right now for obvious reasons.
I think we should be matching the major.minor but have our own patch from ffmpeg so users know what to use and can set the correct version in dub.
Also it would be nice to have separate branches in this repo for each version so we can add changes to older releases. (2.8 will probably hang around for a while)
So what I propose is matching the main ffmpeg repo by adding these branches added to this repo:
release/2.8
release/3.0
release/3.1
And then in the readme for each branch state what version it applies to and the fact that other branches are available with a code snipit on how to add to dub and lock the major.minor version.
NOTE: This branch is compatible with ffmpeg 3.0.x, for other versions please see the other branches for usage information.
To include ffmpeg-d
in your dub project add the following dependency to your dub.json file.
"ffmpeg-d": "~>3.0.0"
What are your thoughts?
Also, feel free to have a read through my 3.0.2 port at DavidBennettPIO@ccb16d2 I still need to test this out well, If I have time I might even write some simple examples.
Thanks!
Could you please provide sample code in the README?
see libmir/dcv#121
currently posix test configuration is used for instead of default
if(rawFrame.data.ptr == null || rawFrame.linesize.ptr == null || convertedFrame.data.ptr == null || convertedFrame.linesize.ptr == null) return;
sws_scale(imageConversionContext, (cast(AVPicture*)rawFrame).data, (cast(AVPicture*)rawFrame).linesize, 0, cameraCodecContext.height, (cast(AVPicture *)convertedFrame).data, (cast(AVPicture *)convertedFrame).linesize);
As you can see, the code checks for any null values.
[swscaler @ 0x7f9bc10ba000] One of the input parameters to sws_scale() is NULL, please check the calling code
Why is this happening? Thanks in advance.
FFMPEG version 2.7.6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.