December 6, 201114 yr Hello all, Update 7/17/2012: Work and then a motorcycle accident have left me out of commission for a while. Although, I'm mostly back and am aiming to post a few updates to my plugins, jangjong's new plugin makes this one no longer necessary. http://lime-technology.com/forum/index.php?topic=21356.0 I will ask an admin to lock this thread to avoid future confusion. End Update
December 6, 201114 yr Awesome thx so much for this! I've got subsonic up and running already so I'm hesitant to mess it up. This can point at an existing install?
December 6, 201114 yr Author Awesome thx so much for this! I've got subsonic up and running already so I'm hesitant to mess it up. This can point at an existing install? Good question. As a former user of the previous method, I guess I can try and find out. I think I have the prev install still on my flash drive. I'll do so when I get a moment.
December 6, 201114 yr I'm trying to transcode some flac files here, and have chased down a laundry list of missing dependencies for ffmpeg: <FILE Name="/boot/packages/alsa-lib-1.0.23-i486-1.txz" Run="upgradepkg --install-new"> <URL>ftp://ftp.slackware.com/pub/slackware/slackware-13.1/slackware/l/alsa-lib-1.0.23-i486-1.txz</URL> </FILE> <FILE Name="/boot/packages/libX11-1.3.3-i486-1.txz" Run="upgradepkg --install-new"> <URL>ftp://ftp.slackware.com/pub/slackware/slackware-13.1/slackware/x/libX11-1.3.3-i486-1.txz</URL> </FILE> <FILE Name="/boot/packages/libXext-1.1-i486-1.txz" Run="upgradepkg --install-new"> <URL>ftp://ftp.slackware.com/pub/slackware/slackware-13.1/slackware/x/libXext-1.1-i486-1.txz</URL> </FILE> <FILE Name="/boot/packages/libXfixes-4.0.4-i486-1.txz" Run="upgradepkg --install-new"> <URL>ftp://ftp.slackware.com/pub/slackware/slackware-13.1/slackware/x/libXfixes-4.0.4-i486-1.txz</URL> </FILE> <FILE Name="/boot/packages/libtheora-1.1.1-i486-1.txz" Run="upgradepkg --install-new"> <URL>ftp://ftp.slackware.com/pub/slackware/slackware-13.1/slackware/l/libtheora-1.1.1-i486-1.txz</URL> </FILE> <FILE Name="/boot/packages/libxcb-1.6-i486-1.txz" Run="upgradepkg --install-new"> <URL>http://slackware.cs.utah.edu/pub/slackware/slackware-13.1/slackware/x/libxcb-1.6-i486-1.txz</URL> </FILE> <FILE Name="/boot/packages/libogg-1.1.4-i486-1.txz" Run="upgradepkg --install-new"> <URL>ftp://ftp.slackware.com/pub/slackware/slackware-13.1/slackware/l/libogg-1.1.4-i486-1.txz</URL> </FILE> <FILE Name="/boot/packages/libXau-1.0.5-i486-1.txz" Run="upgradepkg --install-new"> <URL>ftp://ftp.slackware.com/pub/slackware/slackware-13.1/slackware/x/libXau-1.0.5-i486-1.txz</URL> </FILE> <FILE Name="/boot/packages/libXdmcp-1.0.3-i486-1.txz" Run="upgradepkg --install-new"> <URL>ftp://ftp.slackware.com/pub/slackware/slackware-13.1/slackware/x/libXdmcp-1.0.3-i486-1.txz</URL> </FILE> transcoding still doesn't work though - lame can't read the input stream from ffmpeg. And straight-up ffmpeg-to-mp3 doesn't work either investigation is needed...
December 8, 201114 yr well, updated to subsonic 4.6 (had to brute-force it a bit though - tried to modify the .plg, but am not sure I did it right..). 4.6 uses ffmpeg accross-the-board for direct transcoding. Now mp3 output did not work however - ffmpeg wasn't compiled with liblamemp3 support, apparently. (or, lame didn't get installed on account of the .plg file referencing the x86-64 version). So, I compiled my own ffmpeg, from the latest git snapshot. linky: http://dl.dropbox.com/u/3127998/unraid/ffmpeg-2011-12-08-i486-unRAID-1maa.tgz requires the i486 lame package (and nothing else, i think. transcoding flac works for me now, after I uninstalled my previous ffmpeg-dependency laundry list as well as flac and faad2. video files are untested.): http://repository.slacky.eu/slackware-13.1/multimedia/lame/3.98.4/lame-3.98.4-i486-1sl.txz
December 27, 201114 yr Any news on this? I just tried upgrading to 4.6 on my own (Standard upgrade) using the ffmpeg shown above however whenever i click play on a video file it says Video not found or access denied. So i'm assuming its an error with the ffmpeg ? Music works fine though.
December 27, 201114 yr Well, it's probably an issue with the ffmpeg - I don't think I compiled video support in (and frankly, the number of configure flags are a tad overwhelming if/when I get around to recompiling with video support, I'll make sure to update this post (and maybe even the .plg). No promises though, seeing as music is the only use-case i'm interested in
December 27, 201114 yr Well, it's probably an issue with the ffmpeg - I don't think I compiled video support in (and frankly, the number of configure flags are a tad overwhelming if/when I get around to recompiling with video support, I'll make sure to update this post (and maybe even the .plg). No promises though, seeing as music is the only use-case i'm interested in No FLAC files play for me with 4.6 with the above FFMPEG. I have the FFMPEG in /mnt/cache/.subsonic/home/transcode along with LAME. I get no errors in my log, it just doesn't work. How do you have these installed? In their normal, /usr/bin & /usr/lib?
December 27, 201114 yr the tgz installs to /usr/bin etc. Do you have the correct architecture (i486) lame installed? had me stumped for a while also, try running a decode job from the console, and see if anything useful happens.
December 27, 201114 yr I am using the pkg you posted. Just copied from /usr/bin/lame to /mnt/cache/.subsonic/home/transcode How do you have yours setup? This was working fine previously! Should have never updated
December 28, 201114 yr Could you perhaps post a little how-to or a link to something similar so any of us interested in compiling ffmpeg for video for use in subsonic would be able to do so? Video has been one of the big features of subsonic for a long time now and it seems a shame to have to sacrifice it for the newer version of subsonic (only prev released version on unraid forum is 4.4)
December 28, 201114 yr Could you perhaps post a little how-to or a link to something similar so any of us interested in compiling ffmpeg for video for use in subsonic would be able to do so? Video has been one of the big features of subsonic for a long time now and it seems a shame to have to sacrifice it for the newer version of subsonic (only prev released version on unraid forum is 4.4) Sure firstly, you'd need a build environment. /ObviousStatement If you don't have one, I made a .plg that sets up Slackware 13.1 in a chroot, complete with dev tools: http://lime-technology.com/forum/index.php?topic=16145.msg149350#msg149350 (there might be bugs - can't say it's been extensively tested. Works for me. No svn/git/mercurial yet, btw. possible upgrade path ) then, get ffmpeg sources from: http://ffmpeg.org/download.html and copy to $BUILDENV/usr/src (or wherever inside the chroot) and any dependencies you'd like from pkgs.org (read the configure script in the ffmpeg source for options) Install dependency packages into buildenv chroot; installpkg --root $BUILDENV lame*.txz (repeat for any additional dependencies needed for video transcoding) enter chroot (using my package) as root: root@tower:~# go_build.sh unpack ffmpeg root@[buildenv]# cd /usr/src root@[buildenv]:/usr/src# tar xjvf ffmpeg*bz2 root@[buildenv]:/usr/src/# cd ffmpeg* configure and compile: root@[buildenv]:/usr/src/ffmpeg# ./configure --options-for-video-transcoding --enable-libmp3lame --prefix=/usr root@[buildenv]:/usr/src/ffmpeg# make root@[buildenv]:/usr/src/ffmpeg# make install DESTDIR=/usr/src/builds/ffmpeg-$VERSION once compiled, there's a handy guide for slack pacakges at linuxpackages.net: http://www.linuxpackages.net/howto.php?page=perfect-package&title=Perfect+Package don't hesitate to ask if there are further questions note: I did not include configure flags for video transcoding - that is an exercise for the reader.
December 29, 201114 yr OK, so I needed something to procrastinate over instead of working on my bachelor's thesis. That led to this: ffmpeg with x264 output support: http://dl.dropbox.com/u/3127998/unraid/ffmpeg-0.9-i486-unRAID-1maa.txz latest x264 nightly, required for video: http://dl.dropbox.com/u/3127998/unraid/x264-2011.12.27-i486-1maa.txz still need lame: http://repository.slacky.eu/slackware-13.1/multimedia/lame/3.98.4/lame-3.98.4-i486-1sl.txz Watching music vids in subsonic while typing Enjoy!
December 29, 201114 yr Draug3n, do you mind if I use your binaries in a revised plugin? Not at all! happy to help out
December 30, 201114 yr http://dl.dropbox.com/u/3127998/unraid/ffmpeg-0.9-i486-unRAID-1maa.txz latest x264 nightly, required for video: http://dl.dropbox.com/u/3127998/unraid/x264-2011.12.27-i486-1maa.txz still need lame: http://repository.slacky.eu/slackware-13.1/multimedia/lame/3.98.4/lame-3.98.4-i486-1sl.txz Enjoy! When using the above ffmpeg for video i seem to be getting [2011-12-30 11:21:53,663] DEBUG InputStreamReaderThread - (/var/subsonic/data/transcode/ffmpeg) /var/subsonic/data/transcode/ffmpeg: error while loading shared libraries: libavdevice.so.53: cannot open shared object file: No such file or directory missing libavdevice.so ? Not sure what to do here. From what i gather you went ahead and did the very thing i asked directions to do. Which is much apreciated by the way! And i've saved the directions of how to do it in a little notepad file as the need will arise to compile something else soon enough (as it always seems to!) Note: I just placed all the compiled files inside the transcode folder (i assume thats correct?) Edit: DOH. forgot the library files. Knew i'd missed something For anyone else with this trouble, make sure you move all files in the lib folder into the usr-lib folder in the transcode folder
December 30, 201114 yr Excuse the double post but didn't want to confuse my two posts. Everything seems fine now however when i play a video file it just doesn't play. No error in the log file, only a 'Unknown duration for 'filename' unable to estimate transcoded size. Any clues anybody? Worked fine on 4.4 with other ffmpeg (music works fine also) Also that ffmpeg file size is only 107KB? Is that right? Used to be 1,000~ before?
December 30, 201114 yr Note: I just placed all the compiled files inside the transcode folder (i assume thats correct?) I did indeed go ahead and do what my instructions said Sorry, that's not correct. not what I intended, at least. the files are slackware install packages, and are installable to /usr with # installpkg ffmpeg*txz etc. If you're using the .plg, $SUBSONIC_DIR/transcode should be a symlink to /usr/bin (is for me anyway) - no copying needed, and should "just work". Excuse the double post but didn't want to confuse my two posts. Everything seems fine now however when i play a video file it just doesn't play. No error in the log file, only a 'Unknown duration for 'filename' unable to estimate transcoded size. Any clues anybody? Worked fine on 4.4 with other ffmpeg (music works fine also) Also that ffmpeg file size is only 107KB? Is that right? Used to be 1,000~ before? No clues on that ffmpeg error (I'm just your friendly neighbourhood binary pusher ). What kind of file are you trying to play? mkv, avi, mp4 etc? And which old ffmpeg binary? this one is compiled with the bare minimum needed for subsonic standard transcoding: no extras, only mp3 and x264 output support. keeps it simple
December 31, 201114 yr Note: I just placed all the compiled files inside the transcode folder (i assume thats correct?) I did indeed go ahead and do what my instructions said Sorry, that's not correct. not what I intended, at least. the files are slackware install packages, and are installable to /usr with # installpkg ffmpeg*txz etc. If you're using the .plg, $SUBSONIC_DIR/transcode should be a symlink to /usr/bin (is for me anyway) - no copying needed, and should "just work". Excuse the double post but didn't want to confuse my two posts. Everything seems fine now however when i play a video file it just doesn't play. No error in the log file, only a 'Unknown duration for 'filename' unable to estimate transcoded size. Any clues anybody? Worked fine on 4.4 with other ffmpeg (music works fine also) Also that ffmpeg file size is only 107KB? Is that right? Used to be 1,000~ before? No clues on that ffmpeg error (I'm just your friendly neighbourhood binary pusher ). What kind of file are you trying to play? mkv, avi, mp4 etc? And which old ffmpeg binary? this one is compiled with the bare minimum needed for subsonic standard transcoding: no extras, only mp3 and x264 output support. keeps it simple Isn't everything inside /usr/bin deleted upon reboot? So should i have a script in my go file move them into there on bootup? and it was an mkv file. I'll try the installpkg and see if i get any errors that way. Thanks for the help Edit: actually spose i just need a installpkg ffmpeg in the go script instead, silly me!
February 7, 201214 yr I don't see a link to the plg, is it available? Yeah, i'd also like this .plg if anybody still has it?
February 8, 201214 yr swixxy & neph, I sent you both a PM. thanks! No Thank you!! I'll give it a go tonight. Thanks again.
February 12, 201214 yr seems to be working for the most part, except after I add more albums to the media directory they aren't scanned into the database.
Archived
This topic is now archived and is closed to further replies.