ffmpeg2 no servidor quantificador do ubuntu 12.10

0

atualmente eu estou preso com a instalação do ffmpeg2 através do repositório ppa: samrog131 / ppa.

Por que isso não funciona? Em vários sites já foi dito, que o ppa é para o Ubuntu 12.10. Estou fazendo algo errado? Porque ele está instalando o ffmpeg do repositório padrão do Ubuntu (0.8.6)

Espero que alguém possa ajudar: /

    
por chuckice 18.10.2013 / 21:10

1 resposta

0

ffmpeg-real

apt-cache show ffmpeg-real
% bl0ck_qu0te%

O ffmpeg é instalado no / opt. Não está substituindo a versão oficial do Ubuntu do ffmpeg. A versão 2 do ffmpeg será iniciada com o comando:

/opt/ffmpeg/bin/ffmpeg

O ffmpeg pode ser iniciado com o comando: 'ffmpeg' com as alternativas do Debian - outro pacote:

ffmpeg-set-alternatives

apt-cache show ffmpeg-set-alternatives
% bl0ck_qu0te%

Um exemplo

Situação inicial: O pacote ffmpeg é instalado a partir dos repositórios oficiais do Ubuntu.

:~$ ffmpeg
ffmpeg version 0.8.6-6:0.8.6-0ubuntu0.12.10.1, Copyright (c) 2000-2013 the Libav developers
  built on Apr  2 2013 17:02:16 with gcc 4.7.2
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

O ffmpeg-set-alternatives está recomendando as kalternatives.

As kalternativas são:

apt-cache show kalternatives

Description: graphical alternatives system configuration tool
Kalternatives offers a GUI to configure the alternative systems (a
system that allows you to select one alternative file for many in the
filesystem).
Kalternatives is available as KDE configuration module, integrated by default
into KDE's System Settings.
.
This is an advanced GUI of the update-alternatives program shipped with dpkg.

Existem também as galerias:

apt-cache show galternatives

Description: graphical setup tool for the alternatives system
A GUI to help the system administrator to choose what program
should provide a given service.
 .
This is a graphical front-end to the update-alternatives
program shipped with dpkg.

Instalando o ffmpeg-set-alternatives com a opção --no-install-recommends

sudo apt-get install ffmpeg-set-alternatives --no-install-recommends

The following NEW packages will be installed:
ffmpeg-real ffmpeg-set-alternatives libavcodec55-ffmpeg libavdevice55-ffmpeg
libavfilter3-ffmpeg libavformat55-ffmpeg libavutil52-ffmpeg
libpostproc52-ffmpeg libswresample0-ffmpeg libswscale2-ffmpeg
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,105 kB of archives.
After this operation, 16.2 MB of additional disk space will be used.
...
Setting up ffmpeg-set-alternatives (0.1~quantal~ppa1) ...
update-alternatives: using /usr/bin/ffmpeg to provide /usr/local/bin/ffmpeg (ffmpeg) in auto mode
update-alternatives: using /usr/bin/ffplay to provide /usr/local/bin/ffplay (ffplay) in auto mode
update-alternatives: using /usr/bin/ffprobe to provide /usr/local/bin/ffprobe (ffprobe) in auto mode
update-alternatives: using /usr/bin/ffserver to provide /usr/local/bin/ffserver (ffserver) in auto mode
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

Agora existem opções (lista):

update-alternatives --list ffmpeg
/opt/ffmpeg/bin/ffmpeg
/usr/bin/ffmpeg

Escolhendo o ffmpeg desejado (config)

sudo update-alternatives --config ffmpeg


There are 2 choices for the alternative ffmpeg (providing /usr/local/bin/ffmpeg).

  Selection    Path                    Priority   Status
------------------------------------------------------------
* 0            /usr/bin/ffmpeg          20        auto mode
  1            /opt/ffmpeg/bin/ffmpeg   10        manual mode
  2            /usr/bin/ffmpeg          20        manual mode

Press enter to keep the current choice[*], or type selection number: 1
update-alternatives: using /opt/ffmpeg/bin/ffmpeg to provide /usr/local/bin/ffmpeg (ffmpeg) in manual mode

... e o comando ffmpeg está dizendo (aqui):

:~$ ffmpeg
ffmpeg version 2.0.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct  9 2013 20:12:01 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)
  configuration: --prefix=/opt/ffmpeg --libdir=/opt/ffmpeg/lib/ --enable-shared --disable-stripping --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-postproc --enable-x11grab --enable-libcdio --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libfaac --enable-libvo-aacenc --enable-nonfree --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfdk_aac --enable-libopus --enable-pthreads --enable-zlib --enable-libvpx --enable-libfreetype --enable-libpulse
  libavutil      52. 38.100 / 52. 38.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.100 / 55. 12.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 79.101 /  3. 79.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
    
por user26687 27.10.2013 / 18:11