Amarok/Manual/Various/Moodbar/pl: Difference between revisions

    From KDE UserBase Wiki
    (Updating to match new version of source page)
    (Updating to match new version of source page)
    Line 3: Line 3:
    === Pasek nastroju ===
    === Pasek nastroju ===


    <span class="mw-translate-fuzzy">
    The ''Moodbar'' shows you the "mood" of a track, which you can then use to figure out when something interesting happens in the song.
    ''Pasek nastroju'' oficjalnie powraca w '''Amaroku''' 2.2.2. Jest to narzędzie do wykrywania "nastroju" utworu, które pozwala zobaczyć w którym miejscu piosenki dzieje się coś ciekawego.
    </span>


    <span class="mw-translate-fuzzy">
    In order for '''Amarok''' to display moodbars for your music, you will need the '''Moodbar''' program (see below for [[Special:myLanguage/Amarok/Manual/Various/Moodbar#Source Downloads|downloads]] and binary packages).   
    Aby '''Amarok''' analizował twoje pliki muzyczne pod kątem nastroju, potrzebny będzie program '''Moodbar''' (poniżej informacje o pobieraniu [[#Pliki źródłowe|plików źródłowych]] oraz pakietów binarnych).
    </span>  


    <span class="mw-translate-fuzzy">
    The '''Moodbar''' package requires '''GStreamer''' and various plugins depending on the filetypes you use (see [[Special:myLanguage/Amarok/Manual/Various/Moodbar#Supported Filetypes|Supported filetypes]]). You will ''not'' need the phonon-backend-gstreamer package to create .mood files.
    Pakiet '''Moodbar''' wymaga ''GStreamera'' oraz różnych pluginów, zależnie od tego, jakich typów plików używasz (zobacz: [[#Obsługiwane typy plików|Obsługiwane pliki]]). Pakiet phonon-backend-gstreamer '''nie''' będzie potrzebny do tworzenia plików .mood.
    </span>


    <span class="mw-translate-fuzzy">
    There are two parts to the new '''Moodbar''' implementation: the '''Moodbar''' package, which contains a program that takes a music file and generates a .mood file, and support code in the '''Amarok''' source, which runs the binary and displays the Moodbar. The '''Moodbar''' package depends on the ''GStreamer'' libraries. Without the '''Moodbar''' package, '''Amarok''' cannot generate the moodbars for your music.  
    Nowa implementacja '''Moodbara''' składa się z dwóch części: pakietu '''Moodbar''', który zawiera program generujący pliki .mood dla utworów oraz dodatkowego kodu w źródle '''Amaroka''', który włącza i wyświetla pasek nastroju. Pakiet '''Moodbar''' wymaga biblioteki ''GStreamer''. Bez pakietu '''Moodbar''' Amarok nie będzie analizował nastroju Twojej muzyki.
    </span>


    <span class="mw-translate-fuzzy">
    As an alternative, there is a new script which will create moodbar files for tracks in an '''Amarok''' playlist; this is an exception to the above. The script needs nothing but '''Amarok''' to work, but it only creates the .mood files as they are played in the '''Playlist'''.
    Alternatywą jest nowy skrypt, który może tworzyć pliki Moodbara dla utworów na liście odtwarzania '''Amaroka'''. Stanowi on wyjątek od powyższych wymagań - do działania nie wymaga niczego poza Amarokiem, jednak tworzy pliki .mood tylko dla plików z ''listy odtwarzania''.
    </span>


    <span class="mw-translate-fuzzy">
    The '''Moodbar''' is due to the work of Gavin Wood and Simon O'Keefe, who designed the algorithms; their original paper is [http://cratoo.de/amarok/ismir-crc.pdf here].  
    ''Moodbar'' istnieje dzięki Gavinowi Woodowi oraz Simonowi O'Kneefe, którzy stworzyli potrzebne algorytmy. Ich oryginalną pracę można znaleźć [http://cratoo.de/amarok/ismir-crc.pdf tutaj].
    </span>


    ==== Wymagania ====
    ==== Wymagania ====


    <span class="mw-translate-fuzzy">
    * The '''Moodbar''' binary, in your PATH (it should be listed upon running {{Input|1=which moodbar}}from a console) &mdash; Remember to configure the '''Moodbar''' package with {{Input|1=./configure --prefix=`pkg-config --variable=prefix gstreamer-0.10`}}
    * Wykonywalny plik '''Moodbar''' w PATH (powinien wyświetlić się po wpisaniu {{Input|1=which moodbar}}w konsoli) -- pamiętaj o konfigurowaniu '''Moodbara''' z {{Input|1=./configure --prefix=`pkg-config --variable=prefix gstreamer-0.10`}}
    </span>


    <span class="mw-translate-fuzzy">
    * The GStreamer 0.10 library and [[Special:myLanguage/Amarok/Manual/Various/Moodbar#Supported Filetypes|plugins]] for the formats you want '''Moodbar''' to be able to analyse. A GStreamer 1.0 based fork is also available, see [[Special:myLanguage/Amarok/Manual/Various/Moodbar#Source Downloads|below]].
    * Biblioteka ''GStreamer'' 0.10 i [[#Obsługiwane typy plików|pluginy]] dla formatów, z którymi będziesz używał '''Moodbara'''.
    </span>


    <span class="mw-translate-fuzzy">
    * The ''Fastest Fourier Transform In The West'' ([http://www.fftw.org fftw.org]) FFTW library version 3.0 or above (at least single-precision floating point version - libfftw3f) &mdash; If your platform does not provide this for you or you need to compile your own version, remember to configure the  FFTW package with {{Input|1=./configure --enable-single}}
    * Biblioteka ''Fastest Fourier Transform In The West'' (http://www.fftw.org) ''FFTW'' w wersji 3.0 lub wyższej (numer wersji z co najmniej jednym miejscem po przecinku - libfftw3f) -- Jeśli Twój system nie zapewnia tej biblioteki, lub potrzebujesz skompilować własną wersję, pamiętaj by konfigurować z {{Input|1=./configure --enable-single}}
    </span>


    <span class="mw-translate-fuzzy">
    * A version of '''Amarok''' with a <menuchoice>Use moods</menuchoice> option in the <menuchoice>General</menuchoice> section of the configuration screen. This means 1.4.4 or higher in the 1.4 series or 2.2.2 or higher in the 2.x series.
    * Wersja '''Amaroka''' z opcją <menuchoice>Pokaż pasek nastroju</menuchoice> w sekcji Ogólne w menu konfiguracji. To znaczy wersja 1.4.4 lub wyższa dla serii 1.4 lub 2.2.2 lub wyższa dla serii 2.x.
    </span>


    <span class="mw-translate-fuzzy">
    {{Info|Systems with package managers should automatically install the GStreamer plugins and FFTW along with the Moodbar package; this information is provided mostly for people who want or need to compile from source or manually install packages.}}
    {{Info/pl|Systemy zawierające menedżer pakietów powinny automatycznie instalować pluginy ''GStreamer'' oraz ''FFTW'' razem z '''Moodbarem'''. Powyższa informacja jest zamieszczona głównie dla osób, które chcą lub muszą skompilować program ze źródła lub ręcznie zainstalować pakiety.}}
    </span>


    ==== Sposób użycia ====
    ==== Sposób użycia ====


    <span class="mw-translate-fuzzy">
    Currently .mood files ''must'' be generated manually. '''Amarok''' cannot do it for you. To do this for your entire collection, use the [[Special:myLanguage/Amarok/Manual/Various/Moodbar#Moodbar File Generation Script|Moodbar File Generation Script]] described below.
    Obecnie pliki .mood są generowane ręcznie. Aby dokonać tego dla całej swojej kolekcji użyj [[#Skrypt do generowania plików Moodbara|skryptu do generowania plików Moodbara]] opisanego poniżej.
    </span>


    <span class="mw-translate-fuzzy">
    To enable the display of moodbars in '''Amarok''', activate it in the configuration: <menuchoice>Settings -> Configure Amarok -> General -> Show Moodbar in Progress Slider</menuchoice>. Moodbars should now appear in the track sliders in the player window and '''Playlist'''; there will also be a mood field that you may add to your playlist layouts.
    Aby włączyć wyświetlanie pasków nastroju w '''Amaroku''', zaznacz odpowiednią opcję w menu konfiguracyjnym: <menuchoice>Ustawienia -> Konfiguruj -> Ogólne -> Pokaż pasek nastroju w suwaku postępu</menuchoice>. Pasek nastroju powinien się teraz pojawić w suwaku postępu w oknie odtwarzacza i w oknie playlisty. Pojawi się także pole "nastrój", które będziesz mógł dodać do swoich szablonów list odtwarzania.
    </span>


    ====Instalacja====
    ====Instalacja====
    Line 63: Line 37:
    ===== Pliki źródłowe =====
    ===== Pliki źródłowe =====


    <span class="mw-translate-fuzzy">
    :Latest release: [http://pwsp.net/~qbob/moodbar-0.1.2.tar.gz moodbar-0.1.2.tar.gz] &mdash; this is the Moodbar source package, which contains the '''Moodbar''' program (which generates .mood files from music files), and a GStreamer plugin that does the work. The Moodbar package  needs GStreamer 0.10.* installed, plus the 0.10.* version of [[Special:myLanguage/Amarok/Manual/Various/Moodbar#Supported Filetypes|various plugins]]. Be sure to install the Moodbar package into the ''same prefix'' as GStreamer &mdash; follow the instructions in the INSTALL file.
    :Najnowsze wydanie: [http://pwsp.net/~qbob/moodbar-0.1.2.tar.gz moodbar-0.1.2.tar.gz] -- pakiet źródłowy '''Moodbar''', który zawiera program '''Moodbar''' (generujący pliki .mood z plików muzycznych) oraz niezbędny do działania plugin ''GStreamer''. Pakiet '''Moodbar''' wymaga ''GStreamera'' 0.10.* oraz wersji 0.10.* [[#Obsługiwane typt plików|odpowiednich pluginów]]. Koniecznie zainstaluj pakiet '''Moodbar''' dokładnie '''w tym samym miejscu''' gdzie ''GStreamer'' -- trzymaj się instrukcji zawartych w pliku INSTALL.
     
    </span> 
    As the Moodbar version above uses nowadays obsolete GStreamer 0.10 and the original source code link is dead, sources have been uploaded to [https://github.com/Mazhoon/moodbar GitHub] and a forked version supporting GStreamer 1.0 has been developed.


    Jeśli znajdziesz jakiekolwiek błędy, prosimy o raport na [http://bugs.kde.org bugs.kde.org].
    Jeśli znajdziesz jakiekolwiek błędy, prosimy o raport na [http://bugs.kde.org bugs.kde.org].
    Line 71: Line 45:
    ===== Pakiety Debiana =====
    ===== Pakiety Debiana =====


    <span class="mw-translate-fuzzy">
    A package for Moodbar is now available in Debian unstable. Simply run {{Input|1=apt-get install moodbar}}. You will likely also want to install gstreamer0.10-plugins-ugly, gstreamer0.10-plugins-good, and gstreamer0.10-plugins-bad for format support.
    Pakiet '''Moodbar''' jest dostępny w repozytorium Debiana. Po prostu użyj {{Input|1=apt-get install moodbar}} Prawdopodobnie będą Ci też potrzebne: ''gstreamer0.10-plugins-ugly'', ''gstreamer0.10-plugins-good'' i ''gstreamer0.10-plugins-bad'' do obsługi różnych formatów plików.
    </span>


    ===== Pakiety dla Ubuntu oraz Kubuntu =====
    ===== Pakiety dla Ubuntu oraz Kubuntu =====


    <span class="mw-translate-fuzzy">
    A package for Moodbar is available in the official package repository; just ensure the universe section is activated (which should be default anyway). Just install the package moodbar with your preferred package manager ('''Kpackagekit''', '''Aptitude''', '''Adept''', '''Synaptic'''). You will likely also want to install gstreamer0.10-plugins-ugly, gstreamer0.10-plugins-good, and gstreamer0.10-plugins-bad for format support.
    Pakiet '''Moodbar''' jest dostępny w oficjalnym repozytorium -- upewnij się tylko, że repozytorium ''universe'' jest aktywne (jest tak domyślnie). Zainstaluj pakiet 'moodbar' przy pomocy swojego ulubionego menedżera pakietów (Kpackageit, Aptitude, Adept, Synaptic). Prawdopodobnie będą Ci też potrzebne: ''gstreamer0.10-plugins-ugly'', ''gstreamer0.10-plugins-good'' i ''gstreamer0.10-plugins-bad'' do obsługi różnych formatów plików.
    </span>


    Lub wklej poniższą linię w '''Firefoksie''' lub '''Konquerorze''' i wciśnij <keycap>Enter</keycap>.
    Lub wklej poniższą linię w '''Firefoksie''' lub '''Konquerorze''' i wciśnij <keycap>Enter</keycap>.
    Line 87: Line 57:
    ===== Ebuildy Gentoo =====
    ===== Ebuildy Gentoo =====


    <span class="mw-translate-fuzzy">
    Moodbar is available in Portage, simply {{Input|1=emerge moodbar}} Unofficial ebuilds are no longer required.
    '''Moodbar''' jest dostępny w Protage, po prostu użyj {{Input|1=emerge moodbar}} Nieoficjalne ebuildy nie są już więcej potrzebne.
    </span>


    ===== Paczki RPM =====
    ===== Paczki RPM =====


    <span class="mw-translate-fuzzy">
    If you are a rpm-based distro user, you can build a .rpm using rpmbuild with latest
    Jeśli jesteś użytkownikiem dystrybucji opartej na paczkach RPM, możesz, używając 'rpmbuild', skompilować paczkę z [http://cvs.pld-linux.org/cgi-bin/cvsweb/SPECS/gstreamer-plugins-moodbar.spec gstreamer-plugins-moodbar.spec]. Pakiet będzie niebawem dostępny w dystrybucji [http://pld-linux.org PLD-linux].
    [http://cvs.pld-linux.org/cgi-bin/cvsweb/SPECS/gstreamer-plugins-moodbar.spec gstreamer-plugins-moodbar.spec]. The binary package will be soon available for [http://pld-linux.org PLD-linux] distro.
    </span>


    ===== Fedora =====
    ===== Fedora =====


    <span class="mw-translate-fuzzy">
    In Fedora 7 and higher (up to 16 as of this writing) Moodbar is available in the default repositories. Simply install it with your PackageKit GUI or with the following yum command:
    W Fedorze 7 oraz nowszych (do 16 w momencie pisania artykułu) '''Moodbar''' jest dostępny w domyślnym repozytorium. Po prostu zainstaluj go używając swojego PackageKit GUI lub przy po pomocy następującej komendy:
    </span>


    {{Input|1=yum install moodbar}}
    {{Input|1=yum install moodbar}}
    Line 107: Line 72:
    ===== Pakiety openSUSE =====
    ===== Pakiety openSUSE =====


    <span class="mw-translate-fuzzy">
    openSUSE 11.0 and later, automatically install the following packages:
    openSUSE 11.0 oraz nowsze automatycznie instalują następujące pakiety:
    *gstreamer-0_10-fluendo-mp3
    *''gstreamer-0_10-fluendo-mp3''
    *gstreamer-0_10-plugins-base
    *''gstreamer-0_10-plugins-base''
    </span>


    <span class="mw-translate-fuzzy">
    Also, if your songs contain ID3 tags, you must install
    Jeśli Twoje piosenki zawierają tagi ID3 musisz dodatkowo zainstalować
    *gstreamer-0_10-plugins-good
    *''gstreamer-0_10-plugins-good''
    </span>


    <span class="mw-translate-fuzzy">
    ====== Moodbar Installation ======
    '''Instalacja Moodbara'''
    </span>


    <span class="mw-translate-fuzzy">
    1-Click Install for openSUSE 11. - just choose your version and installation procedure will do the rest:
    Szybka instalacja dla openSUSE 11.* - po prostu wybierz odpowiednią wersję, a instalator wykona całą resztę za Ciebie:
    * [http://software.opensuse.org/ymp/home:dstoecker/openSUSE_11.2/moodbar.ymp openSUSE 11.2]
    * [http://software.opensuse.org/ymp/home:dstoecker/openSUSE_11.2/moodbar.ymp openSUSE 11.2]
    * [http://software.opensuse.org/ymp/home:dstoecker/openSUSE_11.1/moodbar.ymp openSUSE 11.1]
    * [http://software.opensuse.org/ymp/home:dstoecker/openSUSE_11.1/moodbar.ymp openSUSE 11.1]
    </span>


    <span class="mw-translate-fuzzy">
    To install, add the correct repository for your version of openSUSE to '''YaST''' then make sure the following packages are installed:
    Aby zainstalować dodaj odpowiednie dla Twojej wersji openSUSE repozytorium do '''YaST''' oraz upewnij się, że następujące pakiety są zainstalowane:
    * gstreamer-0_10-plugins-good
    * ''gstreamer-0_10-plugins-good''
    * gstreamer-0_10-plugins-ugly
    * ''gstreamer-0_10-plugins-ugly''
    * gstreamer-0_10-plugins-moodbar
    * ''gstreamer-0_10-plugins-moodbar''
    * mad
    * ''mad''
    </span>


    Jeśli potrzebujesz informacji na temat dodawania repozytoriów odwiedź  [http://en.opensuse.org/SDB:Add_package_repositories openSUSE wiki].
    Jeśli potrzebujesz informacji na temat dodawania repozytoriów odwiedź  [http://en.opensuse.org/SDB:Add_package_repositories openSUSE wiki].


    <span class="mw-translate-fuzzy">
    If you are using the '''Smart''' software management tool, add the channel by entering the following at the command line, remember to change the URL to match your version of openSUSE: {{Input|1=<nowiki>smart channel --add http://software.opensuse.org/download/home:/d7/openSUSE_10.2/home:d7.repo</nowiki>}}Then enter {{Input|1=smart update home:d7}}You can now install the required packages by {{Input|1=smart install gstreamer10-plugins-moodbar}}Dependencies are resolved automatically.
    Jeśli używasz narzędzia do zarządzania oprogramowaniem '''Smart''' dodaj kanał, używając następującej komendy (pamiętaj o zmianie URL na odpowiedni dla Twojej wersji openSUSE): {{Input|1=smart channel --add http://software.opensuse.org/download/home:/d7/openSUSE_10.2/home:d7.repo}} Następnie wpisz  {{Input|1=smart update home:d7}} Teraz możesz zainstalować wymagane pakiety wpisując  {{Input|1=smart install gstreamer10-plugins-moodbar}} Zależności zostaną doinstalowane automatycznie.
    </span>


    ===== Pakiety Mandrivy =====
    ===== Pakiety Mandrivy =====
    Line 147: Line 100:
    Potem po prostu zainstaluj następujące pakiety:
    Potem po prostu zainstaluj następujące pakiety:


    <span class="mw-translate-fuzzy">
    * gstreamer0.10-moodbar
    * ''gstreamer0.10-moodbar''
    * gstreamer0.10-plugins-ugly
    * ''gstreamer0.10-plugins-ugly''
    * gstreamer0.10-plugins-good
    * ''gstreamer0.10-plugins-good''
    * gstreamer0.10-plugins-bad
    * ''gstreamer0.10-plugins-bad''
    </span>


    ===== Arch Linux =====
    ===== Arch Linux =====


    <span class="mw-translate-fuzzy">
    There is a PKGBUILD for Moodbar in the [http://aur.archlinux.org Arch User Repository (AUR)] available [http://aur.archlinux.org/packages.php?ID=6552 here].
    W [http://aur.archlinux.org Arch User Repository (AUR)] znajduje się PKGBUILD dla '''Moodbara''', dostępny [http://aur.archlinux.org/packages.php?ID=6552 tutaj].
    </span>


    Więcej informacji na temat AUR oraz używania PKGBUILDów w [http://wiki.archlinux.org/index.php/AUR_User_Guidelines AUR User Guidelines].
    Więcej informacji na temat AUR oraz używania PKGBUILDów w [http://wiki.archlinux.org/index.php/AUR_User_Guidelines AUR User Guidelines].
    Line 237: Line 186:
      done</syntaxhighlight>}}
      done</syntaxhighlight>}}


    <span class="mw-translate-fuzzy">
    {{Remember|2=Dead Links|1=The links are not available anymore. I don't know if it should be updated or deleted}}
    Na [https://github.com/aendruk/moodbar-preview-cli Githubie] znajduje się inny skrypt, wyświetlający podgląd tworzonych plików w konsoli, w momencie ich tworzenia. Możesz dowiedzieć się więcej na jego temat na [https://aendruk.wordpress.com/2011/02/13/moodbar-previews-on-the-command-line/ blogu autora].
    There is another script at [https://github.com/aendruk/moodbar-preview-cli Github], which shows previews of the generated mood files on the command line while they are being generated. Read more about it at the [https://aendruk.wordpress.com/2011/02/13/moodbar-previews-on-the-command-line/ author's blog].
    </span>


    ==== Rozwiązywanie problemów ====
    ==== Rozwiązywanie problemów ====


    <span class="mw-translate-fuzzy">
    * If the '''Moodbar''' executable gives you a ''bus error'', that almost always means it can't decode (or can't find) your file. Take a look at the [[Special:myLanguage/Amarok/Manual/Various/Moodbar#Supported Filetypes|supported file types]] below for ideas on which GStreamer plugins to install. You can also try the command below to test whether GStreamer can decode your file:{{Input|1=gst-launch filesrc location=[file] ! decodebin ! fakesink}}
    * Jeśli '''Moodbar''' zwraca ''bus error'', to prawie zawsze oznacza, że nie może odczytać (lub znaleźć) pliku. Przejrzyj [[#Supported Filetypes|obsługiwane typy plików]] by wiedzieć jakich pluginów ''GStreamer'' potrzebujesz. Możesz także wykonać poniższą komendę, by sprawdzić czy ''GStreamer'' potrafi odczytać plik: {{Input|1=gst-launch filesrc location=[file] ! decodebin ! fakesink}}
    * Jeśli używasz plugina ffmpeg do obsługi plików mp3 możesz otrzymywać dziwne błędy ''bus error''. Rozwiązaniem jest zaprzestanie używania ffmpeg, ze względu na niezliczoną ilość błędów, które zawiera -- w zamian używaj mad.
    * Jeśli '''Moodbar''' informuje, że nie może znaleźć danego elementu, to znaczy wyświetla błąd podobny do: {{Output|1=Could not create element of type fftwspectrum, please install it.}}
    :to zwykle oznacza, że albo nie zainstalowałeś odpowiedniego pluginu (zobacz listę pluginów  [[#Supported Filetypes|tutaj]]), albo zainstalowałeś '''Moodbara''' gdzie indziej niż '''GStreamera'''. Druga opcja ma miejsce jeśli libmoodbar.so i libgstdecodebin.so są w różnych katalogach. Przeczytaj INSTALL by uzyskać instrukcję o poprawnej instalacji moodbara. Z drugiej strony, jeśli ''wiesz co robisz'', prostszym wyjściem może być zmodyfikowanie zmiennej środowiskowej <tt>GST_PLUGIN_PATH</tt>.
    * Jeśli zastanawiasz się dlaczego '''Moodbar''' nie działa poprawnie (w ogóle lub tylko dla danego pliku) uruchom poniższą komendę ([file] to nazwa pliku z muzyką): {{Input|1=moodbar -o test.mood [file]}}
    * Jeśli masz zainstalowane kilka wersji ''GStreamer'' upewnij się, że wszystkie potrzebne pluginy są zainstalowane '''dla wersji 0.10.*''' -- różne wersje ''nie mogą'' używać swoich pluginów.
    </span>


    * If you are using the ffmpeg plugin to decode mp3s, you may also receive mysterious bus errors. The solution is to stop using the ffmpeg plugin, as it is extremely buggy &mdash; use mad instead.
    * If you are using the ffmpeg plugin to decode mp3s, you may also receive mysterious bus errors. The solution is to stop using the ffmpeg plugin, as it is extremely buggy &mdash; use mad instead.
    Line 262: Line 203:
    ==== Obsługiwane typy plików ====
    ==== Obsługiwane typy plików ====


    <span class="mw-translate-fuzzy">
    You will need various Gstreamer plugins to enable '''Moodbar''' to analyze your files. Here is a list of the plugins you will need; make sure to install the ''0.10.* version'' of each plugin:
    Będziesz potrzebował różnych pluginów ''GStreamer'' by umożliwić '''Moodbarowi''' analizę plików. Poniżej znajduje się lista pluginów, których możesz potrzebować. Upewnij się, że instalujesz '''wersję 0.10.*''' każdego z nich:
    </span>


    <span class="mw-translate-fuzzy">
    {| border="1" cellpadding="5" <!--}-->
    {| border="1" cellpadding="5"
    ! Filetype !! Required Plugin !! Note
    ! Typ pliku !! Potrzebny plugin !! Uwagi
    |-
    | Wszystkie || gstreamer-0.10.*, gst-plugins-base, gst-plugins-good
    |-
    | mp3 || gst-plugins-mad (w gst-plugins-ugly) || ffmpeg sprawia problemy - ''nie używać'' dla plików mp3
    |-
    | ogg || gst-plugins-vorbis, gst-plugins-ogg
    |-
    | flac || gst-plugins-flac
    |-
    | mp4 || gst-plugins-faad, gst-plugins-bad
    |-
    | musepack || gst-plugins-musepack
    |-
    | wma || gst-plugins-ffmpeg
    |}
    </span>
    |-
    |-
    | All || gstreamer-0.10.*, gst-plugins-base, gst-plugins-good
    | All || gstreamer-0.10.*, gst-plugins-base, gst-plugins-good
    Line 312: Line 234:
    }}
    }}


    <span class="mw-translate-fuzzy">
    [[Category:Amarok2.8]]
    [[Category:Amarok/pl]]
    [[Category:Multimedia]]
    [[Category:Multimedia/pl]]
    [[Category:Tutorials]]
    [[Category:Samouczki/pl  ]]
    </span>

    Revision as of 06:00, 6 March 2018

    Pasek nastroju

    The Moodbar shows you the "mood" of a track, which you can then use to figure out when something interesting happens in the song.

    In order for Amarok to display moodbars for your music, you will need the Moodbar program (see below for downloads and binary packages).

    The Moodbar package requires GStreamer and various plugins depending on the filetypes you use (see Supported filetypes). You will not need the phonon-backend-gstreamer package to create .mood files.

    There are two parts to the new Moodbar implementation: the Moodbar package, which contains a program that takes a music file and generates a .mood file, and support code in the Amarok source, which runs the binary and displays the Moodbar. The Moodbar package depends on the GStreamer libraries. Without the Moodbar package, Amarok cannot generate the moodbars for your music.

    As an alternative, there is a new script which will create moodbar files for tracks in an Amarok playlist; this is an exception to the above. The script needs nothing but Amarok to work, but it only creates the .mood files as they are played in the Playlist.

    The Moodbar is due to the work of Gavin Wood and Simon O'Keefe, who designed the algorithms; their original paper is here.

    Wymagania

    • The Moodbar binary, in your PATH (it should be listed upon running
      which moodbar
      from a console) — Remember to configure the Moodbar package with
      ./configure --prefix=`pkg-config --variable=prefix gstreamer-0.10`
    • The GStreamer 0.10 library and plugins for the formats you want Moodbar to be able to analyse. A GStreamer 1.0 based fork is also available, see below.
    • The Fastest Fourier Transform In The West (fftw.org) FFTW library version 3.0 or above (at least single-precision floating point version - libfftw3f) — If your platform does not provide this for you or you need to compile your own version, remember to configure the FFTW package with
      ./configure --enable-single
    • A version of Amarok with a Use moods option in the General section of the configuration screen. This means 1.4.4 or higher in the 1.4 series or 2.2.2 or higher in the 2.x series.

    Information

    Systems with package managers should automatically install the GStreamer plugins and FFTW along with the Moodbar package; this information is provided mostly for people who want or need to compile from source or manually install packages.


    Sposób użycia

    Currently .mood files must be generated manually. Amarok cannot do it for you. To do this for your entire collection, use the Moodbar File Generation Script described below.

    To enable the display of moodbars in Amarok, activate it in the configuration: Settings -> Configure Amarok -> General -> Show Moodbar in Progress Slider. Moodbars should now appear in the track sliders in the player window and Playlist; there will also be a mood field that you may add to your playlist layouts.

    Instalacja

    Pliki źródłowe
    Latest release: moodbar-0.1.2.tar.gz — this is the Moodbar source package, which contains the Moodbar program (which generates .mood files from music files), and a GStreamer plugin that does the work. The Moodbar package needs GStreamer 0.10.* installed, plus the 0.10.* version of various plugins. Be sure to install the Moodbar package into the same prefix as GStreamer — follow the instructions in the INSTALL file.

    As the Moodbar version above uses nowadays obsolete GStreamer 0.10 and the original source code link is dead, sources have been uploaded to GitHub and a forked version supporting GStreamer 1.0 has been developed.

    Jeśli znajdziesz jakiekolwiek błędy, prosimy o raport na bugs.kde.org.

    Pakiety Debiana

    A package for Moodbar is now available in Debian unstable. Simply run

    apt-get install moodbar

    . You will likely also want to install gstreamer0.10-plugins-ugly, gstreamer0.10-plugins-good, and gstreamer0.10-plugins-bad for format support.

    Pakiety dla Ubuntu oraz Kubuntu

    A package for Moodbar is available in the official package repository; just ensure the universe section is activated (which should be default anyway). Just install the package moodbar with your preferred package manager (Kpackagekit, Aptitude, Adept, Synaptic). You will likely also want to install gstreamer0.10-plugins-ugly, gstreamer0.10-plugins-good, and gstreamer0.10-plugins-bad for format support.

    Lub wklej poniższą linię w Firefoksie lub Konquerorze i wciśnij Enter.

    apt://moodbar,gstreamer0.10-plugins-ugly,gstreamer0.10-plugins-good,gstreamer0.10-plugins-bad?section=universe?refresh=yep
    Ebuildy Gentoo

    Moodbar is available in Portage, simply

    emerge moodbar

    Unofficial ebuilds are no longer required.

    Paczki RPM

    If you are a rpm-based distro user, you can build a .rpm using rpmbuild with latest gstreamer-plugins-moodbar.spec. The binary package will be soon available for PLD-linux distro.

    Fedora

    In Fedora 7 and higher (up to 16 as of this writing) Moodbar is available in the default repositories. Simply install it with your PackageKit GUI or with the following yum command:

    yum install moodbar
    Pakiety openSUSE

    openSUSE 11.0 and later, automatically install the following packages:

    • gstreamer-0_10-fluendo-mp3
    • gstreamer-0_10-plugins-base

    Also, if your songs contain ID3 tags, you must install

    • gstreamer-0_10-plugins-good
    Moodbar Installation

    1-Click Install for openSUSE 11. - just choose your version and installation procedure will do the rest:

    To install, add the correct repository for your version of openSUSE to YaST then make sure the following packages are installed:

    • gstreamer-0_10-plugins-good
    • gstreamer-0_10-plugins-ugly
    • gstreamer-0_10-plugins-moodbar
    • mad

    Jeśli potrzebujesz informacji na temat dodawania repozytoriów odwiedź openSUSE wiki.

    If you are using the Smart software management tool, add the channel by entering the following at the command line, remember to change the URL to match your version of openSUSE:

    smart channel --add http://software.opensuse.org/download/home:/d7/openSUSE_10.2/home:d7.repo

    Then enter

    smart update home:d7

    You can now install the required packages by

    smart install gstreamer10-plugins-moodbar

    Dependencies are resolved automatically.

    Pakiety Mandrivy

    Po pierwsze musisz dodać repozytoria PLF. Wejdź na easyurpmi.zarb.org i dodaj je do swojej listy repozytoriów. Potem po prostu zainstaluj następujące pakiety:

    • gstreamer0.10-moodbar
    • gstreamer0.10-plugins-ugly
    • gstreamer0.10-plugins-good
    • gstreamer0.10-plugins-bad
    Arch Linux

    There is a PKGBUILD for Moodbar in the Arch User Repository (AUR) available here.

    Więcej informacji na temat AUR oraz używania PKGBUILDów w AUR User Guidelines.

    FreeBSD

    Port znajduje się audio/gstreamer-plugins-moodbar tutaj.

    Aby zainstalować port:

    cd /usr/ports/audio/gstreamer-plugins-moodbar/ && make install clean

    Aby dodać pakiet:

    pkg_add -r gstreamer-plugins-moodbar

    Skrypt do generowania plików Moodbara

    Poniżej znajduje się prosty skrypt basha, który doda pliki .mood do całej Twojej kolekcji. Dodaje on pliki do każdego pliku o odpowiednim rozszerzeniu w obecnym katalogu oraz wszystkich podkatalogach, zatem najlepiej jest uruchomić go w głównym katalogu z muzyką.

    #!/bin/bash
     DIR=${1:-.}
     LAST=~/.moodbar-lastreadsong
     C_RET=0
     
     control_c()        # run if user hits control-c
     {
       echo "" > "$LAST"
       echo "Exiting..."
       exit
     }
     
     if [ -e "$LAST" ]; then
       read filetodelete < "$LAST"
       rm "$filetodelete" "$LAST"
     fi
     exec 9< <(find "$DIR" -type f -regextype posix-awk -iregex '.*\.(mp3|ogg|flac|wma)') # you may need to add m4a and mp4
     while read i
     do
       TEMP="${i%.*}.mood"
       OUTF=`echo "$TEMP" | sed 's#\(.*\)/\([^,]*\)#\1/.\2#'`
       trap 'control_c "$OUTF"' INT
       if [ ! -e "$OUTF" ] || [ "$i" -nt "$OUTF" ]; then
         moodbar -o "$OUTF" "$i" || { C_RET=1; echo "An error occurred!" >&2; }
       fi
     done <&9
     exec 9<&-
     
     exit $C_RET
    

    Skopiuj i wklej cały skrypt do pliku tekstowego o nazwie moodbar.sh w Twoim katalogu z muzyką i uruchom następujące komendy:

    cd /path/to/music
     bash moodbar.sh

    Gdyby powyższy sposób nie zadziałał, możesz spróbować:

    chmod +x moodbar.sh
     ./moodbar.sh

    Dla dużych kolekcji może to wymagać niezwykle długiego czasu! Pamiętaj, że paski nastroju nie pojawią się w Amaroku dopóki Amarok nie przeskanuje ponownie kolekcji. Utworzone pliki mood będą poprzedzone kropkami, lub będą plikami ukrytymi - pamiętaj o tym jeśli nie będziesz mógł znaleźć żadnego z nich.

    Poniżej znajduje się oparta na powyższym skrypcie alternatywa dla procesorów wielordzeniowych:

    #!/bin/bash
     NUMCPU="$(grep ^processor /proc/cpuinfo | wc -l)"
     
     find . -type f -regextype posix-awk -iregex '.*\.(mp3|ogg|flac|wma)' | while read i ; do
     
            while [ `jobs -p | wc -l` -ge $NUMCPU ] ; do
                    sleep 0.1
            done
     
            TEMP="${i%.*}.mood"
            OUTF=`echo "$TEMP" | sed 's#\(.*\)/\([^,]*\)#\1/.\2#'`
            if [ ! -e "$OUTF" ] ; then
                    moodbar -o "$OUTF" "$i" &
            fi
     done
    

    Dead Links

    The links are not available anymore. I don't know if it should be updated or deleted

    There is another script at Github, which shows previews of the generated mood files on the command line while they are being generated. Read more about it at the author's blog.

    Rozwiązywanie problemów

    • If the Moodbar executable gives you a bus error, that almost always means it can't decode (or can't find) your file. Take a look at the supported file types below for ideas on which GStreamer plugins to install. You can also try the command below to test whether GStreamer can decode your file:
      gst-launch filesrc location=[file] ! decodebin ! fakesink
    • If you are using the ffmpeg plugin to decode mp3s, you may also receive mysterious bus errors. The solution is to stop using the ffmpeg plugin, as it is extremely buggy — use mad instead.
    • If the Moodbar executable tells you that it can't find an element — i.e., it gives an error message like
      Could not create element of type fftwspectrum, please install it.
      — that usually means that you either don't have the required plugins installed (see the plugin list here), or that you didn't install the Moodbar package in the same prefix as GStreamer. If libmoodbar.so and libgstdecodebin.so are not in the same directory, then Moodbar is not installed in the same prefix as GStreamer. Please read the INSTALL file for instructions on how to configure the moodbar package correctly. Alternatively, if you know what you're doing, it may be easier for you to take a look at the GST_PLUGIN_PATH environment variable.
    • If you're wondering why the Moodbar isn't working, either not working at all or not working for a particular file, run the command below, where [file] is a music file:
      moodbar -o test.mood [file]
    • If you have multiple versions of GStreamer installed, make sure all of the required plugins are installed for version 0.10.* -- different versions cannot use each other's plugins.

    Obsługiwane typy plików

    You will need various Gstreamer plugins to enable Moodbar to analyze your files. Here is a list of the plugins you will need; make sure to install the 0.10.* version of each plugin:

    Filetype Required Plugin Note
    All gstreamer-0.10.*, gst-plugins-base, gst-plugins-good
    mp3 gst-plugins-mad (in gst-plugins-ugly) ffmpeg plugin has problems; do not use for mp3
    ogg gst-plugins-vorbis, gst-plugins-ogg
    flac gst-plugins-flac
    mp4 gst-plugins-faad, gst-plugins-bad
    musepack gst-plugins-musepack
    wma gst-plugins-ffmpeg

    Zrzuty ekranu

    Pasek nastroju w suwaku postępu w Amaroku 2
    Pasek nastroju w suwaku postępu w Amaroku 2