How to install FFmpeg on Jetson TX1

Hello everyone:
I want to decode the video stream of the network camera which encoded by H264.I used to use FFmpeg on ubuntu14.04 (amd64) to achieve this function.Jeton TX1 (with JetPack Brush) can not find ffmpeg files (libavcodec, etc.).How can I use FFmpeg on Jetson TX1?
I hope that someone can help me.Thanks all!

Hi Sulli_xue,

I’m not sure about difference between 16.04 with 14.04. If on 16.04, I can install almost ffmpeg libs with this command :
sudo apt-get install libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavl-dev libavresample-dev libavutil-dev

If you want to decode with ffmpeg I think it should take time. You should use gstreamer or NVIDIA multimedia APIs because they use hardware decoder instead of software.

Please correct me if something wrong :).

Thank you for your help!I also want to use gstreamer or multimedia APIs to decode ,but I can’t find how to use them in my qt code.Could you please introduce some docs to me?

Hi Sulli Xue,
Please refer to

https://developer.nvidia.com/embedded/dlc/l4t-documentation-24-2-1

Thank you very much!I have seen your docs,but I want to use gstreamer in decoding rtsp video stream which is not include in the document.Could you please do me a favor?

I also have the same problem. I have a rtsp stream that I want to decode using gstreamer, I can make it work fine with gst-launch, but with jetson-inference it has been a complete nightmare. What is the correct way to decode a h264 rtsp stream in order to be compatible with jetson-inference?

Hi,
Please try

gst-launch-1.0 rtspsrc location=rtsp://<ip>:<port>/0 latency=0 ! rtph264depay ! h264parse ! omxh264dec ! nvoverlaysink