Cannot transcode on Raspberry Pi 2 Model B

Need help? Post your questions here.

Moderator: moderators

Cannot transcode on Raspberry Pi 2 Model B

Postby id01 » Thu Dec 03, 2015 9:09 am

Hello,

Problem Description: I cannot get transcoding from FLAC to mp3 to work. Mp3 files play normally.
Troubleshooting Steps:

- To begin with, the web interface works, and folders added to "media folders" are visible on the left column of the web interface.
- For the setup I have followed this guide http://mj2p.co.uk/install-subsonic-medi ... pberry-pi/
- I have tried a simple installation of ffmpeg and lame (the same following commands for lame) with

Code: Select all
sudo apt-get install ffmpeg
sudo rm /var/subsonic/transcode/ffmpeg
sudo cp /usr/bin/ffmpeg /var/subsonic/transcode


- The transcoding settings are taken from this page http://www.subsonic.org/pages/transcoding.jsp
- When I try to play a FLAC file, nothing is played. However, I don't see any errors in the log. The log looks like this:

Code: Select all
INFO   PlayQueueInputStream   admin listening to "song.flac"
INFO   TranscodeInputStream   Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-i] [/home/pi/song.flac] [-map] [0:0] [-b:a] [192k] [-v] [0] [-f] [mp3] [-]


- After that I tried to compile ffmpeg manually following this link http://www.jeffreythompson.org/blog/201 ... pberry-pi/
- The problem persists

Playback Application and version: Standard Subsonic Web Interface
Subsonic version: 5.3 (build 4568) – October 24, 2015
Server version: jetty-6.1.x, java 1.7.0_85, Linux (34.5 MB / 80.2 MB)
Hardware Platform: Raspberry Pi 2 Model B, Hardware: BCM2709, Revision: a01041
Output from ffmpeg -i:

Code: Select all
ffmpeg version N-76976-gd208acf Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.6 (Debian 4.6.3-14+rpi1)
  configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
  libavutil      55.  9.100 / 55.  9.100
  libavcodec     57. 16.101 / 57. 16.101
  libavformat    57. 19.100 / 57. 19.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 18.100 /  6. 18.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Missing argument for option 'i'.
Error splitting the argument list: Invalid argument


Any help is appreciated.
id01
 
Posts: 2
Joined: Thu Aug 04, 2011 12:22 pm

Re: Cannot transcode on Raspberry Pi 2 Model B

Postby DaveWut » Fri Dec 04, 2015 1:21 pm

I had the same problem while I tried to install the war file under an Apache Tomcat server. I end up figuring out it was simply because Subsonic assumes the executable is in /var/subsonic/transcode/ffmpeg (as shown in your log). I think it won't use the one you've globally installed on your system.

Make a symlink of the file in /var/subsonic/transcode or just download and put it back there. It might help you solve your problem! ;)
User avatar
DaveWut
 
Posts: 57
Joined: Fri Nov 11, 2011 12:29 am

Re: Cannot transcode on Raspberry Pi 2 Model B

Postby id01 » Fri Dec 04, 2015 3:42 pm

Thanks, but I already tried that :/

Code: Select all
➜  ~  sudo ls -la /var/subsonic/transcode                     
total 8
drwxr-xr-x 2 subsonic root 4096 Dec  4 15:38 .
drwxr-x--- 8 subsonic root 4096 Dec  4 15:34 ..
lrwxrwxrwx 1 root     root   15 Dec  4 15:38 ffmpeg -> /usr/bin/ffmpeg
lrwxrwxrwx 1 subsonic root   13 Nov 29 22:28 lame -> /usr/bin/lame
id01
 
Posts: 2
Joined: Thu Aug 04, 2011 12:22 pm

Re: Cannot transcode on Raspberry Pi 2 Model B

Postby rothchild » Mon Dec 07, 2015 10:10 pm

If you're using Jessie, there's a problem with the version of FFmpeg being not compiled properly for Arm6.

I recommend using DietPi (http://dietpi.net) as they have compiled a FFmpeg for Arm6, so if you install Subsonic (using the dietpi software tool) you will get a working solution.
rothchild
 
Posts: 12
Joined: Sun Sep 06, 2015 2:38 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 20 guests