Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Multimédia => Téma založeno: mafian 08 Dubna 2021, 15:57:55
-
Ahoj všem, jsem tu nový tak mě snad nebudete kamenovat.
Nainstaloval jsem si ubuntu na nuc a rozběhl na něm vše co jsem chtěl mít funkční ( tvheadend, jdownloader, home assistant apod. ).
Jediné co mi nefunguje a už nevím kam se obrátit je, že když spustím tvheadend tak nejde streamovat iptv. V logu tvheadend se objeví pouze "/usr/share/ffmpeg: Permission denied". Poradíte mi prosím kde může být chyba? U práv složky ffmpeg mám vlastník root, práva 777.
-
Zkus změňit vlastnictví na sebe:
sudo chown uživatel:uživatel /usr/share/ffmpeg
-
Super děkuji, převzal jsem vlastnictví. Zítra vyzkouším jestli to zkousne i tvheadend :)
-
Tak jsem zkontroloval práva, a mám práva ke složce i ke všem souborům v ní, ale tvheadend stále píše permission denied. Uživatele hts jsem přidal do své skupiny, která má teď práva ke složce ffmpeg a dál nevím co by se ještě dalo dělat :(
Práva vypadají takhle:
mafian@mafian-desktop:~$ ls -la /usr/bin/tvheadend
-rwxr-xr-x 1 root root 22530720 lis 15 2019 /usr/bin/tvheadend
mafian@mafian-desktop:~$ ls -la /usr/share/ffmpeg
celkem 60
drwxrwxrwx 2 mafian mafian 4096 dub 8 11:51 .
drwxr-xr-x 262 mafian mafian 12288 dub 8 13:09 ..
-rwxrwxrwx 1 mafian mafian 21233 úno 21 21:59 ffprobe.xsd
-rwxrwxrwx 1 mafian mafian 227 úno 21 21:59 libvpx-1080p.ffpreset
-rwxrwxrwx 1 mafian mafian 227 úno 21 21:59 libvpx-1080p50_60.ffpreset
-rwxrwxrwx 1 mafian mafian 219 úno 21 21:59 libvpx-360p.ffpreset
-rwxrwxrwx 1 mafian mafian 227 úno 21 21:59 libvpx-720p.ffpreset
-rwxrwxrwx 1 mafian mafian 227 úno 21 21:59 libvpx-720p50_60.ffpreset
-
Tak jsem zkontroloval práva, a mám práva ke složce i ke všem souborům v ní, ale tvheadend stále píše permission denied. Uživatele hts jsem přidal do své skupiny, která má teď práva ke složce ffmpeg a dál nevím co by se ještě dalo dělat :(
A jak máš ten tvheadend nainstalovaný? Není to náhodou snap?
-
Instaloval jsem podle tohohle:
https://tvheadend.org/projects/tvheadend/wiki/AptRepositories
-rwxr-xr-x 1 root root 22530720 lis 15 2019 /usr/bin/tvheadend
-
Instaloval jsem podle tohohle:
https://tvheadend.org/projects/tvheadend/wiki/AptRepositories
-rwxr-xr-x 1 root root 22530720 lis 15 2019 /usr/bin/tvheadend
Takže z tohohle repozitáře?
https://launchpad.net/~mamarley/+archive/ubuntu/tvheadend-git
-
Mám přidané tyhle:
mafian@mafian-desktop:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 18.04.5 LTS _Bionic Beaver_ - Release amd64 (20200806.1)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cz.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://cz.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://cz.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://cz.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cz.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://cz.archive.ubuntu.com/ubuntu/ bionic universe
deb http://cz.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://cz.archive.ubuntu.com/ubuntu/ bionic-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cz.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://cz.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://cz.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://cz.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cz.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://cz.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu bionic partner
deb-src http://archive.canonical.com/ubuntu bionic partner
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
deb https://apt.tvheadend.org/stable bionic main
# deb-src https://apt.tvheadend.org/stable bionic main.
Přiznám se, že přesně už nevím chvíli mi trvalo, než jsem se v ubuntu trochu zorientoval a instaloval jsem toho víc.
-
1. Odinstaluj tu aplikaci
2. Odeber ten PPA ze zdrojů (je to na konci toho výpisu)
3. Přidej ten PPA viz výše a nainstaluj aplikaci
-
Tak tvheadend jsem odebral, nainstaloval jsem ho znovu z tvého odkazu a výsledek je stejný permission denied :(
-
Tak tvheadend jsem odebral, nainstaloval jsem ho znovu z tvého odkazu a výsledek je stejný permission denied :(
Zkus spustit tvheadend jako root (se sudo)
Pak je ještě možné, že máš starou verzi ffmpeg, zjistíš:
ffmpeg -version
-
mafian@mafian-desktop:~$ ffmpeg -version
ffmpeg version 4.3.2-0york0~18.04 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix=/usr --extra-version='0york0~18.04' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libzimg --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Spuštěno se sudo a stejný výsledek :(
2021-04-09 09:35:41.276 spawn: Executing "/home/mafian/playlist/streamer.sh"
2021-04-09 09:35:41.416 spawn: /home/mafian/playlist/streamer.sh: 27: /home/mafian/playlist/streamer.sh: /usr/share/ffmpeg: Permission denied
2021-04-09 09:35:41.416 iptv: stdin pipe 45 unexpectedly closed: No data
-
Zkus ffmpeg odinstalovat + repo odebrat a nainstalovat z ofiko repo.
Nebo můžeš zkusit statickou verzi odsud (https://johnvansickle.com/ffmpeg/)
(soubor ffmpeg dej někam do PATH, třeba do /usr/local/bin)
-
Odinstalováno, odebral jsem repozitář, nainstaloval z ofiko do usr/local/bin/ a výsledek stejný :(