terryky / tflite_gles_app

GPU accelerated deep learning inference applications for RaspberryPi / JetsonNano / Linux PC using TensorflowLite GPUDelegate / TensorRT
MIT License
488 stars 130 forks source link

build an app with video file option #19

Closed quhb2455 closed 3 years ago

quhb2455 commented 3 years ago

i want to build an app with ENABLE_VDEC options for using video file

after i install the libraries, i build an app

and then i got this error.

i search it on google, other people say that it is libavcodec-dev version problem.

but i already have installed the newest one

/workspace/workspace/tflite_gles_app/common/util_video_decode.c: In function 'open_video_file': /workspace/workspace/tflite_gles_app/common/util_video_decode.c:84:5: warning: implicit declaration of function 'avcodec_parameters_to_context' [-Wimplicit-function-declaration] avcodec_parameters_to_context (dec_ctx, fmt_ctx->streams[video_stream_index]->codecpar); ^ /workspace/workspace/tflite_gles_app/common/util_video_decode.c:84:81: error: 'AVStream {aka struct AVStream}' has no member named 'codecpar' avcodec_parameters_to_context (dec_ctx, fmt_ctx->streams[video_stream_index]->codecpar); ^ /workspace/workspace/tflite_gles_app/common/util_video_decode.c: In function 'decode_thread_main': /workspace/workspace/tflite_gles_app/common/util_video_decode.c:287:23: warning: implicit declaration of function 'avcodec_send_packet' [-Wimplicit-function-declaration] ret = avcodec_send_packet (s_dec_ctx, &packet); ^ /workspace/workspace/tflite_gles_app/common/util_video_decode.c:296:27: warning: implicit declaration of function 'avcodec_receive_frame' [-Wimplicit-function-declaration] ret = avcodec_receive_frame (s_dec_ctx, frame); ^ ../Makefile.include:16: recipe for target '/workspace/workspace/tflite_gles_app/common/util_video_decode.o' failed make: [/workspace/workspace/tflite_gles_app/common/util_video_decode.o] Error 1 make: Waiting for unfinished jobs....

installed the library version is..

Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libavutil-dev amd64 7:2.8.17-0ubuntu0.1 [245 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libswresample-dev amd64 7:2.8.17-0ubuntu0.1 [64.9 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libavcodec-dev amd64 7:2.8.17-0ubuntu0.1 [4514 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libavformat-dev amd64 7:2.8.17-0ubuntu0.1 [971 kB] Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libavresample-dev amd64 7:2.8.17-0ubuntu0.1 [61.7 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libpostproc-dev amd64 7:2.8.17-0ubuntu0.1 [49.4 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libswscale-dev amd64 7:2.8.17-0ubuntu0.1 [164 kB] Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libavfilter-dev amd64 7:2.8.17-0ubuntu0.1 [632 kB] Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libavdevice-dev amd64 7:2.8.17-0ubuntu0.1 [83.4 kB]

plz help me, if you guys have enough time... how can i figure out it?

-- env ubuntu 16.04 gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609

quhb2455 commented 3 years ago

self answer!

upgrade "ffmpeg" version to 4.3.2