acherstyx / Compressed-Video-Reader

A video reader for extracting motion vectors and residuals from encoded H.264 videos.
MIT License
14 stars 3 forks source link

docker image? #2

Closed ybsu closed 8 months ago

ybsu commented 8 months ago

Dear sir, I have trouble installing cv_reader, for the sake of I have not the sudo permission and my linux server cannot connect to the external network. So is there a suitable docker image or some other way to do this (cv_reader) ? Thank you, sir!

acherstyx commented 8 months ago

Hello!

Here is a compiled wheel package: Google Drive This was built by running python3 setup.py bdist_wheel under the root folder of this project after preparing the ffmpeg. You can compile it yourself if your environment does not match mine.

To install it, run pip3 install cv_reader-1.1.0-cp39-cp39-linux_x86_64.whl.

acherstyx commented 8 months ago

Please reopen it if you are still facing the same problem.

ybsu commented 8 months ago

Hello!

Here is a compiled wheel package: Google Drive This was built by running python3 setup.py bdist_wheel under the root folder of this project after preparing the ffmpeg. You can compile it yourself if your environment does not match mine.

To install it, run pip3 install cv_reader-1.1.0-cp39-cp39-linux_x86_64.whl.

Hello! Thanks for your reply, I have installed the package in the requriement.txt and then installed cv_reader-1.1.0-cp39-cp39-linux_x86_64.whl by pip3 install cv_reader-1.1.0-cp39-cp39-linux_x86_64.whl. Unfortunately, when I tap "cv_reader", I got the error in the picture 1 below : "ImportError: libbz2.so.1.0: cannot open shared object file: No such file or directory";
Second, when I was running code: "python3 tools/video_convert.py --codec=libx264 --keyint=60 --resize=240 -i dataset/msrvtt/videos -o dataset/msrvtt/videos_h264_keyint_60" according to the Cocap/dataset/README.md, I got the error: FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/ffmpeg', Any other problem with my environment? How to fix them? Thanks, sir.

iShot_2024-01-24_17 09 45 iShot_2024-01-24_17 08 59
ybsu commented 8 months ago

Dear sir, I have solved the problem occured before using command 'conda install -c conda-forge ffmpeg'; But I met a new problem: when I was running training procedure by "python3 mm_video/run_net.py --cfg configs/compressed_video/msrvtt_captioning.yaml" , I got error "ImportError: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /home/qysu/anaconda3/envs/cocap/lib/python3.9/site-packages/cv_reader/api.cpython-39-x86_64-linux-gnu.so)", what can I do to solve it? Thanks.

iShot_2024-01-28_21 17 00

Hello! Here is a compiled wheel package: Google Drive This was built by running python3 setup.py bdist_wheel under the root folder of this project after preparing the ffmpeg. You can compile it yourself if your environment does not match mine. To install it, run pip3 install cv_reader-1.1.0-cp39-cp39-linux_x86_64.whl.

Hello! Thanks for your reply, I have installed the package in the requriement.txt and then installed cv_reader-1.1.0-cp39-cp39-linux_x86_64.whl by pip3 install cv_reader-1.1.0-cp39-cp39-linux_x86_64.whl. Unfortunately, when I tap "cv_reader", I got the error in the picture 1 below : "ImportError: libbz2.so.1.0: cannot open shared object file: No such file or directory"; Second, when I was running code: "python3 tools/video_convert.py --codec=libx264 --keyint=60 --resize=240 -i dataset/msrvtt/videos -o dataset/msrvtt/videos_h264_keyint_60" according to the Cocap/dataset/README.md, I got the error: FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/ffmpeg', Any other problem with my environment? How to fix them? Thanks, sir. iShot_2024-01-24_17 09 45 iShot_2024-01-24_17 08 59