Airvideo unMenu package


Recommended Posts

  • Replies 160
  • Created
  • Last Reply

Top Posters In This Topic

Does this look correct? Obviously it's where I store the video files but I seem to remember a "Movie:/mnt/diskx/myvideo" type thing before I entered the path but I'm guessing it's just a label.

 

Capture.PNG

 

Ah, no it is not quite correct

 

You need something like:

Test:/mnt/disk7/test

for the folders section

 

The way it works is that you need a "Name" for the folder (in this case the "Test" above in red), followed by a ":", and then the "Path" (in this case the "/mnt/disk7/test" above in green).

Link to comment

IT WORKS :) :)

 

All of your help and it was my mistake  :-[

Sorry and thanks a million for your help, I really appreciate all you done.

 

Glad it turned out to be something simple. No worries about the mistake on the folder defining value.  I will make a note to improve the description beside that field so that it is more obvious what is needed.

Link to comment

1 of 2

 

Not sure if it is related or not, but if you could give me the output of the commands I asked footballmad for that would be great.

 

prostuff, Here you go. Thanks in advance for any advice you can give.

 

Hardware:

AMD Athlon II X4 @ 3.0 GHz

4GB RAM

 

Contents of /boot/packages/test.properties

path.ffmpeg = /boot/packages/ffmpeg/ffmpeg
path.mp4creator = /usr/bin/mp4creator
path.faac = /usr/bin/faac
password = 
subtitles.encoding = windows-1250
subtitles.font = Verdana
folders = Media:/mnt/disk1/Media

 

Contents of /boot/packages/AirVideoServerLinux.jar.manual_install

PACKAGE_DIRECTORY=/boot/packages
SCRIPT_DIRECTORY=/boot/unmenu
MyHost=192.168.11.34
MyPort=8080
vPassword=
vFolders="Media:/mnt/disk1/Media"
vTMPDIR="/var/tmp"
installpkg "${PACKAGE_DIRECTORY}"/x264-20110510-i486-1alien.tgz
installpkg "${PACKAGE_DIRECTORY}"/faac-1.26-i486-1gds.tgz
installpkg "${PACKAGE_DIRECTORY}"/faad2-2.6.1-i486-2gds.tgz
installpkg "${PACKAGE_DIRECTORY}"/xvidcore-1.2.1-i486-1sl.tgz
installpkg "${PACKAGE_DIRECTORY}"/jam-2.5-i486-2gal.tgz
installpkg "${PACKAGE_DIRECTORY}"/lame-3.98.2-i486-1gds.tgz
installpkg "${PACKAGE_DIRECTORY}"/mpeg4ip-1.5.0.1-i486-1ahl.tgz
installpkg "${PACKAGE_DIRECTORY}"/yasm-0.7.2-i486-1sl.tgz
installpkg "${PACKAGE_DIRECTORY}"/libX11-1.1.5-i486-1.tgz
installpkg "${PACKAGE_DIRECTORY}"/libxcb-1.0-i486-1ced.tgz
installpkg "${PACKAGE_DIRECTORY}"/libXau-1.0.4-i486-1.tgz
installpkg "${PACKAGE_DIRECTORY}"/pkg-config-0.23-i486-2.txz
installpkg "${PACKAGE_DIRECTORY}"/git-1.7.1-i486-1.txz
if [[ ! -z $(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print$2}') ]]; then
sleep 5
for i in $(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print$2}')
do
if [[ $(ps -fp $i | awk 'NR>1' | awk '{print $10}') = "${PACKAGE_DIRECTORY}/AirVideoServerLinux.jar" ]]; then
kill $i
echo "<font color=\"red\"><b>Killed \"$i\"</b></font>"
fi
sleep 5
done
fi
sleep 5
MEM="$(free -m | grep Mem: | awk '{print$2}')"
ulimit -v 250000
if [ "${MEM}" -lt 768 ]; then
echo "Warning: You may not have enough memory ( $MEM ) to compile ffmpeg, but we'll try and see how far we can get."
fi
INSTALLED_FFMPEG_VERSION=`${PACKAGE_DIRECTORY}/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'`
LATEST_DOWNLOADED_VERSION=`ls -lrt ${PACKAGE_DIRECTORY} | grep ffmpeg-for- | awk 'END{print $NF}'`
CACHE_PRESSURE=`sysctl vm.vfs_cache_pressure| awk '{print $3}'`
if [[ ! -x "${PACKAGE_DIRECTORY}/ffmpeg/ffmpeg" || "${INSTALLED_FFMPEG_VERSION}" != "${LATEST_DOWNLOADED_VERSION}" ]]; then
test ! -f /usr/bin/bzip2 && echo "An untar program was not detected.  Please install the Parallel bzip package."
test ! -f /usr/bin/bzip2 && exit
test ! -f /usr/bin/cc && echo "The C compiler has not been installed.  ffmpeg compile not possible"
test ! -f /usr/bin/cc && exit
rm -rf "${PACKAGE_DIRECTORY}"/ffmpeg/
sync
echo 3 > /proc/sys/vm/drop_caches
sysctl -w vm.vfs_cache_pressure=200
cd "${PACKAGE_DIRECTORY}";
if [ -f /usr/bin/bzip2 ]; then 
tar --no-same-owner -xf "${LATEST_DOWNLOADED_VERSION}";
else
tar --use-compress-prog=pbzip2 --no-same-owner -xf "${LATEST_DOWNLOADED_VERSION}";
fi
mkdir -p "${vTMPDIR-/var/tmp}"
TMPDIR="${vTMPDIR-/var/tmp}"; export TMPDIR
echo TMPDIR set to $TMPDIR
cd "${PACKAGE_DIRECTORY}/ffmpeg";
mv "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh.old
echo '#!/bin/sh' > "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "# no revision number found" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "test \"\$revision\" || revision=UNKNOWN" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "# releases extract the version number from the VERSION file" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "test \"\$version\" || version=\$revision" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "NEW_REVISION=\"#define FFMPEG_VERSION \\\"\$version\\\"\"" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "OLD_REVISION=\$(cat version.h 2> /dev/null)" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "# Update version.h only on revision changes to avoid spurious rebuilds" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "if test \"\$NEW_REVISION\" != \"\$OLD_REVISION\"; then" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "    echo \"\$NEW_REVISION\" > \"\$2\"" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "fi" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
sed -i "s@UNKNOWN@${LATEST_DOWNLOADED_VERSION}@ " "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
./configure.orig.fixed --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads \
--enable-libmp3lame --enable-libx264 \
--enable-libxvid --enable-x11grab --disable-shared --enable-static;
make
fi
sysctl -w vm.vfs_cache_pressure=$CACHE_PRESSURE
test ! -f "${PACKAGE_DIRECTORY}/ffmpeg/ffmpeg" && echo "ffmpeg compile failed. install aborted"
test ! -f "${PACKAGE_DIRECTORY}/ffmpeg/ffmpeg" && exit
test ! -f /usr/lib/java/bin/java && installpkg "${PACKAGE_DIRECTORY}"/jre-6u11-i586-1.tgz
[ ! -d /etc/rc.d/unraid.d ] && mkdir /etc/rc.d/unraid.d
if [ ! -f /etc/rc.d/unraid.d/rc.unraid_airvideo ]; then
echo 'case $1 in' >/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "start)" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "cd ${PACKAGE_DIRECTORY}" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "air-video-server.sh test.properties" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo ";;" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "stop)" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "while [[ \$(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print\$10}' | awk '{ field = \$NF}; END{ print field }') != \"\" ]]" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "do" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "   if [[ \$(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print\$10}' | awk '{ field = \$NF}; END{ print field }') == \"\${PACKAGE_DIRECTORY}/AirVideoServerLinux.jar\" ]]; then" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "        kill \$(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print\$2}' | awk '{ field = \$NF}; END{ print field }');" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "        sleep 5" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "   fi" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "done" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo ";;" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "esac" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
chmod +x /etc/rc.d/unraid.d/rc.unraid_airvideo
fi
echo "#UNMENU_RELEASE \$Revision: 75 \$ \$Date: 2010-04-25 22:20:22 -0400 (Sun, 25 Apr 2010) \$" > "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "#define USER_SCRIPT_LABEL Start AirVideo" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "#define USER_SCRIPT_DESCR This will start the AirVideo service so you can stream and live convert files" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "#define USER_SCRIPT_TEST test -e /boot/packages/AirVideoServerLinux.jar && echo \"Start AirVideo\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "echo \"<pre>\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "set -xv" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "cd ${PACKAGE_DIRECTORY}" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "echo \"air-video-server.sh test.properties &\" | at now + 1 minute" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo   >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "#UNMENU_RELEASE \$Revision: 75 \$ \$Date: 2010-04-25 22:20:22 -0400 (Sun, 25 Apr 2010) \$" > "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "#define USER_SCRIPT_LABEL Stop AirVideo" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "#define USER_SCRIPT_DESCR This will stop the AirVideo service from running so that the array can be stopped cleanly" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "#define USER_SCRIPT_TEST test -x /boot/packages/AirVideoServerLinux.jar && echo \"Stop AirVideo\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "echo \"<pre>\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "set -xv" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "if [[ ! -z \$(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print\$2}') ]]; then" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "sleep 5" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "   for i in \$(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print\$2}')" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "   do" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "      if [[ \$(ps -fp \$i | awk 'NR>1' | awk '{print \$10}') = \"\${PACKAGE_DIRECTORY}/AirVideoServerLinux.jar\" ]]; then" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "         kill \$i" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "         echo \"<font color=\"red\"><b>Killed \"\$i\"</b></font>\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "      fi" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "      sleep 5" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "   done" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "fi" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo  >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
rm -f "${PACKAGE_DIRECTORY}"/test.properties
touch "${PACKAGE_DIRECTORY}"/test.properties
echo "path.ffmpeg = ${PACKAGE_DIRECTORY}/ffmpeg/ffmpeg" >> "${PACKAGE_DIRECTORY}"/test.properties
echo "path.mp4creator = /usr/bin/mp4creator" >> "${PACKAGE_DIRECTORY}"/test.properties
echo "path.faac = /usr/bin/faac" >> "${PACKAGE_DIRECTORY}"/test.properties
echo "password = passwordPlaceHolder" >> "${PACKAGE_DIRECTORY}"/test.properties
echo "subtitles.encoding = windows-1250" >> "${PACKAGE_DIRECTORY}"/test.properties
echo "subtitles.font = Verdana" >> "${PACKAGE_DIRECTORY}"/test.properties
echo "folders = folderPlaceHolder" >> "${PACKAGE_DIRECTORY}"/test.properties
sed -i s@passwordPlaceHolder@"${vPassword}"@ "${PACKAGE_DIRECTORY}"/test.properties
sed -i s@folderPlaceHolder@"${vFolders}"@ "${PACKAGE_DIRECTORY}"/test.properties
rm -f "${PACKAGE_DIRECTORY}"/air-video-server.sh
touch "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "#!/bin/bash" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "PROPFILE='/etc/conf.d/air-video-server'" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "LOCALPROP=\`echo ~/.air-video-server/air-video-server.properties\`" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "if [ -a \"\$1\" ]; then" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "  PROPFILE=\"\$1\"" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "else" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "  [ -a \"\$LOCALPROP\" ] && PROPFILE=\"\$LOCALPROP\"" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "fi" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "exec /usr/lib/jre1.6.0_11/bin/java -jar "${PACKAGE_DIRECTORY}"/AirVideoServerLinux.jar \"\$PROPFILE\"" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
chmod +x "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "Version: 2.4.5-beta6" > /var/log/airvideo
cd "${PACKAGE_DIRECTORY}"
echo "bash air-video-server.sh test.properties" | at now + 1 minute

 

Link to comment

2 of 2

 

Output from ls /boot/packages/ffmpeg/

COPYING.GPLv2*     _unicode.h*              ffplay.c*
COPYING.GPLv3*     cmdutils.c*              ffpresets/
COPYING.LGPLv2.1*  cmdutils.d*              ffserver*
COPYING.LGPLv3*    cmdutils.h*              ffserver.c*
CREDITS*           cmdutils.o*              ffserver.d*
Changelog*         cmdutils_common_opts.h*  ffserver.h*
Doxyfile*          common.mak*              ffserver_g*
INSTALL*           config.err*              libavcodec/
LICENSE*           config.h*                libavdevice/
MAINTAINERS*       config.mak*              libavfilter/
Makefile*          configure*               libavformat/
README*            configure.orig*          libavutil/
_configure*        configure.orig.fixed*    libpostproc/
_configure.mingw*  configure.rej*           libswscale/
_make*             doc/                     subdir.mak*
_overlay.c*        ffmpeg*                  tests/
_resample.c*       ffmpeg-mingw32.diff*     tools/
_segmenter.c*      ffmpeg.c*                version.h*
_snapshot*         ffmpeg.d*                version.sh*
_unicode.c*        ffmpeg_g*                version.sh.old*

 

Output from ps -ef | grep Airvideo

root     24070 24037  0 21:38 pts/0    00:00:00 grep Airvideo

 

Output from ps -ef

UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Jun14 ?        00:00:01 init
root         2     0  0 Jun14 ?        00:00:00 [kthreadd]
root         3     2  0 Jun14 ?        00:00:00 [migration/0]
root         4     2  0 Jun14 ?        00:00:00 [ksoftirqd/0]
root         5     2  0 Jun14 ?        00:00:00 [migration/1]
root         6     2  0 Jun14 ?        00:00:00 [ksoftirqd/1]
root         7     2  0 Jun14 ?        00:00:00 [migration/2]
root         8     2  0 Jun14 ?        00:00:00 [ksoftirqd/2]
root         9     2  0 Jun14 ?        00:00:00 [migration/3]
root        10     2  0 Jun14 ?        00:00:00 [ksoftirqd/3]
root        11     2  0 Jun14 ?        00:00:00 [events/0]
root        12     2  0 Jun14 ?        00:00:00 [events/1]
root        13     2  0 Jun14 ?        00:00:00 [events/2]
root        14     2  0 Jun14 ?        00:00:00 [events/3]
root        15     2  0 Jun14 ?        00:00:00 [khelper]
root        20     2  0 Jun14 ?        00:00:00 [async/mgr]
root       124     2  0 Jun14 ?        00:00:17 [sync_supers]
root       126     2  0 Jun14 ?        00:00:00 [bdi-default]
root       128     2  0 Jun14 ?        00:00:00 [kblockd/0]
root       129     2  0 Jun14 ?        00:00:00 [kblockd/1]
root       130     2  0 Jun14 ?        00:00:00 [kblockd/2]
root       131     2  0 Jun14 ?        00:00:00 [kblockd/3]
root       132     2  0 Jun14 ?        00:00:00 [kacpid]
root       133     2  0 Jun14 ?        00:00:00 [kacpi_notify]
root       134     2  0 Jun14 ?        00:00:00 [kacpi_hotplug]
root       242     2  0 Jun14 ?        00:00:00 [ata/0]
root       243     2  0 Jun14 ?        00:00:00 [ata/1]
root       244     2  0 Jun14 ?        00:00:00 [ata/2]
root       245     2  0 Jun14 ?        00:00:00 [ata/3]
root       246     2  0 Jun14 ?        00:00:00 [ata_aux]
root       250     2  0 Jun14 ?        00:00:00 [ksuspend_usbd]
root       255     2  0 Jun14 ?        00:00:00 [khubd]
root       258     2  0 Jun14 ?        00:00:00 [kseriod]
root       297     2  0 Jun14 ?        00:00:00 [rpciod/0]
root       298     2  0 Jun14 ?        00:00:00 [rpciod/1]
root       299     2  0 Jun14 ?        00:00:00 [rpciod/2]
root       300     2  0 Jun14 ?        00:00:00 [rpciod/3]
root       346     2  0 Jun14 ?        00:00:12 [kswapd0]
root       391     2  0 Jun14 ?        00:00:00 [aio/0]
root       392     2  0 Jun14 ?        00:00:00 [aio/1]
root       393     2  0 Jun14 ?        00:00:00 [aio/2]
root       394     2  0 Jun14 ?        00:00:00 [aio/3]
root       400     2  0 Jun14 ?        00:00:00 [nfsiod]
root       405     2  0 Jun14 ?        00:00:00 [kslowd000]
root       406     2  0 Jun14 ?        00:00:00 [kslowd001]
root       635     2  0 Jun14 ?        00:00:00 [usbhid_resumer]
root       674     1  0 Jun14 ?        00:00:00 /sbin/udevd --daemon
root       819     2  0 Jun14 ?        00:00:00 [scsi_eh_0]
root       820     2  0 Jun14 ?        00:00:00 [scsi_eh_1]
root       821     2  0 Jun14 ?        00:00:00 [scsi_eh_2]
root       822     2  0 Jun14 ?        00:00:00 [scsi_eh_3]
root       827     2  0 Jun14 ?        00:00:00 [scsi_eh_4]
root       828     2  0 Jun14 ?        00:00:01 [usb-storage]
root      1276     1  0 Jun14 ?        00:00:00 /usr/sbin/syslogd -m0
root      1280     1  0 Jun14 ?        00:00:00 /usr/sbin/klogd -c 3 -x
root      1313     1  0 Jun14 ?        00:00:14 /usr/bin/python /mnt/cache/.cust
root      1319     1  0 Jun14 ?        00:00:00 /usr/sbin/ifplugd -i eth0 -fwI -
root      1357     1  0 Jun14 ?        00:00:00 /usr/sbin/ntpd -g -p /var/run/nt
bin       1367     1  0 Jun14 ?        00:00:00 /sbin/rpc.portmap
nobody    1371     1  0 Jun14 ?        00:00:00 /sbin/rpc.statd
root      1381     1  0 Jun14 ?        00:00:00 /usr/sbin/inetd
root      1391     1  0 Jun14 ?        00:00:00 /usr/sbin/acpid
root      1398     1  0 Jun14 ?        00:00:00 /usr/sbin/crond -l10
daemon    1400     1  0 Jun14 ?        00:00:00 /usr/sbin/atd -b 15 -l 1
root      1405     1  0 Jun14 ?        00:00:00 /usr/sbin/nmbd -D
root      1407     1  0 Jun14 ?        00:00:00 /usr/sbin/smbd -D
root      1412     1  0 Jun14 ?        00:00:22 /usr/local/sbin/emhttp
root      1414  1407  0 Jun14 ?        00:00:00 /usr/sbin/smbd -D
root      1428     1  0 Jun14 ?        00:00:00 /bin/bash /boot/unmenu/uu
root      1429     1  0 Jun14 ?        00:00:00 logger -tunmenu -plocal7.info -i
root      1432  1428  0 Jun14 ?        00:00:01 awk -W re-interval -f ./unmenu.a
root      1440     2  0 Jun14 ?        00:00:00 [mdrecoveryd]
root      1443     2  0 Jun14 ?        00:00:00 [spinupd]
root      1444     2  0 Jun14 ?        00:00:00 [spinupd]
root      1445     2  0 Jun14 ?        00:00:00 [spinupd]
root      1560     2  0 Jun14 ?        00:00:35 [unraidd]
root      1691     2  0 Jun14 ?        00:00:00 [reiserfs/0]
root      1692     2  0 Jun14 ?        00:00:00 [reiserfs/1]
root      1693     2  0 Jun14 ?        00:00:00 [reiserfs/2]
root      1694     2  0 Jun14 ?        00:00:00 [reiserfs/3]
root      2076     1  0 Jun14 ?        00:01:10 /usr/local/sbin/shfs /mnt/user -
root      2094     1  0 Jun14 ?        00:00:31 /usr/local/sbin/shfs /mnt/user0
root      4402     1  0 Jun14 ?        00:00:07 /sbin/apcupsd
root      5317     1  0 Jun14 ?        00:00:00 /usr/sbin/sshd
root      8952     1  0 Jun14 ?        00:01:34 /usr/local/crashplan/jre/bin/jav
root      9231     1  0 Jun14 ?        00:30:07 python /mnt/cache/.custom/sabnzb
root      9501     1  0 Jun14 ?        00:01:39 python /mnt/cache/.custom/sickbe
root      9528     1  0 Jun14 tty1     00:00:00 /sbin/agetty 38400 tty1 linux
root      9529     1  0 Jun14 tty2     00:00:00 /sbin/agetty 38400 tty2 linux
root      9530     1  0 Jun14 tty3     00:00:00 /sbin/agetty 38400 tty3 linux
root      9531     1  0 Jun14 tty4     00:00:00 /sbin/agetty 38400 tty4 linux
root      9532     1  0 Jun14 tty5     00:00:00 /sbin/agetty 38400 tty5 linux
root      9533     1  0 Jun14 tty6     00:00:00 /sbin/agetty 38400 tty6 linux
root     13556  1407  0 21:07 ?        00:00:06 /usr/sbin/smbd -D
root     14918  1407  0 21:08 ?        00:00:17 /usr/sbin/smbd -D
daemon   23600  1400  0 21:17 ?        00:00:00 /usr/sbin/atd -b 15 -l 1
root     23601 23600  0 21:17 ?        00:00:00 sh
root     23602 23601  0 21:17 ?        00:00:07 /usr/lib/jre1.6.0_11/bin/java -j
root     24032     2  0 21:30 ?        00:00:00 [flush-9:1]
root     24033  5317  0 21:36 ?        00:00:00 sshd: root@pts/0
root     24037 24033  0 21:36 pts/0    00:00:00 -bash
root     24072 24037  0 21:43 pts/0    00:00:00 ps -ef

Link to comment
Hit the "Stop Airvideo" button on the User scripts page.  Then hit the "Start Airvideo" button for me.  Wait the one minute and then try everything again.

 

Still the same behavior with live-conversion of both mkv and avi files(appears to start for about 1 second then stops). However, when I play and/or live-convert video files that are in iOS compatible format it works.

 

Thanks

Link to comment

Hit the "Stop Airvideo" button on the User scripts page.  Then hit the "Start Airvideo" button for me.  Wait the one minute and then try everything again.

 

Still the same behavior with live-conversion of both mkv and avi files(appears to start for about 1 second then stops). However, when I play and/or live-convert video files that are in iOS compatible format it works.

 

Thanks

 

Hmmmm, then ffmpeg and live conversion is working... to an extent.  I have experienced what you are talking about with one of the mkv files I tested with, but when it stopped on me after a second I went back into that same episode and it worked the second time around.  I though it just a hiccup of Air Video and the fact that it is beta.

 

If you could upload the file(s) you are having trouble with to something like dropbox, or rapidshare, or something of the like I will download them and see if what I can do when I get some time.

Link to comment

it's weird, whenever i try to run AirVideo, after a few minutes, the server will crash. Nothing in the logs (I had a tail -f /var/tmp/log) and here's the result of the "top" command that was running at the time:

 

 

top - 23:21:03 up 31 min,  3 users,  load average: 3.20, 2.31, 1.71

Tasks: 138 total,   3 running, 135 sleeping,   0 stopped,   0 zombie

Cpu(s):  0.1%us, 11.0%sy, 47.1%ni, 36.5%id,  2.2%wa,  0.9%hi,  2.2%si,  0.0%st

Mem:   4115664k total,  3988244k used,   127420k free,    25260k buffers

Swap:        0k total,        0k used,        0k free,  3616676k cached

 

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND

12692 root      22   2  210m 111m 2780 R  146  2.8   1:57.54 ffmpeg

1693 root      20   0     0    0    0 R   23  0.0   7:08.03 unraidd

1624 root      20   0     0    0    0 D    7  0.0   2:15.96 mdrecoveryd

1531 root      20   0  1656  232  156 S    1  0.0   0:10.23 dhcpcd

1501 root      20   0  1660  468  392 S    0  0.0   0:00.17 ifplugd

1835 root      20   0  2324  688  488 S    0  0.0   0:00.12 cache_dirs

8590 root      22   2 1174m 114m 6584 S    0  2.9   0:05.06 java

11160 root      20   0  102m 3012  696 S    0  0.1   0:06.16 shfs

13017 root      20   0  1852  756  620 S    0  0.0   0:00.01 in.telnetd

14012 root      20   0  1620  416  356 S    0  0.0   0:00.01 sleep

   1 root      20   0   704  308  264 S    0  0.0   0:01.75 init

   2 root      20   0     0    0    0 S    0  0.0   0:00.00 kthreadd

   3 root      RT   0     0    0    0 S    0  0.0   0:00.05 migration/0

   4 root      20   0     0    0    0 S    0  0.0   0:00.01 ksoftirqd/0

   5 root      RT   0     0    0    0 S    0  0.0   0:00.06 migration/1

   6 root      20   0     0    0    0 S    0  0.0   0:00.01 ksoftirqd/1

 

I have an AMD Athlon II x3 2.9GHz cpu which should be plenty of power to transcode... so not sure what's happening...

 

I am also getting these emails too, not sure what they mean:

 

sender-time Sent at 11:13 PM (GMT-04:00). Current time there: 11:26 PM. ?

to root

date Sun, Jun 19, 2011 at 11:13 PM

subject Output from your job 4

mailed-by gmail.com

hide details 11:13 PM (12 minutes ago)

DEBUG: SnapshotCache: Initializing Thumbnail Cache; Java Version: 1.6.0_11

DEBUG: SnapshotCache: Created new Snapshot Index BTree2011-06-19 23:08:00.415::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog

2011-06-19 23:08:00.436::INFO:  jetty-6.1.x

2011-06-19 23:08:00.463::INFO:  Started [email protected]:45631

DEBUG: PortMapperAction: Scheduling task PortMapperAction$2 (23668144)

DEBUG: StatusReportAction: Scheduling task StatusReportAction$2 (7461949)

Link to comment

it's weird, whenever i try to run AirVideo, after a few minutes, the server will crash. Nothing in the logs (I had a tail -f /var/tmp/log) and here's the result of the "top" command that was running at the time:

 

 

top - 23:21:03 up 31 min,  3 users,  load average: 3.20, 2.31, 1.71

Tasks: 138 total,   3 running, 135 sleeping,   0 stopped,   0 zombie

Cpu(s):  0.1%us, 11.0%sy, 47.1%ni, 36.5%id,  2.2%wa,  0.9%hi,  2.2%si,  0.0%st

Mem:   4115664k total,  3988244k used,   127420k free,    25260k buffers

Swap:        0k total,        0k used,        0k free,  3616676k cached

 

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND

12692 root      22   2  210m 111m 2780 R  146  2.8   1:57.54 ffmpeg

1693 root      20   0     0    0    0 R   23  0.0   7:08.03 unraidd

1624 root      20   0     0    0    0 D    7  0.0   2:15.96 mdrecoveryd

1531 root      20   0  1656  232  156 S    1  0.0   0:10.23 dhcpcd

1501 root      20   0  1660  468  392 S    0  0.0   0:00.17 ifplugd

1835 root      20   0  2324  688  488 S    0  0.0   0:00.12 cache_dirs

8590 root      22   2 1174m 114m 6584 S    0  2.9   0:05.06 java

11160 root      20   0  102m 3012  696 S    0  0.1   0:06.16 shfs

13017 root      20   0  1852  756  620 S    0  0.0   0:00.01 in.telnetd

14012 root      20   0  1620  416  356 S    0  0.0   0:00.01 sleep

   1 root      20   0   704  308  264 S    0  0.0   0:01.75 init

   2 root      20   0     0    0    0 S    0  0.0   0:00.00 kthreadd

   3 root      RT   0     0    0    0 S    0  0.0   0:00.05 migration/0

   4 root      20   0     0    0    0 S    0  0.0   0:00.01 ksoftirqd/0

   5 root      RT   0     0    0    0 S    0  0.0   0:00.06 migration/1

   6 root      20   0     0    0    0 S    0  0.0   0:00.01 ksoftirqd/1

 

I have an AMD Athlon II x3 2.9GHz cpu which should be plenty of power to transcode... so not sure what's happening...

 

I am also getting these emails too, not sure what they mean:

 

sender-time Sent at 11:13 PM (GMT-04:00). Current time there: 11:26 PM. ?

to root

date Sun, Jun 19, 2011 at 11:13 PM

subject Output from your job 4

mailed-by gmail.com

hide details 11:13 PM (12 minutes ago)

DEBUG: SnapshotCache: Initializing Thumbnail Cache; Java Version: 1.6.0_11

DEBUG: SnapshotCache: Created new Snapshot Index BTree2011-06-19 23:08:00.415::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog

2011-06-19 23:08:00.436::INFO:  jetty-6.1.x

2011-06-19 23:08:00.463::INFO:  Started [email protected]:45631

DEBUG: PortMapperAction: Scheduling task PortMapperAction$2 (23668144)

DEBUG: StatusReportAction: Scheduling task StatusReportAction$2 (7461949)

 

What all are you running on your system?

 

Have you run a memtest on your system?  How much memory do you have in the system?

Link to comment

Hit the "Stop Airvideo" button on the User scripts page.  Then hit the "Start Airvideo" button for me.  Wait the one minute and then try everything again.

 

Still the same behavior with live-conversion of both mkv and avi files(appears to start for about 1 second then stops). However, when I play and/or live-convert video files that are in iOS compatible format it works.

 

Thanks

 

upload the files you are having trouble with to something like rapidshare, or media fire, or a public dropbox area.  When you get that done let me know the link via Private Message here and I will download and test with the files you are having issues with.

Link to comment

 

What all are you running on your system?

 

Have you run a memtest on your system?  How much memory do you have in the system?

 

nothing really except the basics like unMenu... i don't have any of the stuff that the other folks do. I even created a swapfile just in case... I have 4 gigs of ram and 10 gigs of swap space. I'm trying to play on an iPad 1 as well, latest ver of AirVideo from iTunes.

 

so it was weird, it seemed like I was running all the new binaries except the actual AirVideo binary, I redownloaded and had to fiddle around to get it to recompile all the new stuff... now I am experiencing the same problem as the other poster here, Queball...

 

doesn't seem to be video file dependent, happens to all video files...

 

when I downgrade to the old version of AirVideo server, it seems to work... for about 5 min after which the unRaid server freezes.

Link to comment

 

What all are you running on your system?

 

Have you run a memtest on your system?  How much memory do you have in the system?

 

nothing really except the basics like unMenu... i don't have any of the stuff that the other folks do. I even created a swapfile just in case... I have 4 gigs of ram and 10 gigs of swap space. I'm trying to play on an iPad 1 as well, latest ver of AirVideo from iTunes.

 

so it was weird, it seemed like I was running all the new binaries except the actual AirVideo binary, I redownloaded and had to fiddle around to get it to recompile all the new stuff... now I am experiencing the same problem as the other poster here, Queball...

 

doesn't seem to be video file dependent, happens to all video files...

 

when I downgrade to the old version of AirVideo server, it seems to work... for about 5 min after which the unRaid server freezes.

 

If you can give me the output of the commands I listed earlier that would be great.  Make sure you install the newest version using the Airvideo package attached to the first post.

 

In addition to the commands I listed can I get the output of:

/boot/packages/ffmpeg/ffmpeg -version

Link to comment

root@Tower:/boot/packages# cat test.properties
path.ffmpeg = /boot/packages/ffmpeg/ffmpeg
path.mp4creator = /usr/bin/mp4creator
path.faac = /usr/bin/faac
password = 12345
subtitles.encoding = windows-1250
subtitles.font = Verdana
folders = Movies:/mnt/user/Videos/movies,TV:/mnt/user/Videos/tv

 

 

root@Tower:/boot/packages# cat AirVideoServerLinux.jar.manual_install
PACKAGE_DIRECTORY=/boot/packages
SCRIPT_DIRECTORY=/boot/unmenu
MyHost=Tower
MyPort=8080
vPassword="12345"
vFolders="Movies:/mnt/user/Videos/movies,TV:/mnt/user/Videos/tv"
vTMPDIR="/var/tmp"
installpkg "${PACKAGE_DIRECTORY}"/x264-20110510-i486-1alien.tgz
installpkg "${PACKAGE_DIRECTORY}"/faac-1.26-i486-1gds.tgz
installpkg "${PACKAGE_DIRECTORY}"/faad2-2.6.1-i486-2gds.tgz
installpkg "${PACKAGE_DIRECTORY}"/xvidcore-1.2.1-i486-1sl.tgz
installpkg "${PACKAGE_DIRECTORY}"/jam-2.5-i486-2gal.tgz
installpkg "${PACKAGE_DIRECTORY}"/lame-3.98.2-i486-1gds.tgz
installpkg "${PACKAGE_DIRECTORY}"/mpeg4ip-1.5.0.1-i486-1ahl.tgz
installpkg "${PACKAGE_DIRECTORY}"/yasm-0.7.2-i486-1sl.tgz
installpkg "${PACKAGE_DIRECTORY}"/libX11-1.1.5-i486-1.tgz
installpkg "${PACKAGE_DIRECTORY}"/libxcb-1.0-i486-1ced.tgz
installpkg "${PACKAGE_DIRECTORY}"/libXau-1.0.4-i486-1.tgz
installpkg "${PACKAGE_DIRECTORY}"/pkg-config-0.23-i486-2.txz
installpkg "${PACKAGE_DIRECTORY}"/git-1.7.1-i486-1.txz
if [[ ! -z $(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print$2}') ]]; then
sleep 5
for i in $(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print$2}')
do
if [[ $(ps -fp $i | awk 'NR>1' | awk '{print $10}') = "${PACKAGE_DIRECTORY}/AirVideoServerLinux.jar" ]]; then
kill $i
echo "<font color=\"red\"><b>Killed \"$i\"</b></font>"
fi
sleep 5
done
fi
sleep 5
MEM="$(free -m | grep Mem: | awk '{print$2}')"
ulimit -v 250000
if [ "${MEM}" -lt 768 ]; then
echo "Warning: You may not have enough memory ( $MEM ) to compile ffmpeg, but we'll try and see how far we can get."
fi
INSTALLED_FFMPEG_VERSION=`${PACKAGE_DIRECTORY}/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'`
LATEST_DOWNLOADED_VERSION=`ls -lrt ${PACKAGE_DIRECTORY} | grep ffmpeg-for- | awk 'END{print $NF}'`
CACHE_PRESSURE=`sysctl vm.vfs_cache_pressure| awk '{print $3}'`
if [[ ! -x "${PACKAGE_DIRECTORY}/ffmpeg/ffmpeg" || "${INSTALLED_FFMPEG_VERSION}" != "${LATEST_DOWNLOADED_VERSION}" ]]; then
test ! -f /usr/bin/bzip2 && echo "An untar program was not detected.  Please install the Parallel bzip package."
test ! -f /usr/bin/bzip2 && exit
test ! -f /usr/bin/cc && echo "The C compiler has not been installed.  ffmpeg compile not possible"
test ! -f /usr/bin/cc && exit
rm -rf "${PACKAGE_DIRECTORY}"/ffmpeg/
sync
echo 3 > /proc/sys/vm/drop_caches
sysctl -w vm.vfs_cache_pressure=200
cd "${PACKAGE_DIRECTORY}";
if [ -f /usr/bin/bzip2 ]; then
tar --no-same-owner -xf "${LATEST_DOWNLOADED_VERSION}";
else
tar --use-compress-prog=pbzip2 --no-same-owner -xf "${LATEST_DOWNLOADED_VERSION}";
fi
mkdir -p "${vTMPDIR-/var/tmp}"
TMPDIR="${vTMPDIR-/var/tmp}"; export TMPDIR
echo TMPDIR set to $TMPDIR
cd "${PACKAGE_DIRECTORY}/ffmpeg";
mv "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh.old
echo '#!/bin/sh' > "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "# no revision number found" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "test \"\$revision\" || revision=UNKNOWN" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "# releases extract the version number from the VERSION file" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "test \"\$version\" || version=\$revision" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "NEW_REVISION=\"#define FFMPEG_VERSION \\\"\$version\\\"\"" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "OLD_REVISION=\$(cat version.h 2> /dev/null)" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "# Update version.h only on revision changes to avoid spurious rebuilds" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "if test \"\$NEW_REVISION\" != \"\$OLD_REVISION\"; then" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "    echo \"\$NEW_REVISION\" > \"\$2\"" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
echo "fi" >> "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
sed -i "s@UNKNOWN@${LATEST_DOWNLOADED_VERSION}@ " "${PACKAGE_DIRECTORY}"/ffmpeg/version.sh
./configure.orig.fixed --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads \
--enable-libmp3lame --enable-libx264 \
--enable-libxvid --enable-x11grab --disable-shared --enable-static;
make
fi
sysctl -w vm.vfs_cache_pressure=$CACHE_PRESSURE
test ! -f "${PACKAGE_DIRECTORY}/ffmpeg/ffmpeg" && echo "ffmpeg compile failed. install aborted"
test ! -f "${PACKAGE_DIRECTORY}/ffmpeg/ffmpeg" && exit
test ! -f /usr/lib/java/bin/java && installpkg "${PACKAGE_DIRECTORY}"/jre-6u11-i586-1.tgz
[ ! -d /etc/rc.d/unraid.d ] && mkdir /etc/rc.d/unraid.d
if [ ! -f /etc/rc.d/unraid.d/rc.unraid_airvideo ]; then
echo 'case $1 in' >/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "start)" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "cd ${PACKAGE_DIRECTORY}" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "air-video-server.sh test.properties" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo ";;" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "stop)" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "while [[ \$(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print\$10}' | awk '{ field = \$NF}; END{ print field }') != \"\" ]]" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "do" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "   if [[ \$(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print\$10}' | awk '{ field = \$NF}; END{ print field }') == \"\${PACKAGE_DIRECTORY}/AirVideoServerLinux.jar\" ]]; then" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "        kill \$(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print\$2}' | awk '{ field = \$NF}; END{ print field }');" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "        sleep 5" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "   fi" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "done" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo ";;" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
echo "esac" >>/etc/rc.d/unraid.d/rc.unraid_airvideo
chmod +x /etc/rc.d/unraid.d/rc.unraid_airvideo
fi
echo "#UNMENU_RELEASE \$Revision: 75 \$ \$Date: 2010-04-25 22:20:22 -0400 (Sun, 25 Apr 2010) \$" > "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "#define USER_SCRIPT_LABEL Start AirVideo" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "#define USER_SCRIPT_DESCR This will start the AirVideo service so you can stream and live convert files" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "#define USER_SCRIPT_TEST test -e /boot/packages/AirVideoServerLinux.jar && echo \"Start AirVideo\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "echo \"<pre>\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "set -xv" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "cd ${PACKAGE_DIRECTORY}" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "echo \"air-video-server.sh test.properties &\" | at now + 1 minute" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo   >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_start_airvideo"
echo "#UNMENU_RELEASE \$Revision: 75 \$ \$Date: 2010-04-25 22:20:22 -0400 (Sun, 25 Apr 2010) \$" > "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "#define USER_SCRIPT_LABEL Stop AirVideo" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "#define USER_SCRIPT_DESCR This will stop the AirVideo service from running so that the array can be stopped cleanly" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "#define USER_SCRIPT_TEST test -x /boot/packages/AirVideoServerLinux.jar && echo \"Stop AirVideo\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "echo \"<pre>\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "set -xv" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "if [[ ! -z \$(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print\$2}') ]]; then" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "sleep 5" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "   for i in \$(ps -ef | grep AirVideoServerLinux.jar | grep -v grep | awk '{print\$2}')" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "   do" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "      if [[ \$(ps -fp \$i | awk 'NR>1' | awk '{print \$10}') = \"\${PACKAGE_DIRECTORY}/AirVideoServerLinux.jar\" ]]; then" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "         kill \$i" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "         echo \"<font color=\"red\"><b>Killed \"\$i\"</b></font>\"" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "      fi" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "      sleep 5" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "   done" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo "fi" >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
echo  >> "${SCRIPT_DIRECTORY}/41-unmenu_user_script_stop_airvideo"
rm -f "${PACKAGE_DIRECTORY}"/test.properties
touch "${PACKAGE_DIRECTORY}"/test.properties
echo "path.ffmpeg = ${PACKAGE_DIRECTORY}/ffmpeg/ffmpeg" >> "${PACKAGE_DIRECTORY}"/test.properties
echo "path.mp4creator = /usr/bin/mp4creator" >> "${PACKAGE_DIRECTORY}"/test.properties
echo "path.faac = /usr/bin/faac" >> "${PACKAGE_DIRECTORY}"/test.properties
echo "password = passwordPlaceHolder" >> "${PACKAGE_DIRECTORY}"/test.properties
echo "subtitles.encoding = windows-1250" >> "${PACKAGE_DIRECTORY}"/test.properties
echo "subtitles.font = Verdana" >> "${PACKAGE_DIRECTORY}"/test.properties
echo "folders = folderPlaceHolder" >> "${PACKAGE_DIRECTORY}"/test.properties
sed -i s@passwordPlaceHolder@"${vPassword}"@ "${PACKAGE_DIRECTORY}"/test.properties
sed -i s@folderPlaceHolder@"${vFolders}"@ "${PACKAGE_DIRECTORY}"/test.properties
rm -f "${PACKAGE_DIRECTORY}"/air-video-server.sh
touch "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "#!/bin/bash" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "PROPFILE='/etc/conf.d/air-video-server'" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "LOCALPROP=\`echo ~/.air-video-server/air-video-server.properties\`" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "if [ -a \"\$1\" ]; then" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "  PROPFILE=\"\$1\"" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "else" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "  [ -a \"\$LOCALPROP\" ] && PROPFILE=\"\$LOCALPROP\"" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "fi" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "exec /usr/lib/jre1.6.0_11/bin/java -jar "${PACKAGE_DIRECTORY}"/AirVideoServerLinux.jar \"\$PROPFILE\"" >> "${PACKAGE_DIRECTORY}"/air-video-server.sh
chmod +x "${PACKAGE_DIRECTORY}"/air-video-server.sh
echo "Version: 2.4.5-beta6" > /var/log/airvideo
cd "${PACKAGE_DIRECTORY}"
echo "bash air-video-server.sh test.properties" | at now + 1 minute

 

 

root@Tower:/boot/packages/ffmpeg# ls
COPYING.GPLv2*     LICENSE*           _resample.c*   cmdutils.o*              configure.orig.fixed*  ffplay.c*    libavdevice/  tools/
COPYING.GPLv3*     MAINTAINERS*       _segmenter.c*  cmdutils_common_opts.h*  configure.rej*         ffpresets/   libavfilter/  version.h*
COPYING.LGPLv2.1*  Makefile*          _snapshot*     common.mak*              doc/                   ffserver*    libavformat/  version.sh*
COPYING.LGPLv3*    README*            _unicode.c*    config.err*              ffmpeg*                ffserver.c*  libavutil/    version.sh.old*
CREDITS*           _configure*        _unicode.h*    config.h*                ffmpeg-mingw32.diff*   ffserver.d*  libpostproc/
Changelog*         _configure.mingw*  cmdutils.c*    config.mak*              ffmpeg.c*              ffserver.h*  libswscale/
Doxyfile*          _make*             cmdutils.d*    configure*               ffmpeg.d*              ffserver_g*  subdir.mak*
INSTALL*           _overlay.c*        cmdutils.h*    configure.orig*          ffmpeg_g*              libavcodec/  tests/

 

 

Note that in your original post, you had "ps -ef |grep Airvideo" which results in nothing because the "V" needs to be capitalized...

 

root@Tower:/boot/packages/ffmpeg# ps -ef |grep AirVideo
root      7735  7734  1 08:52 ?        00:00:04 /usr/lib/jre1.6.0_11/bin/java -jar /boot/packages/AirVideoServerLinux.jar test.properties
root     11713 10776  0 08:55 pts/0    00:00:00 grep AirVideo

 

root@Tower:/boot/packages/ffmpeg# ffmpeg -version
FFmpeg version ffmpeg-for-2.2.5.tar.bz2, Copyright (c) 2000-2010 Fabrice Bellard, et al.
 built on Jun 20 2011 22:44:38 with gcc 4.2.4
 configuration: --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-x11grab --disable-shared --enable-static
 libavutil     50. 8. 0 / 50. 8. 0
 libavcodec    52.52. 0 / 52.52. 0
 libavformat   52.50. 0 / 52.50. 0
 libavdevice   52. 2. 0 / 52. 2. 0
 libswscale     0.10. 0 /  0.10. 0
 libpostproc   51. 2. 0 / 51. 2. 0
FFmpeg ffmpeg-for-2.2.5.tar.bz2
libavutil     50. 8. 0 / 50. 8. 0
libavcodec    52.52. 0 / 52.52. 0
libavformat   52.50. 0 / 52.50. 0
libavdevice   52. 2. 0 / 52. 2. 0
libswscale     0.10. 0 /  0.10. 0
libpostproc   51. 2. 0 / 51. 2. 0

 

The last one is what is probably causing the issue... I know I have downloaded 2.4.5 It's listed on the AirVideo packages in the unMenu item.

Link to comment

Yes, you appear to be running the old version of ffmpeg.  Though I am not quite sure how that happened. 

 

Can you give me the output of:

/boot/packages/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'

 

and

 

ls -lrt /boot/packages/ | grep ffmpeg-for- | awk 'END{print $NF}'

Link to comment

Opps... I'm not sure if it's relevant now, because I blew away ffmpeg-for-2.2.5...

 

but I have the answer to your question, I realized that this line in the conf file:

 

 

PACKAGE_INSTALLATION LATEST_DOWNLOADED_VERSION=`ls -lrt ${PACKAGE_DIRECTORY} | grep ffmpeg-for- | awk 'END{print $NF}'`

 

 

was grabbing the old version. Even after I renamed it to a .bak extension... so I have deleted the old version and now in the process of "reinstalling" the AirVideo package which should in theory compile the newest version of ffmpeg now.

 

It's now re-installed, confirmed that ffmpeg 2.4.5 is instealld and working!

 

btw: Do I need the Java JRE to enable on reboot for AirVideo to work ?

Link to comment

Opps... I'm not sure if it's relevant now, because I blew away ffmpeg-for-2.2.5...

 

but I have the answer to your question, I realized that this line in the conf file:

 

 

PACKAGE_INSTALLATION LATEST_DOWNLOADED_VERSION=`ls -lrt ${PACKAGE_DIRECTORY} | grep ffmpeg-for- | awk 'END{print $NF}'`

 

 

was grabbing the old version. Even after I renamed it to a .bak extension... so I have deleted the old version and now in the process of "reinstalling" the AirVideo package which should in theory compile the newest version of ffmpeg now.

 

It's now re-installed, confirmed that ffmpeg 2.4.5 is instealld and working!

Hum, that's not cool.  If you could put the 2.2.5 file back and run the commands that would be great.  I would really really like to figure out what might be going on and why 2.2.5 came back instead of 2.4.5.

 

I am trying to sort by modification time, which might be the thing that is causing the problem here.  I am assuming that the 2.4.5 download will have the newest modification time... which it should if the new .conf file was put in place over the old one.

 

btw: Do I need the Java JRE to enable on reboot for AirVideo to work ?

The AirVideo package downloads and installs its own java if it can't find one installed.  I am actually changing that as Java needs to be installed outside of the AirVideo package.  I have an update unMenu java .conf file ready, but am holding off to get feedback on situations like yours.

Link to comment

ok so I downloaded and put ffmpeg-for-2.2.5.tar.bz2 back in the /boot/packages folder. For the record, they are:

 

root@Tower:/boot/packages# ls -alt |grep ffmpeg

-rwxrwxrwx  1 root root  3169620 2011-06-22 21:10 ffmpeg-for-2.2.5.tar.bz2*

drwxrwxrwx 14 root root    8192 2011-06-22 09:25 ffmpeg/

-rwxrwxrwx  1 root root  4322989 2011-05-09 17:00 ffmpeg-for-2.4.5-beta6.tar.bz2*

 

You'll notice right away that the date for ffmpeg-for-2.4.5 is actually earlier than 2.2.5. This could be because I downloaded via a PC browser and copied it to the linux box, instead of downloading it via the old conf file. not sure if downloading via the old conf file results in the same behaviour or not.

 

/boot/packages/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'

 

I have everything working, so the result of the above is:

 

root@Tower:/boot/packages# /boot/packages/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'

ffmpeg-for-2.4.5-beta6.tar.bz2

 

and

 

ls -lrt /boot/packages/ | grep ffmpeg-for- | awk 'END{print $NF}'

 

 

root@Tower:/boot/packages# ls -lrt /boot/packages/ | grep ffmpeg-for- | awk 'END{print $NF}'

ffmpeg-for-2.2.5.tar.bz2*

 

 

So of course in this case, it pulled up 2.2.5.

 

I deleted ffmpeg-for-2.2.5, then I copied over the old conf file, then via the unMenu clicked on download AirVideo, I see the following:

 

root@Tower:/boot/packages# ls -alt |grep ffmpeg

drwxrwxrwx 14 root root    8192 2011-06-22 09:25 ffmpeg/

-rwxrwxrwx  1 root root  4322989 2011-05-09 17:00 ffmpeg-for-2.4.5-beta6.tar.bz2*

-rwxrwxrwx  1 root root  3169620 2010-02-07 15:06 ffmpeg-for-2.2.5.tar.bz2*

 

 

The result of the above two commands are:

 

 

root@Tower:/boot/packages# /boot/packages/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'

ffmpeg-for-2.4.5-beta6.tar.bz2

root@Tower:/boot/packages# ls -lrt /boot/packages/ | grep ffmpeg-for- | awk 'END{print $NF}'

ffmpeg-for-2.4.5-beta6.tar.bz2*

 

which is the correct behaviour.

 

I installed ffmpeg-2.2.5, then deleted 2.4.5, copied over the new conf file, then clicked download AirVideo via unMenu, and I get:

 

 

root@Tower:/boot/packages# ls -alt |grep ffmpeg

drwxrwxrwx 14 root root    8192 2011-06-22 09:25 ffmpeg/

-rwxrwxrwx  1 root root  4322989 2011-05-09 17:00 ffmpeg-for-2.4.5-beta6.tar.bz2*

-rwxrwxrwx  1 root root  3169620 2010-02-07 15:06 ffmpeg-for-2.2.5.tar.bz2*

 

 

root@Tower:/boot/packages# /boot/packages/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'

ffmpeg-for-2.4.5-beta6.tar.bz2

root@Tower:/boot/packages# ls -lrt /boot/packages/ | grep ffmpeg-for- | awk 'END{print $NF}'

ffmpeg-for-2.4.5-beta6.tar.bz2*

 

so the results are as expected.

 

I then clicked install and then check again:

 

 

root@Tower:/boot/packages# /boot/packages/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'

ffmpeg-for-2.4.5-beta6.tar.bz2

root@Tower:/boot/packages# ls -lrt /boot/packages/ | grep ffmpeg-for- | awk 'END{print $NF}'

ffmpeg-for-2.4.5-beta6.tar.bz2*

 

I went back and realized that I didn't check one thing, which was after 2.2.5 was installed to check the version of ffmpeg, so I did just that, copied the old conf file over and installed AirVideo, then checked using ffmpeg -version, guess what:

 

 

root@Tower:/boot/packages/ffmpeg# ffmpeg -version

ffmpeg version ffmpeg-for-2.4.5-beta6.tar.bz2, Copyright © 2000-2011 the FFmpeg developers

  built on Jun 22 2011 09:24:33 with gcc 4.2.4

  configuration: --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-x11grab --disable-shared --enable-static

  libavutil    51.  2. 1 / 51.  2. 1

  libavcodec  53.  3. 0 / 53.  3. 0

  libavformat  53.  0. 3 / 53.  0. 3

  libavdevice  53.  0. 0 / 53.  0. 0

  libavfilter  2.  4. 0 /  2.  4. 0

  libswscale    0. 14. 0 /  0. 14. 0

  libpostproc  51.  2. 0 / 51.  2. 0

ffmpeg ffmpeg-for-2.4.5-beta6.tar.bz2

libavutil    51.  2. 1 / 51.  2. 1

libavcodec  53.  3. 0 / 53.  3. 0

libavformat  53.  0. 3 / 53.  0. 3

libavdevice  53.  0. 0 / 53.  0. 0

libavfilter  2.  4. 0 /  2.  4. 0

libswscale    0. 14. 0 /  0. 14. 0

libpostproc  51.  2. 0 / 51.  2. 0

 

It's still the NEW version of ffmpeg... I'm not sure what the hell is going on, clearly, the new and the old conf files have some issues that doesn't cover all the cases of removing and re-installing the correct version of ffmpeg.

 

I blew away the ffmpeg directory, edited the config file, then clicked on Re-install Now...

 

 

root@Tower:/boot/packages# ls -lrt /boot/packages/ | grep ffmpeg-for- | awk 'END{print $NF}'

ffmpeg-for-2.4.5-beta6.tar.bz2*

root@Tower:/boot/packages# /boot/packages/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'

UNKNOWN

 

WTH?!?!?

 

Sorry, not sure if this helps you or not. Perhaps you can ask the other user to check the datestamp on his files since I seem to be having a hard time replicating my original problem.

 

I've reinstalled 2.4.5 and everything seems to work.

Link to comment

ok so I downloaded and put ffmpeg-for-2.2.5.tar.bz2 back in the /boot/packages folder. For the record, they are:

 

root@Tower:/boot/packages# ls -alt |grep ffmpeg

-rwxrwxrwx  1 root root  3169620 2011-06-22 21:10 ffmpeg-for-2.2.5.tar.bz2*

drwxrwxrwx 14 root root     8192 2011-06-22 09:25 ffmpeg/

-rwxrwxrwx  1 root root  4322989 2011-05-09 17:00 ffmpeg-for-2.4.5-beta6.tar.bz2*

 

You'll notice right away that the date for ffmpeg-for-2.4.5 is actually earlier than 2.2.5. This could be because I downloaded via a PC browser and copied it to the linux box, instead of downloading it via the old conf file. not sure if downloading via the old conf file results in the same behaviour or not.

 

/boot/packages/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'

 

I have everything working, so the result of the above is:

 

root@Tower:/boot/packages# /boot/packages/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'

ffmpeg-for-2.4.5-beta6.tar.bz2

 

and

 

ls -lrt /boot/packages/ | grep ffmpeg-for- | awk 'END{print $NF}'

 

 

root@Tower:/boot/packages# ls -lrt /boot/packages/ | grep ffmpeg-for- | awk 'END{print $NF}'

ffmpeg-for-2.2.5.tar.bz2*

 

 

So of course in this case, it pulled up 2.2.5.

 

I deleted ffmpeg-for-2.2.5, then I copied over the old conf file, then via the unMenu clicked on download AirVideo, I see the following:

 

root@Tower:/boot/packages# ls -alt |grep ffmpeg

drwxrwxrwx 14 root root     8192 2011-06-22 09:25 ffmpeg/

-rwxrwxrwx  1 root root  4322989 2011-05-09 17:00 ffmpeg-for-2.4.5-beta6.tar.bz2*

-rwxrwxrwx  1 root root  3169620 2010-02-07 15:06 ffmpeg-for-2.2.5.tar.bz2*

 

 

The result of the above two commands are:

 

 

root@Tower:/boot/packages# /boot/packages/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'

ffmpeg-for-2.4.5-beta6.tar.bz2

root@Tower:/boot/packages# ls -lrt /boot/packages/ | grep ffmpeg-for- | awk 'END{print $NF}'

ffmpeg-for-2.4.5-beta6.tar.bz2*

 

which is the correct behaviour.

 

I installed ffmpeg-2.2.5, then deleted 2.4.5, copied over the new conf file, then clicked download AirVideo via unMenu, and I get:

 

 

root@Tower:/boot/packages# ls -alt |grep ffmpeg

drwxrwxrwx 14 root root     8192 2011-06-22 09:25 ffmpeg/

-rwxrwxrwx  1 root root  4322989 2011-05-09 17:00 ffmpeg-for-2.4.5-beta6.tar.bz2*

-rwxrwxrwx  1 root root  3169620 2010-02-07 15:06 ffmpeg-for-2.2.5.tar.bz2*

 

 

root@Tower:/boot/packages# /boot/packages/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'

ffmpeg-for-2.4.5-beta6.tar.bz2

root@Tower:/boot/packages# ls -lrt /boot/packages/ | grep ffmpeg-for- | awk 'END{print $NF}'

ffmpeg-for-2.4.5-beta6.tar.bz2*

 

so the results are as expected.

 

I then clicked install and then check again:

 

 

root@Tower:/boot/packages# /boot/packages/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'

ffmpeg-for-2.4.5-beta6.tar.bz2

root@Tower:/boot/packages# ls -lrt /boot/packages/ | grep ffmpeg-for- | awk 'END{print $NF}'

ffmpeg-for-2.4.5-beta6.tar.bz2*

 

I went back and realized that I didn't check one thing, which was after 2.2.5 was installed to check the version of ffmpeg, so I did just that, copied the old conf file over and installed AirVideo, then checked using ffmpeg -version, guess what:

 

 

root@Tower:/boot/packages/ffmpeg# ffmpeg -version

ffmpeg version ffmpeg-for-2.4.5-beta6.tar.bz2, Copyright © 2000-2011 the FFmpeg developers

  built on Jun 22 2011 09:24:33 with gcc 4.2.4

  configuration: --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-x11grab --disable-shared --enable-static

  libavutil    51.  2. 1 / 51.  2. 1

  libavcodec   53.  3. 0 / 53.  3. 0

  libavformat  53.  0. 3 / 53.  0. 3

  libavdevice  53.  0. 0 / 53.  0. 0

  libavfilter   2.  4. 0 /  2.  4. 0

  libswscale    0. 14. 0 /  0. 14. 0

  libpostproc  51.  2. 0 / 51.  2. 0

ffmpeg ffmpeg-for-2.4.5-beta6.tar.bz2

libavutil    51.  2. 1 / 51.  2. 1

libavcodec   53.  3. 0 / 53.  3. 0

libavformat  53.  0. 3 / 53.  0. 3

libavdevice  53.  0. 0 / 53.  0. 0

libavfilter   2.  4. 0 /  2.  4. 0

libswscale    0. 14. 0 /  0. 14. 0

libpostproc  51.  2. 0 / 51.  2. 0

 

It's still the NEW version of ffmpeg... I'm not sure what the hell is going on, clearly, the new and the old conf files have some issues that doesn't cover all the cases of removing and re-installing the correct version of ffmpeg.

 

I blew away the ffmpeg directory, edited the config file, then clicked on Re-install Now...

 

 

root@Tower:/boot/packages# ls -lrt /boot/packages/ | grep ffmpeg-for- | awk 'END{print $NF}'

ffmpeg-for-2.4.5-beta6.tar.bz2*

root@Tower:/boot/packages# /boot/packages/ffmpeg/ffmpeg -version 2>&1 | awk 'NF==2' | awk '{ field = $NF}; END{ print field }'

UNKNOWN

 

WTH?!?!?

 

Sorry, not sure if this helps you or not. Perhaps you can ask the other user to check the datestamp on his files since I seem to be having a hard time replicating my original problem.

 

I've reinstalled 2.4.5 and everything seems to work.

 

OK, everything is as expected from everything you gave me.  I really appreciate all the testing you just did.  The reason for the last part about UNKNOWN is because of the old .conf file.  That old .conf file does not do some of the checking and updating that the new one does.  I noticed from the testing I did with this package that there needed to be an easier way to update just pieces of it and be able to rebuild the version of ffmpeg used.  The first package just checked for the existence of the ffpmeg folder and executable.  The new .conf file throws in a version check compare.

 

The issue with the first install I am almost positive at this point is the fact that you downloaded the ffmpeg version from a PC and then transferred it to your unRAID machine.  The modified time was then different from what I had been expecting and what I was keying off of.  Once the ffmpeg file was downloaded via the .conf file it appears like everything is as I expected it to be.

 

I am glad to hear that everything is working for you now.

Link to comment

actualy, I might have spoken too soon, playing videos last night, the unRaid server would crash pretty often, happened twice and then I decided to call it a night.

 

I'm going to delete all of the old and new files and directories, then use the new conf to download everything from scratch and recompile...

 

Note that the first time I tried to upgrade, I did not use my PC to download and only used the conf file, I'm not sure how the 2.2.5 file ended up with a newer datestamp than 2.4.5...

 

 

Link to comment

i'm not sure what's going on, I'm experiencing the same server crashes with the new 2.4.5 as I did with 2.2.5

 

It plays sometimes for a few minutes, then it would crash. I'll have to go back and see if there's a conflict with something else.

Link to comment

i'm not sure what's going on, I'm experiencing the same server crashes with the new 2.4.5 as I did with 2.2.5

 

It plays sometimes for a few minutes, then it would crash. I'll have to go back and see if there's a conflict with something else.

 

I can go back later and see if I am running into any problems with crashing.  I tested with a couple of files, though did not play them for very long.  I will put it on the list of things to look into and see if I can live convert a couple of shows in a row.

Link to comment

so I'm taking a closer look at what's causing the freezes. Here's my setup:

 

AMD Athlon II x3 2.9GHz

4gig ram

unRaid 4.7

 

running rock solid for months

 

Here are the packages I've installed:

 

 

root@Tower:/boot/packages# ls -alt |grep auto_install

-rwxrwxrwx  1 root root    11137 Jun 23 08:58 AirVideoServerLinux.jar.auto_install*

-rwxrwxrwx  1 root root      119 Jun 22 08:52 jre-6u11-i586-1.tgz.auto_install*

-rwxrwxrwx  1 root root    13063 Jun 20 23:56 minidlna-1.0.19-i486-2.tgz.auto_install*

-rwxrwxrwx  1 root root    1504 Jun 20 22:50 unraid-swapfile.auto_install*

-rwxrwxrwx  1 root root      98 Apr 17 10:46 infozip-5.52-i486-2.tgz.auto_install*

-rwxrwxrwx  1 root root      633 Apr 11 22:17 monthly_parity_check.auto_install*

-rwxrwxrwx  1 root root      662 Apr  1 08:21 php-5.2.8-i486-1.tgz.auto_install*

-rwxrwxrwx  1 root root      501 Mar 26 19:27 powerdown-1.02-noarch-unRAID.tgz.auto_install*

-rwxrwxrwx  1 root root    2081 Mar 26 19:26 apcupsd-3.14.3-i486-1kjz.tgz.auto_install*

-rwxrwxrwx  1 root root      110 Mar 26 19:17 unrar-3.7.8-i486-1stc_slack12.1.tgz.auto_install*

-rwxrwxrwx  1 root root      97 Mar 26 19:14 rsync-3.0.4-i486-1.tgz.auto_install*

-rwxrwxrwx  1 root root      101 Mar 26 19:12 pciutils-2.2.10-i486-2.tgz.auto_install*

-rwxrwxrwx  1 root root    4892 Mar 26 19:06 unraid-status-email.auto_install*

-rwxrwxrwx  1 root root      120 Mar 26 19:02 hdparm-9.27-i486-1.txz.auto_install*

-rwxrwxrwx  1 root root      98 Mar 26 19:01 bwm-ng-0.6-i486-2bj.tgz.auto_install*

-rwxrwxrwx  1 root root    2344 Mar 20 18:45 ssmtp_2.62.orig.tar.gz.auto_install*

-rwxrwxrwx  1 root root      135 Mar 20 18:41 screen-4.0.3-i486-1.tgz.auto_install*

 

and here's my go script:

 

 

#!/bin/bash

# Start the Management Utility

 

#create another temp ramdisk to store log to to avoid log explosion

/boot/scripts/syslog_tmpfs

 

ulimit -n 16404;/usr/local/sbin/emhttp &

/boot/unmenu/uu

ifconfig eth0 mtu 6000

 

#turn on SMART on all HD

for i in /dev/sd?

do

  smartctl -a -s on $i

done

 

/boot/scripts/cache_dirs -w

 

cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c

/boot/config/snap/snap.sh -b

 

#mount DNS-323

mkdir -p /mnt/dns323

mount //dns323/Volume_1 /mnt/dns323 -o passwords=

 

#drop Pictures/Personal data script into cron

cp /boot/scripts/dns323_sync /etc/cron.daily/

 

 

results of free:

 

 

root@Tower:/boot# free

            total      used      free    shared    buffers    cached

Mem:      4115664    3987444    128220          0      71544    3553976

-/+ buffers/cache:    361924    3753740

Swap:    10485752          0  10485752

 

 

I temporarily removed the ramdrive for the log explosion fix, and also removed cache_dirs. I also removed the swapfile and minidlna. I also am starting up uuMenu regularly instead of calling ulimit...

 

free now reports:

 

 

root@Tower:~# free

            total      used      free    shared    buffers    cached

Mem:      4115664    772724    3342940          0      7392    637076

-/+ buffers/cache:    128256    3987408

Swap:            0          0          0

 

I ran AirVideo, it played a 720p mkv for about 5min and then froze again...

 

at this point I'm stumped... not sure what else to do ? Does AirVideo have some kind of debugging I can turn on ? or logging I can save and hopefully capture before the system freezes ?

 

Link to comment

i hope i'm not sounding too naive here, but after installing unMenu, then the AirVideo package (had to do it twice, because i didn't install gcc first), and finally hitting the "Start AirVideo" i am lost...how do i point at a particular share or directory for the server to know where my movies are? and once i have that, how do i look-at/view the videos? do i use VLC or what?

 

btw, the reason i installed the AirVideo package in the first place, because i discovered it only after wanting to post in the forums about the VLC Streaming server, which works amazingly well from my iMac to my iPhone...quick and sharp...on their forum i saw that someone had posted a link to the new Linux variant of the server at http://forum.hobbyistsoftware.com/viewtopic.php?f=4&t=2 and wanted to find out whether somebody here on the unRAID forum had already inquired about the possibility of implementing this video server (or whether it's even possible).

 

could someone please take a few minutes and enlighten me about what to do once the AirVideo package is running (how to test it, how to add directories, and how to view them on a computer and on an iPad/iPhone)?

 

oh, and how do i make sure that the AirVideo package will start *every time* after rebooting? (without first having to go into unMenu User Scripts)

 

thanks in advance for your patience with an unRAID veteran of over 5 years, but still a command-line novice ;)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.