Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFMS2 don't open video when compiled with last FFMpeg from git #256

Closed
Abs62 opened this issue Feb 20, 2016 · 3 comments
Closed

FFMS2 don't open video when compiled with last FFMpeg from git #256

Abs62 opened this issue Feb 20, 2016 · 3 comments

Comments

@Abs62
Copy link

Abs62 commented Feb 20, 2016

FFMS2 don't open video when compiled with last FFMpeg from git - "Could not allocate dummy frame" error. It seems it is after commit 0eb4092c1bf4d74c3b9a65fb0dbe4f90d3a316d0 in FFMpeg (14.02.2016). If to change alignment from 1 to 4 in av_image_alloc() calling in the FFMS_VideoSource constructor, no more error, video opened.

@dwbuiten
Copy link
Member

Does this happen for all videos or just some videos?

The only reason I can see this happening is if the video has a palette.

See: https://github.com/FFmpeg/FFmpeg/blob/b4018544fbbcb3581d31866d82bc7f8ff3da4b2a/libavutil/imgutils.c#L218-L224

@myrsloik / @tgoyne does FFMS2 even support palette images?

@Abs62
Copy link
Author

Abs62 commented Feb 20, 2016

This calling of av_image_alloc() is not related to video format, function called with FFMS_PIX_FMT(GRAY8) format parameter.

@dwbuiten
Copy link
Member

Oh, it seems you're right .FFmpeg made an silent API break. Lovely. Will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants