Solved QImage list to MP4
-
@mrjj
I'll try and report back here if I succeed (for further reference and other people which may experience the same issue) -
Hi and welcome to devnet,
IIRC H.264 is a licensed codec so you have to take that into account.
Otherwise, it's completely doable to use ffmpeg with Qt.
-
@SGaist said in QImage list to MP4:
H.264 is a licensed codec
Oh yep it is. Hrm. What should I do about that..
I guess contacting their licensing?
-
AFAIK, yes, at least to know the conditions required to use the encoder.
Otherwise you have free formats like webm that you can use.
-
@SGaist I think I'll do that instead. I've been looking around and seems like getting licensed is a hellish process. I'll use WebM. Thanks for letting me know before I made the mistake :)
-
Turns out this is a lot easier than I first expected. Files are here. The link will soon be dead as I am merging that branch with master. Thanks for your support!
-
-
@VRonin Seems like the best choice there honestly, because the .... and this can be done without it. I see now.
Meh. It works.
inb4 dead -
@VRonin hey don't just
goto
to harshly, its still the best way to break out of nested loops......
Except mabye making the nested loop a function and using return.... -
@J.Hilk said in QImage list to MP4:
its still the best way to break out of nested loops
bool breakAll=false; for(int i=0;i<1000 && !breakAll;++i){ for(int j=0;j<1000 && !breakAll;++j){ if(shouldIStopEverything()) breakAll=true; } }
-
I wasn't wrong. The link is dead. New one
-
We are going WAY off topic
bool Encoder::end() { if (success) av_write_trailer(fc); avcodec_free_context(&out->enc); av_frame_free(&out->frame); sws_freeContext(out->sws); delete out; if (!(fc->oformat->flags & AVFMT_NOFILE)) // avio_closep(&fc->pb); avformat_free_context(fc); return success; }