Using the launch flag tomcat7_java_home="/usr/local/openjdk*" breaks ffmpeg decoding, original post follows.
I now have the issue where I can not seek, please see 3 posts down. Thank you!

First some background on my server:
the server
FreeBSD-10.0 x64
openjdk version "1.7.0_55"
OpenJDK Runtime Environment (build 1.7.0_55-b13)
OpenJDK 64-Bit Server VM (build 24.55-b03, mixed mode)
Apache Tomcat 7.0.53
ffmpeg version 2.2.1 (built from latest port)
Subsonic 4.9
I have tried both a symlink and dumping the binary for ffmpeg into /var/subsonic/transcode. Both return the following errors when building my library and/or playing the video:
- Code: Select all
[2014-04-27 18:02:54,943] WARN FFmpegParser - Error when parsing metadata in XXXXX
java.io.IOException: Cannot run program "/var/subsonic/transcode/ffmpeg": error=2, No such file or directory
[4/27/14 8:05:55 PM EDT] DEBUG TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [0] [-i] [XXXXX] [-async] [1] [-b] [1000k] [-s] [640x480] [-ar] [44100] [-ac] [2] [-v] [0] [-f] [flv] [-vcodec] [libx264] [-preset] [superfast] [-vn] [-threads] [0] [-]
[4/27/14 8:05:55 PM EDT] WARN TranscodingService Failed to transcode XXXXX. Using original.
From subsonic.log, if I run the following I receive an error
- Code: Select all
-bash: [/var/subsonic/transcode/ffmpeg]: No such file or directory
[/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [XXXXX] [-async] [1] [-b] [1000k] [-s] [640x480] [-ar] [44100] [-ac] [2] [-v] [0] [-f] [flv] [-vcodec] [libx264] [-preset] [superfast] [-threads] [0] [-]
(I changed my transcode string for giggles in the last entry, same issue regardless of string)
I can successfully execute /var/subsonic/transcode/ffmpeg as a normal user or root, with the following output:
testing my ffmpeg symlink
- Code: Select all
/var/subsonic/transcode/ffmpeg
ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Apr 27 2014 12:47:40 with FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --enable-libcdio --enable-libcelt --enable-libfaac --enable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --enable-libbluray --enable-libv4l2 --enable-libmodplug --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --cc=cc --extra-cflags='-msse -I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-stripping --enable-nonfree --enable-version3
libavutil 52. 48.101 / 52. 48.101
libavcodec 55. 39.101 / 55. 39.101
libavformat 55. 19.104 / 55. 19.104
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
libavresample 1. 1. 0 / 1. 1. 0
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
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'
/var/subsonic has permissions 777 set on it for debugging purposes.
XXXXX is the file to be decoded. Subsonic is pointing to a path to which all users have read and write access.
Needless to say, I am stumped. Has anyone run into this issue before? My gut reaction is to rebuild my old centos 6 virtual machine to bypass this, however there is likely someone else here who could benefit from a discussion to fix the actual issue.
I've seen many similar threads with fixes, but none seem to apply with my setup.