Project

General

Profile

Actions

Bug #2085

closed

video.c:459:18: error: 'AVCodecContext' has no member named 'framerate'

Added by Anonymous almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
02/06/2015
Due date:
% Done:

100%

Estimated time:

Description

Die heutige git Version lässt sich bei mir auf Fedora 21 nicht kompilieren.

cc O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC -I/usr/include/alsa -I/usr/include/ffmpeg -I/usr/include/ffmpeg -DPLUGIN_NAME_I18N='"softhddevice"' -D_GNU_SOURCE -DAV_INFO -DAV_INFO_TIME=3000 -DUSE_PIP -DUSE_VDR_SPU -DUSE_ALSA -DUSE_OSS -DUSE_VDPAU -DUSE_SCREENSAVER -DUSE_SWRESAMPLE -g -W -Wall -Wextra -Winit-self -Wdeclaration-after-statement -c -o video.o video.c
video.c: In function 'VideoSetPts':
video.c:459:18: error: 'AVCodecContext' has no member named 'framerate'
if (video_ctx
>framerate.num != 0 && video_ctx->framerate.den != 0) {
^
video.c:459:51: error: 'AVCodecContext' has no member named 'framerate'
if (video_ctx->framerate.num != 0 && video_ctx->framerate.den != 0) {
^
video.c:460:29: error: 'AVCodecContext' has no member named 'framerate'
duration = 1000 * video_ctx->framerate.den / video_ctx->framerate.num;
^
video.c:460:56: error: 'AVCodecContext' has no member named 'framerate'
duration = 1000 * video_ctx->framerate.den / video_ctx->framerate.num;
^
<builtin>: recipe for target 'video.o' failed
make: * [video.o] Error 1
make: *
Waiting for unfinished jobs....


Files

Actions #1

Updated by MegaV0lt almost 10 years ago

Same here:

*** Plugin softhddevice:
cc -O3 -Wall -march=native -O3 -pipe -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -I/usr/local/src/vdr-2.1.7/include -I/usr/include/alsa     -I/usr/include/libdrm     -DPLUGIN_NAME_I18N='"softhddevice"' -D_GNU_SOURCE  -DAV_INFO -DAV_INFO_TIME=3000     -DUSE_PIP                       -DUSE_VDR_SPU                         -DUSE_ALSA -DUSE_OSS -DUSE_VDPAU -DUSE_VAAPI -DUSE_GLX -DUSE_SCREENSAVER -DUSE_SWRESAMPLE  -DGIT_REV='"4f4d304"' -I/usr/local/src/vdr-2.1.7/include  -g -W -Wall -Wextra -Winit-self -Wdeclaration-after-statement   -c -o video.o video.c
xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP \
-k_ -k_N --package-name=vdr-softhddevice --package-version=0.6.1rc1 \
--msgid-bugs-address='<see README>' -o po/softhddevice.pot `ls softhddev.c video.c audio.c codec.c ringbuffer.c softhddevice.cpp`
msgmerge -U --no-wrap --no-location --backup=none -q -N po/de_DE.po po/softhddevice.pot
msgfmt -c -o po/de_DE.mo po/de_DE.po
video.c: In function ‘VideoSetPts’:
video.c:459:18: error: ‘AVCodecContext’ has no member named ‘framerate’
video.c:459:51: error: ‘AVCodecContext’ has no member named ‘framerate’
video.c:460:29: error: ‘AVCodecContext’ has no member named ‘framerate’
video.c:460:56: error: ‘AVCodecContext’ has no member named ‘framerate’
video.c: In function ‘VaapiSetupVideoProcessing’:
video.c:2655:14: warning: variable ‘filter_n’ set but not used [-Wunused-but-set-variable]
video.c:2654:16: warning: unused variable ‘filters’ [-Wunused-variable]
video.c:2653:16: warning: unused variable ‘color_filter’ [-Wunused-variable]
video.c:2652:16: warning: unused variable ‘sharpen_filter’ [-Wunused-variable]
video.c:2651:16: warning: unused variable ‘deint_filter’ [-Wunused-variable]
video.c:2650:16: warning: unused variable ‘denoise_filter’ [-Wunused-variable]
make[1]: *** [video.o] Error 1

Actions #2

Updated by hd_brummy almost 10 years ago

angehangenes diff bringt die alte framerate function zurück
es müsste geprüft werden ob die versions abfrage
if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55,34,1)
richtig ist fuer ffmpeg-2.5.x bzw libav-10(sollte passen)

Actions #3

Updated by hd_brummy almost 10 years ago

abfrage auf falsche version,
editet patch im anhang,
in dem patch wird auf ffmpeg-2.5.3 libavcodec getestet
eventuell muss das noch verkleinert werden bei ffmpe-2.5.x
sorry, ich weiss nicht genau wann die api changes in libavcodec vorgenommen wurden.

getestet mit ffmpeg-2.2.12
libavcodec 55. 52.102 / 55. 52.102

Actions #4

Updated by marco almost 10 years ago

Also ich verwende ffmpeg version 2.4.6 + libavcodec 56. 1.100,
bei mir kompiliert es mit folgendem Patch.

Actions #5

Updated by johns almost 10 years ago

  • Status changed from New to Resolved
  • Assignee set to johns
  • % Done changed from 0 to 100

The GIT contains a workarround. Function only supported and used with newer ffmpeg versions.

Actions #6

Updated by johns almost 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF