Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witajcie,
robię skrypt a'la youtube, wszystkie pliki video konwertuje do .mp4, jednak aby zachować dobrą jakość muszę użyć libx264
ffmpeg -i test.flv -vcodec libx264 new.mp4
Problem w tym, że ffmpeg nie ma domyślnie zainstalowanego kodeku x264
Input #0, flv, from 'test.flv': Duration: 00:00:17.00, start: 0.000000, bitrate: 679 kb/s Stream #0.0: Video: h264, yuv420p, 480x360 [PAR 1:1 DAR 4:3], 679 kb/s, 29.97 tbr, 1k tbn, 60 tbc Stream #0.1: Audio: aac, 44100 Hz, stereo, s16 Unknown encoder 'libx264'
Na różnych forach przewijają się dwie nazwy pakietu, libx264 i x264 (jest jakaś różnica?).
Pakietu libx264 oraz x264 nie odnajduje.
Dopiero gdy dodam do sources.list
deb http://ftp.pl.debian.org/debian/ sid main non-free contrib deb-src http://ftp.pl.debian.org/debian/ sid main non-free contrib
(btw. co to jest ten sid?)
po wpisaniu apt-get install x264 pobiera pakiet, jednak coś jest później nie tak...
Kontynuować [T/n]? T Odczytywanie dzienników zmian... Zrobione eglibc (2.13-25) unstable; urgency=medium Starting with the eglibc package version 2.13-5, the libraries are shipped in the multiarch directory /lib/<triplet> instead of the more traditional /lib, where <triplet> is the multiarch triplet and can be retrieved with 'dpkg-architecture -qDEB_HOST_MULTIARCH'. Similarly the includes are now shipped in /usr/include/<triplet> instead of the more traditional /usr/include. The toolchain in Debian has been updated to cope with that, and most build systems should be unaffected. If you are using a non-Debian toolchain to build your software and it is not able to cope with multiarch, you might try to pass the following options to your compiler: -B/usr/lib/<triplet> -I/usr/include/<triplet> Alternatively if the build system makes hard to pass the above options, you might try to set the LIBRARY_PATH and CPATH environment variables: LIBRARY_PATH=/usr/lib/<triplet> CPATH=/usr/include/<triplet> export LIBRARY_PATH CPATH -- Aurelien Jarno <aurel32@debian.org> Mon, 09 Jan 2012 12:47:16 +0100 eglibc (2.13-7) unstable; urgency=low Starting with version 2.13, eglibc provides an SSSE3 optimized version of memcpy() on the amd64 architecture. This version might copy memory backward in some conditions, which causes issues if the source and destination overlap. memmove() should be used in such cases, but some programs still wrongly use memcpy(). For this reason, on the amd64 architecture the Debian package provides two wrappers which can be use to workaround and/or debug the issue: - /usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so simply replace all calls to memcpy() by a call to memmove() - /usr/lib/x86_64-linux-gnu/libc/memcpy-syslog-preload.so does the same, but in addition logs (with rate limit) the issue to syslog, so that it can be detected and fixed. To use these wrapper on a single binary, the easiest way is to use the LD_PRELOAD environment variable: - LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so /path/to/binary - LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-syslog-preload.so /path/to/binary For system-wide usage, it is possible to add the path of one of the wrapper to /etc/ld.so.preload. For more details about the issue, please see: http://bugs.debian.org/625521 http://sourceware.org/bugzilla/show_bug.cgi?id=12518 -- Aurelien Jarno <aurel32@debian.org> Sat, 11 Jun 2011 18:02:52 +0200 cmake (2.8.7-4) unstable; urgency=low From now on, pass either -DPythonInterp_FIND_VERSION=<version> or -DPythonLibs_FIND_VERSION=<version> respectively in order to tell cmake to look for the specific Python version. However, if an explicit Python version is requested via find_package(), it will override the one specified on the command line. /tmp/tmpuXbSUb
Bardzo proszę o pomoc, z linuxem nie miałem za dużo styczności i nie za bardzo wiem jak rozwiązać ten problem, a bez kodeku libx264 na debianie squeeze nie skończę projektu
Starałem się również zainstalować ffmpeg według tego poradnika http://www.zoharbabin.com/build-and-install-ffmpeg- … he-dumb-guide
jednak po wpisaniu
./configure --enable-shared Found yasm 0.8.0.2194 Minimum version is yasm-1.2.0 If you really want to compile without asm, configure with --disable-asm.
dostaję informację, że yasm mam w starszej wersji, chociaż apt-get install yasm zwraca
Czytanie list pakietów... Gotowe Budowanie drzewa zależności Odczyt informacji o stanie... Gotowe yasm jest już w najnowszej wersji.
Offline
Potrzebujesz nowszy ffmpeg:
libav (4:0.7.1-2) experimental; urgency=low
* Build against libx264. Closes: #418228, #440681
* Build against libmp3lame, Closes: #587904
* Build against xvidcore to enable xvid encoding
* use yasm on every architecture. Should allow building on the Hurd
— Reinhard Tartler <siretart@tauware.de> Tue, 26 Jul 2011 21:58:18 +0200
ze squeeze-backports (już jako Libav) lub deb-multimedia.
Offline
yossarian napisał(-a):
ze squeeze-backports (już jako Libav) lub deb-multimedia.
Wybacz, ale nie za bardzo rozumiem, nie siedziałem za dużo przy linuxie.
Co do ffmpeg apt-get install zwraca
ffmpeg jest już w najnowszej wersji.
Offline
Dodajesz repozytorium:
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
(lub repozytorium deb-multimedia)
Tu masz więcej informacji:
http://dug.net.pl/tekst/136/lista_repozytoriow_(sou … _dla_debiana/
i potem instalujesz:
aptitude update aptitude install -t squeeze-backports ffmpeg
Offline
Zwraca
libav (5:0.8.1-3) unstable; urgency=low * The ffmpeg program has been deprecated and replaced with avconv. The ffmpeg program is only provided for compatibility purposes and will be removed in a future release. For a list of the incompatible changes between the two programs, see /usr/share/doc/libav-tools/changelog.gz. -- Andres Mejia <amejia@debian.org> Thu, 29 Mar 2012 12:54:59 -0400 /tmp/tmpPanxW5 (END)
avconv, nie słyszałem o nim, czyli dać sobie spokój z ffmpeg?
Offline
To tylko informacja o rozłamie wśród deweloperów ffmpeg.
Sam ffmpeg jest tam zawarty (co masz tam napisane). Samego avconv nigdy nie używałem to nie wiem jak działa.
Jest jeszcze wersja z deb-multimedia, jeżeli w tym ffmpeg coś nie działa tak jak chcesz.
Offline
Serdecznie Ci dziękuje za pomoc yossarian! :)
Użyłem
deb http://security.debian.org/ squeeze/updates main deb-src http://security.debian.org/ squeeze/updates main
ffmpeg z libx264 działa jak należy :)
Offline
Trochę się zakręciłeś ;)
Prawdopodobnie używasz ffmpeg z repozytorium squeeze-backports, tylko wcześniej nie wcisnąłeś „q” żeby zamknąć tamto okienko z wypisanymi zmianami.
Dokładnie sprawdzisz to tak:
apt-cache policy ffmpeg
Offline
W momencie w którym wyskoczyło to,
libav (5:0.8.1-3) unstable; urgency=low * The ffmpeg program has been deprecated and replaced with avconv. The ffmpeg program is only provided for compatibility purposes and will be removed in a future release. For a list of the incompatible changes between the two programs, see /usr/share/doc/libav-tools/changelog.gz. -- Andres Mejia <amejia@debian.org> Thu, 29 Mar 2012 12:54:59 -0400 /tmp/tmpPanxW5 (END)
powinienem wcisnąć "q" :) ?
Offline
Tak :)
Tamto okienko to zapewne sprawka apt-listchanges.
Offline
To jeszcze większe dzięki za wyjaśnienie, bo właśnie nie wiedziałem co mam zrobić jak wyskoczyła ta informacja i dałem ctrl+c :)
Oczywiście miałeś racje :)
apt-cache policy ffmpeg ffmpeg: Zainstalowana: 5:0.7.15-dmo1 Kandydująca: 5:0.7.15-dmo1 Tabela wersji: *** 5:0.7.15-dmo1 0 500 http://www.deb-multimedia.org/ squeeze/main amd64 Packages 100 /var/lib/dpkg/status 4:0.5.10-1 0 500 http://debian.mirrors.ovh.net/debian/ squeeze/main amd64 Packages 500 http://security.debian.org/ squeeze/updates/main amd64 Packages
Offline
Siemen napisał(-a):
Oczywiście miałeś racje :)
No właśnie nie bo ostatecznie zainstalowałeś wersję z deb-multimedia :)
Zainstalowana: 5:0.7.15-dmo1
*** 5:0.7.15-dmo1 0
500 http://www.deb-multimedia.org/ squeeze/main amd64 Packages
Offline
Sorry, męczyłem się z debianem 3 dni i już ledwo co mózg mi pracuje ;)
Rzuciłem okiem na ostatnie linki i nie zauważyłem deb-multimedia, więc myślałem że to tamte pierwsze ;)
Jeszcze raz dziękuje za pomoc. Pozdrawiam
Offline