Page 1 of 1

DRM songs not playing

PostPosted: Fri Oct 26, 2012 11:36 pm
by SmplyUnprdctble
I've noticed that a few of my mp3s weren't playing when I try to play them. They cause the entire playlist to stop. Happens both on the web and Android players.

However, if I run them through FFMPEG and take that output, it plays.

The only thing I can find related to the songs that refuse to play are I bought them on amazon.com (ok, one album I bought through another site, but still).

Information I know:
Server:
* Ubuntu 10.04.4 LTS
* Subsonic 4.7 (build 3105) – September 11, 2012
Client:
* Windows -- Chrome, IE7 and IE8
* Android -- latest app
mp3 transcoding:
* ffmpeg -i %s -ab %bk -v 0 -f mp3 -


Log:
Code: Select all
[10/26/12 7:21:37 PM EDT]   INFO   PlayQueueInputStream   mole listening to "Snake Charmer (From the Motion Picture _Mega Python Vs. Gatoroid_) - Single/01 - Snake Charmer (From the Motion Picture _Mega Python Vs..mp3"
[10/26/12 7:21:37 PM EDT]   DEBUG   TranscodeInputStream   Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-i] [/home/media/mp3_Historical/Amazon MP3/Debbie Gibson/Snake Charmer (From the Motion Picture _Mega Python Vs. Gatoroid_) - Single/01 - Snake Charmer (From the Motion Picture _Mega Python Vs..mp3] [-ab] [192k] [-v] [0] [-f] [mp3] [-]
[10/26/12 7:27:18 PM EDT]   INFO   PlayQueueInputStream   mole listening to "Serpentine (Single)/01 - Serpentine.mp3"
[10/26/12 7:27:18 PM EDT]   DEBUG   TranscodeInputStream   Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-i] [/home/media/mp3_Historical/Amazon MP3/Tiffany/Serpentine (Single)/01 - Serpentine.mp3] [-ab] [192k] [-v] [0] [-f] [mp3] [-]
[10/26/12 7:27:50 PM EDT]   INFO   PlayQueueInputStream   mole listening to "Toon Tunes 50 Favorite Classic Cartoon Songs/28 - Linus And Lucy {from Peanuts}.mp3"
[10/26/12 7:30:55 PM EDT]   INFO   PlayQueueInputStream   mole listening to "Toon Tunes 50 Favorite Classic Cartoon Songs/43 - Conjunction Junction.mp3"


The first two are the problem ones. The second two played without a hitch. As said before, the only thing I can think of is the first two were purchased online and may have DRM and the latter two I ripped from a CD myself.

What's weird is I KNOW I've played these two songs before. I think it was a version of Subsonic that was last year. I know because I played the songs for a friend of mine who is a huge Debbie Gibson and Tiffany fan. (Don't judge! The movie was wicked awesome!)

Anybody have any ideas?

Re: DRM songs not playing

PostPosted: Sat Oct 27, 2012 3:40 am
by gurutech
I would try to see if you can convert the files to another MP3 file but without DRM and try to play those.

Re: DRM songs not playing

PostPosted: Sat Oct 27, 2012 5:01 am
by hakko
Uhm, from a musical perspective, converting MP3 to MP3 is a really bad idea. But so is DRM, too. If possible at all, try replacing them with proper files.

Re: DRM songs not playing

PostPosted: Sat Oct 27, 2012 12:35 pm
by SmplyUnprdctble
Converting them (via FFMPEG) does work.

The "problem" with that is the whole DRM thing. Legally, I still have to keep the originals [just like we have to keep our original CDs we rip]. This may not be a huge problem with the amazon mp3s as I SHOULD be able to redownload them if necessary (but how many times?), but I have a couple albums that I can't redownload anymore. I'm not a fan of keeping duplicate digitals.

I did learn that whatever I was running back on May 18, 2012 was approximately the last time I was able to successfully play DRM things (Thank you, Subsonic, for telling me that when I pulled up The Muppets Green Album!). I was probably on current versions back then. And, since I had been super-busy with projects the past few months, music had been put at the back burner and I just recently updated everything.

Re: DRM songs not playing

PostPosted: Sat Oct 27, 2012 8:24 pm
by BKKKPewsey
The song you linked to plays np with both SS 4.6 & 4.7 :?

:mrgreen:

Re: DRM songs not playing

PostPosted: Tue Dec 04, 2012 7:24 pm
by SmplyUnprdctble
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?