Installing on Ubuntu
If you have an old Ubuntu version or other operational system, you might need to manually install a recent libav version, go to the bottom of the page for instructions.
Install some pre-requisite libraries with this command:
sudo apt-get install libavformat-dev libavcodec-dev libavutil-dev
Download the source code from GitHub at https://github.com/ponchio/untrunc
wget https://github.com/ponchio/untrunc/archive/master.zip
Unzip the source code:
unzip master.zip
Go into the directory where it's been unzipped:
cd untrunc-master
Compile the source code using this command (all one line):
g++ -o untrunc file.cpp main.cpp track.cpp atom.cpp mp4.cpp -L/usr/local/lib -lavformat -lavcodec -lavutil
沒有留言:
張貼留言