Unable to locate package libavformat-dev

I was trying to install Torch toolbox in PX2. It requires some dependencies (sudo apt-get install -y libavformat-dev libavutil-dev libavcodec-dev libswscale-dev libfreetype6-dev). However, when I tried this, I got an error:

nvidia@tegra-ubuntu:~/torch/torch-toolbox/Video-decoder$ sudo apt-get install -y libavformat-dev libavutil-dev libavcodec-dev libswscale-dev libfreetype6-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libavformat-dev
E: Unable to locate package libavutil-dev
E: Unable to locate package libavcodec-dev
E: Unable to locate package libswscale-dev

I’m not sure why this could happen as it works fine in my local machine.

Hello WZhouuuu,

We will provide Deep Learning framework docker images for DrivePX2. Thanks.

Solved by build the FFmpeg from source.