@@ -57,23 +57,28 @@ export LD_LIBRARY_PATH=/home/foo/ffmpeg/build/lib:${LD_LIBRARY_PATH}
5757### How to use ffmpeg hardware accelerated encoding on the NVidia Jetson
5858
5959Follow the instructions
60- [ here] ( https://github.com/jocover/jetson-ffmpeg ) to build a version of
61- ffmpeg that supports NVMPI. Then follow the section above on how to
60+ [ here] ( https://github.com/Keylost/jetson-ffmpeg ) to build a version of
61+ ffmpeg that supports NVMPI. This long magic line should build a nvmpi enabled
62+ version of ffmpeg and install it under `` /usr/local/ `` :
63+ ```
64+ git clone https://github.com/berndpfrommer/jetson-ffmpeg.git && cd jetson-ffmpeg && mkdir build && cd build && cmake -DCMAKE_INSTALL
65+ _PREFIX:PATH=/usr/local .. && make install && ldconfig && cd ../.. && git clone git://source.ffmpeg.org/ffmpeg.git -b release/7.1 --
66+ depth=1 &&cd jetson-ffmpeg && ./ffpatch.sh ../ffmpeg && cd ../ffmpeg && ./configure --enable-nvmpi --enable-shared --disable-static
67+ --prefix=/usr/local && make install
68+ ```
69+
70+ Then follow the section above on how to
6271actually use that custom ffmpeg library. As always first test on the
6372CLI that the newly compiled `` ffmpeg `` command now supports
64- `` h264_nvmpi `` . Afterwards you should be able to use e.g. the `` ffmpeg_image_transport `` with
65- parameters like so:
66-
67- The transport can now be configured to use nvmpi like so:
73+ `` h264_nvmpi `` . The transport can then be configured to use
74+ nvmpi like so:
6875
6976```
7077 parameters=[{'ffmpeg_image_transport.encoding': 'h264_nvmpi',
7178 'ffmpeg_image_transport.profile': 'main',
7279 'ffmpeg_image_transport.preset': 'll',
73- 'ffmpeg_image_transport.gop ': 15}]
80+ 'ffmpeg_image_transport.gop_size ': 15}]
7481```
75-
76-
7782## License
7883
7984This software is issued under the Apache License Version 2.0.
0 commit comments