📜 ⬆️ ⬇️

We convert video for iPod from under Linux

Many users of an iPod for Linux sooner or later face the problem of converting video for this wonderful device. There are no standard tools for this.
For the conversion we will use the mp4ize script.

sudo apt-get install ruby ​​ffmpeg liblame-dev libxvidcore4-dev
sudo apt-get install liba52-dev libdts-dev libgsm1-dev libvorbis-dev
sudo apt-get install libxvidcore4 libxvidcore-dev libdc1394-dev libfaac-dev
sudo apt-get install libx264-dev libfaac-dev libfaad2-dev build-essentials
sudo apt-get build-dep ffmpeg


We download the script from here . We save. Copy to / bin. Making it executable.
')
sudo cp mp4ize / bin / mp4ize
sudo chmod + x / bin / mp4ize


After that, in theory, everything should earn a team

mp4ize file.avi


However, my script started to swear on the xvid codec. I had to recompile ffmpeg.

sudo apt-get build-dep ffmpeg
sudo env DEB_BUILD_OPTIONS = risky sudo apt-get -b source ffmpeg
cd 'ffmpeg-0.cvs20070307'
sudo ./configure --enable-gpl --enable-pp --enable-pthreads \
--enable-libvorbis --enable-libogg --enable-liba52 \
--enable-libdts --enable-libgsm --enable-dc1394 \
--disable-debug --enable-shared --enable-xvid \
--enable-libfaac --prefix = / usr / local
sudo make
sudo make install

After the above manipulations and dances everything worked for me.
Spoiled from here and from here .
Crosspost

Source: https://habr.com/ru/post/22830/


All Articles