Comments (1)
Hi @ashuezy
I'm testing patches on multiple Linux machines before uploading and I've never run into issues like this. So to be honest I don't have a ready made answer to your question.
Below is how I build ffmpeg & VPF on clean testing machine from scratch.
I'm using Anaconda Python as I also use Pytorch bindings, but it shouldn't make a huge difference.
FFmpeg build:
cd ~/Git/FFmpeg
mkdir -p $(pwd)/build_x64_release_shared
./configure \
--prefix=$(pwd)/build_x64_release_shared \
--disable-static \
--disable-stripping \
--disable-doc \
--enable-shared
make -j -s && make install
# Export paths to Video Codec SDK and FFMpeg
export PATH_TO_SDK=~/Video_Codec_SDK_9.1.23
export PATH_TO_FFMPEG=~/Git/FFmpeg/build_x64_release_shared
# Clone repo and start building process
cd ~/Git
git clone https://github.com/NVIDIA/VideoProcessingFramework.git
# Export path to Cmake:
export PATH=$PATH:/home/rarzumanyan/cmake-3.16.4-Linux-x86_64/bin
# Export path to CUDA compiler (I'm installing drivers from Nvidia site):
export CUDACXX=/usr/local/cuda/bin/nvcc
#Now the VPF build
cd VideoProcessingFramework
export INSTALL_PREFIX=$(pwd)/install
mkdir -p install
mkdir -p build
cd build
cmake .. \
-DFFMPEG_DIR:PATH="$PATH_TO_FFMPEG" \
-DVIDEO_CODEC_SDK_DIR:PATH="$PATH_TO_SDK" \
-DGENERATE_PYTHON_BINDINGS:BOOL="1" \
-DPYTHON_LIBRARY=/home/rarzumanyan/anaconda3/lib/libpython3.7m.so \
-DCMAKE_INSTALL_PREFIX:PATH="$INSTALL_PREFIX"
make && make install
# Launch samples
cd ~/Git/VideoProcessingFramework/install/bin
export LD_LIBRARY_PATH=$PATH_TO_FFMPEG/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$(pwd):$LD_LIBRARY_PATH
python3 ./SampleDecode.py
Can you also upload your CMake configure output?
I've seen couple times that when 2 or more Python versions are installed, CMake may compile VPF against Python libs version which are not used by default when you launch the sample.
That's the actual reason I'm setting PYTHON_LIBRARY
variable when building VPF.
from videoprocessingframework.
Related Issues (20)
- HW decoder faced error. Re-create instance.
- Optimize GPU memory - Nvidia A100 HOT 9
- Different memory consumption on A100 and RTX 2070 super
- Build CI is no longer allowed to use Jimver/[email protected]
- requirement pyproject.toml-based HOT 1
- HW decoder faced error. Re-create instance HOT 5
- surface.Crop Error: Segmentation fault HOT 5
- Seeking by timestamp is limited to integer number of seconds. HOT 4
- Frames and Timestamps(PTS) matching HOT 12
- Test issue
- PyNvEncoder EncodeSingleFrame fails on the same frame and passes on it later HOT 9
- Maximum number of encoders? RuntimeError: NvEncoder : m_nvenc.nvEncOpenEncodeSessionEx(&encodeSessionExParams, &hEncoder) returned error 10 HOT 5
- Is there CPP sample to how to use this lib? HOT 3
- Compiling with C++ Program HOT 6
- Guidance on modifying PyNvCode/CMakeLists.txt for c++ uses HOT 2
- Color glitch/shift when reading video HOT 8
- Failing to pip install on Windows HOT 4
- Encoder produces black frame the second time running in the same process
- feat: cupy encoder , format for surface pointer HOT 2
- Continuous growth of CPU and memory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from videoprocessingframework.