[Android Apps and Games] matbe:
QNAP ffmpeg path finding old version

Hi, great piece of software.

Finally bought myself a QNAP, one of the new TS-451A, x86 based and all. Problem is Bubble Upnp keeps picking up an old ffmpeg which causes problems with some files, otherwise great.

Installed java and QTS package for bubble upnp server. Installed 3.2.2 of ffmpeg + ffprobe. Works fine in a terminal (ssh), it's in the path etc. Restarting the server or unit doesn't help.

# which ffmpeg
/opt/bin/ffmpeg

# ffmpeg -version
ffmpeg version 3.2.2-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.1 (Debian 5.4.1-4) 20161202
...

# rm /share/CACHEDEV1_DATA/.qpkg/BubbleUPnPServer/BubbleUPnPServer.log.0

//restart

# cat /share/CACHEDEV1_DATA/.qpkg/BubbleUPnPServer/BubbleUPnPServer.log.0
...
[main (1) ] INFO - 01:00:10.991 - Main : using ffmpeg binaries from: system PATH
[main (1) ] INFO - 01:00:11.03 - Main : ffmpeg version 2.8.5 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --enable-gpl --enable-version3 --enable-nonfree --prefix=/home/tanylee/tany/codexpack.all.no.dolby/my_ffmpeg/build.no.dolby --enable-libmp3lame --enable-libx264 --enable-libsoxr --enable-libfdk-aac --disable-yasm --disable-asm --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-libxcb-shape --disable-decoder=ac3 --disable-decoder=eac3 --disable-decoder=ac3_fixed --disable-decoder=dca --disable-decoder=truehd --disable-encoder=ac3 --disable-encoder=eac3 --disable-encoder=ac3_fixed --disable-encoder=dca --extra-libs=-static --extra-cflags='-DQNAP --static -I/home/tanylee/tany/codexpack.all.no.dolby/my_ffmpeg/build.no.dolby/include' --extra-ldflags='-L/home/tanylee/tany/codexpack.all.no.dolby/my_ffmpeg/build.no.dolby/lib -liconv'
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100

[main (1) ] INFO - 01:00:11.16 - Main : ffmpeg found
[main (1) ] INFO - 01:00:11.18 - Main : ffmpeg supports SoX resampler
[main (1) ] INFO - 01:00:11.31 - Main : ffmpeg supports mp3 encoding (libmp3lame)
[main (1) ] INFO - 01:00:11.35 - Main : ffmpeg doesn't support libvorbis encoder
[main (1) ] INFO - 01:00:11.36 - Main : ffmpeg supports flac encoder
[main (1) ] INFO - 01:00:11.42 - Main : ffmpeg supports libx264 encoder
[main (1) ] INFO - 01:00:11.43 - Main : ffmpeg supports aac encoding (libfdk_aac)
[main (1) ] INFO - 01:00:11.66 - Main : ffmpeg supports matroska encoding
[main (1) ] INFO - 01:00:11.67 - Main : ffmpeg supports mpegts encoding
[main (1) ] INFO - 01:00:11.137 - Main : ffmpeg supports -id3v2_version option
[main (1) ] INFO - 01:00:11.138 - Main : ffmpeg supports the -seekable option
[main (1) ] INFO - 01:00:11.139 - Main : ffmpeg supports the -codec option
[main (1) ] INFO - 01:00:11.152 - Main : ffmpeg supports the scale video filter
[main (1) ] INFO - 01:00:11.161 - Main : ffmpeg supports the aac_adtstoasc bitstream filter
[main (1) ] INFO - 01:00:11.166 - Main : ffprobe not found
...

# echo $PATH
/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin:/usr/local/jre/bin

Note, /opt/bin/ffmpeg and ffprobe are symbol links to /opt/ffmpeg/ffmpeg

So says it's using the qnap built in ffmpeg from system path. Path for me logged in says it shouldn't.

Adding additional symbol links in the that directory doesn't work either, using:

ln -s /opt/bin/ffmpeg /share/CACHEDEV1_DATA/.qpkg/BubbleUPnPServer/ffmpeg

I've no idea how QTS and qpkg works though, but seems it shoudl work with that user etc?

# ps ax | grep Bubble
9684 admin 192096 S /share/CACHEDEV1_DATA/.qpkg/JRE/jre/bin/java -Djava.io.tmpdir=/share/CACHEDEV1_DATA/.qpkg/BubbleUPnPServer/tmp -Xss256k -Djava.awt.headless=true -jar /share/CACHEDEV1_DATA/.qpkg/BubbleUPnPServer/BubbleUPnPServerLauncher.jar

# whoami
admin

Furthermore it didn't automatically update from update22 to update23? Manually installing the latest qpkg again from the site worked fine though (without needing to stop or uninstall anything)