anyc / avcut

Frame-accurate video cutting with only small quality loss
GNU General Public License v2.0
120 stars 14 forks source link

'AVFrame' has no member named ... #11

Closed laeubi closed 6 years ago

laeubi commented 6 years ago

I get the following errors:

avcut.c:554:19: error: 'AVFrame' has no member named 'pkt_size' s->frames[j]->pkt_size, s->pkts[i].size,

avcut.c:701:61: error: 'AVFrame' has no member named 'pkt_duration' int64_t new_pts = sbuffer->last_pts + av_rescale_q(frame->pkt_duration,

Is my version of ffmpeg to old? Can you describe what versions (debian, gcc, ...), are needed to build avcut?

laeubi commented 6 years ago

I have tried with whezzy, jessie and stretch but no luck

anyc commented 6 years ago

I can compile it with ffmpeg 3.3.6 under Gentoo although I get many deprecation warnings. It should also work with older versions. There were only very few changes necessary for the v2 -> v3 transition.

Unfortunately, it looks like it will not be easy to find proper replacements for the deprecated parts and I do not have much free time for this project.

laeubi commented 6 years ago

Thanks for the hint, I was able to build it with latest gentoo also! I'll try to provide some additional features if possible.