So, I figured it out.
Only because it was driving me batty trying to figure out which mp3s were DRM and which weren't and all of a sudden playlists would stop.
I was informed (so kindly) that a [free] DRM file I shared was working for another user (thank you, BKKKPewsey). Which meant I knew it had to be something to do with my installation.
So I said to myself, "Self, you have to have something wrong"
Today I created a Virtual Machine with a Linux environment that has the exact same steps I set up on my own box with (I love documentation). Took me a few minutes, but I got Tomcat and Subsonic up and running. I attempted to play the same DRM file and it worked.
So, I sat and figured out what's different between the two installations. Then I remembered!
At some point in the past I changed the ffmpeg that was installed in my Ubuntu installation. I changed it when the option to watch videos was added. I was getting an error when trying to play videos.
I reset my ffmpeg back to the version that's in the repository and I can now play the problem DRM files.
Then another problem happens. I can no longer appear to play videos. Tried with my "fresh installation" in the Virtual Machine and the same lack of dice.
Here's what's going on in the log:
- Code: Select all
[12/4/12 1:56:13 PM EST] INFO PlayQueueInputStream admin listening to "mp3/wicked_generic_trailer_700k.mov"
[12/4/12 1:56:13 PM EST] DEBUG TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [0] [-i] [/home/mp3/wicked_generic_trailer_700k.mov] [-async] [1] [-b] [300k] [-s] [428x240] [-ar] [44100] [-ac] [2] [-v] [0] [-f] [flv] [-vcodec] [libx264] [-preset] [superfast] [-threads] [0] [-]
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) configuration: --extra-version=4:0.5.9-0ubuntu0.10.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavutil 49.15. 0 / 49.15. 0
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavcodec 52.20. 1 / 52.20. 1
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavformat 52.31. 0 / 52.31. 0
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavdevice 52. 1. 0 / 52. 1. 0
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavfilter 0. 4. 0 / 0. 4. 0
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libswscale 0. 7. 1 / 0. 7. 1
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libpostproc 51. 2. 0 / 51. 2. 0
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) built on Jun 12 2012 16:27:34, gcc: 4.4.3
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/mp3/wicked_generic_trailer_700k.mov':
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Duration: 00:02:50.77, start: 0.000000, bitrate: 951 kb/s
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Stream #0.0(eng): Video: svq3, yuvj420p, 480x270, 29.97 tbr, 29.97 tbn, 29.97 tbc
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16
[12/4/12 1:56:13 PM EST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) /var/subsonic/transcode/ffmpeg: unrecognized option '-preset'
The last line, I'm assuming is the problem.
Memory is recalling that at some point I decided I wanted to watch the videos, and had to compile a fresh version of ffmpeg because something was missing in the version that was in Ubuntu. I don't remember which tutorial I used or where I found it.
So, now it's "If I want to listen to DRM files, I have to use the version of ffmpeg that's in the Ubuntu repositories. If I want to watch videos, I have to use the version of ffmpeg I compiled."
My compiled version: ffmpeg version git-2012-03-05-1879400 Copyright (c) 2000-2012 the FFmpeg developers built on Mar 5 2012 14:31:17 with gcc 4.4.3
Ubuntu installed version: FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
I glanced through the configuration options in the two ffmpeg versions and there is one difference that stands out -- the Ubuntu installed version doesn't have libx264 enabled.
So, right now I have the system jerry-rigged (no offense to anyone named Jerry). I have two ffmpeg's linked -- one named "ffmpeg" (this one for mp3s) and the other named "ffmpeg2" (this one pointing to the compiled version and used for videos). I changed the Subsonic config for the vids to reference "ffmpeg2". So, right now it's "working", but not the ideal way.
I've got Ubuntu 10.04 running, so I think I'm stuck with those repositories. Anyone know how to install lib264 using the same ffmpeg installation?