Skip to content

Patches to make integration of avTranscoder into other software easier #251

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

Closed
wants to merge 2 commits into from

Conversation

dimula73
Copy link
Contributor

@dimula73 dimula73 commented Jun 6, 2016

Hi!

I'm trying to integrate avTranscoder into Krita project. I need it to be able to save the hand-painted animation into various animation formats. My main target formats are mkv, mp4, ogg and gif.

Here are the two patches I had to do to make integration of avTranscoder easier into other applications. One creates necessary cmake modules. The other one fixes a small bug when working with the .mkv format.

dimula73 added 2 commits June 6, 2016 19:37
This patch adds AvTranscoderConfig.cmake and FindAvTranscoder.cmake
which can be used by the external software to link against
avTranscoder libraries.
Some containers, e.g. Matroska, requires the headers be written
in the global headers section, not in each packet. The encoder
should be notified, if that is the case.
@coveralls
Copy link

coveralls commented Jun 6, 2016

Coverage Status

Coverage decreased (-0.02%) to 74.457% when pulling 054678c on dimula73:develop into bd420a5 on avTranscoder:develop.

@cchampet
Copy link
Member

cchampet commented Jun 7, 2016

Hello!
Thank you for your contribution and your tests within Krita project!
I am going to test your code on our environment and given you a feedback as soon as possible.
If avTranscoder has other limitations/bugs you would like to discuss, feel free to open new issues/PRs.

@dimula73
Copy link
Contributor Author

dimula73 commented Jun 7, 2016

Sure! I'll write open an issue if I cannot fix it within Krita itself :)

The biggest limitation I have right now is that avTranscoder has no Ubuntu package, neither in official repositories, nor in ppa. But I think it is solvable...

@@ -42,6 +42,16 @@ IOutputStream& OutputFile::addVideoStream(const VideoCodec& videoDesc)
stream.codec->level = videoDesc.getAVCodecContext().level;
stream.codec->field_order = videoDesc.getAVCodecContext().field_order;

if (_formatContext.getAVOutputFormat().flags & AVFMT_GLOBALHEADER) {
stream.codec->flags = CODEC_FLAG_GLOBAL_HEADER;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the flags attribute could have a value before this assignement, I think it's better to do:

stream.codec->flags |= CODEC_FLAG_GLOBAL_HEADER;

Don't you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I though that videoDesc.getAVCodec() returns a codec with empty flags.

@cchampet
Copy link
Member

See PRs #255 and #256.

@cchampet cchampet closed this Jun 21, 2016
valnoel pushed a commit to valnoel/avTranscoder that referenced this pull request Jul 22, 2016
…InCode

CMake: get AvTranscoder versions from headers
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

Successfully merging this pull request may close these issues.

3 participants