-=SOLVED=- Cant get transcoding to work for FLAC to MP3

Need help? Post your questions here.

Moderator: moderators

-=SOLVED=- Cant get transcoding to work for FLAC to MP3

Postby mr2web » Fri May 06, 2011 10:41 am

Hello and thanks for a superb system!
I do have a problem that I need help solving.
I dont seem to get transcoding to work at all on my host through the Subsonic system.

This is found in the log:
[5/6/11 12:31:46 PM CEST] INFO PlaylistInputStream XXXXXX listening to "-=MUSIC=-/06. Filter - Take A Picture.flac"
[5/6/11 12:31:46 PM CEST] DEBUG TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-i] [/home/fileserver/-=MUSIC=-/06. Filter - Take A Picture.flac] [-f] [wav] [-]
[5/6/11 12:31:46 PM CEST] DEBUG TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/lame] [-b] [128] [--tt] [Take A Picture] [--ta] [Filter] [--tl] [Title Of Record] [-S] [--resample] [44.1] [-] [-]
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) FFmpeg version SVN-r15261, Copyright (c) 2000-2008 Fabrice Bellard, et al.
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib --mandir=/usr/share/man --arch=i386 --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables --enable-bzlib --enable-libdc1394 --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libschroedinger --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avfilter-lavf --enable-postproc --enable-swscale --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib --cpu=i386
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavutil 49.11. 0 / 49.11. 0
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavcodec 51.71. 0 / 51.71. 0
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavformat 52.22. 1 / 52.22. 1
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavdevice 52. 1. 0 / 52. 1. 0
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavfilter 0. 1. 0 / 0. 1. 0
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libswscale 0. 6. 1 / 0. 6. 1
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libpostproc 51. 2. 0 / 51. 2. 0
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) built on Oct 27 2009 13:55:46, gcc: 4.3.2 20081105 (Red Hat 4.3.2-7)
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) [mp3 @ 0x9b69b00]ID3v2.3 tag skipped, cannot handle unsynchronization
[5/6/11 12:31:57 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) [mp3 @ 0x9b69b00]Could not find codec parameters (Audio: mp1, s16, 384 kb/s)
[5/6/11 12:31:57 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) /home/fileserver/-=MUSIC=-/06. Filter - Take A Picture.flac: could not find codec parameters




The transcoding settings I'm using here are as follows:
Step 1: ffmpeg -i %s -f wav -
Step 2: lame -b %b --tt %t --ta %a --tl %l -S --resample 44.1 - -

I have search info regarding this issue in these forums without any luck.
Please can someone help out by any chance?

The following third part SW are installed and symlinks are correct as far as I can see at least in /var/subsonic/transcode/.
- faad
- ffmpeg
- flac
- lame
- oggdec
- oggenc


Please let me know if there are any other info that you need.

With kind regards
Toby
Last edited by mr2web on Sun May 08, 2011 12:03 am, edited 1 time in total.
mr2web
 
Posts: 5
Joined: Wed May 04, 2011 1:20 pm

Re: Cant get transcoding to work for FLAC to MP3

Postby TuxNuX » Sat May 07, 2011 10:54 am

mr2web wrote:Hello and thanks for a superb system!
I do have a problem that I need help solving.
I dont seem to get transcoding to work at all on my host through the Subsonic system.

This is found in the log:
[5/6/11 12:31:46 PM CEST] INFO PlaylistInputStream XXXXXX listening to "-=MUSIC=-/06. Filter - Take A Picture.flac"
[5/6/11 12:31:46 PM CEST] DEBUG TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-i] [/home/fileserver/-=MUSIC=-/06. Filter - Take A Picture.flac] [-f] [wav] [-]
[5/6/11 12:31:46 PM CEST] DEBUG TranscodeInputStream Starting transcoder: [/var/subsonic/transcode/lame] [-b] [128] [--tt] [Take A Picture] [--ta] [Filter] [--tl] [Title Of Record] [-S] [--resample] [44.1] [-] [-]
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) FFmpeg version SVN-r15261, Copyright (c) 2000-2008 Fabrice Bellard, et al.
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib --mandir=/usr/share/man --arch=i386 --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables --enable-bzlib --enable-libdc1394 --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libschroedinger --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avfilter-lavf --enable-postproc --enable-swscale --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib --cpu=i386
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavutil 49.11. 0 / 49.11. 0
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavcodec 51.71. 0 / 51.71. 0
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavformat 52.22. 1 / 52.22. 1
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavdevice 52. 1. 0 / 52. 1. 0
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libavfilter 0. 1. 0 / 0. 1. 0
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libswscale 0. 6. 1 / 0. 6. 1
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) libpostproc 51. 2. 0 / 51. 2. 0
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) built on Oct 27 2009 13:55:46, gcc: 4.3.2 20081105 (Red Hat 4.3.2-7)
[5/6/11 12:31:46 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) [mp3 @ 0x9b69b00]ID3v2.3 tag skipped, cannot handle unsynchronization
[5/6/11 12:31:57 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) [mp3 @ 0x9b69b00]Could not find codec parameters (Audio: mp1, s16, 384 kb/s)
[5/6/11 12:31:57 PM CEST] DEBUG InputStreamReaderThread (/var/subsonic/transcode/ffmpeg) /home/fileserver/-=MUSIC=-/06. Filter - Take A Picture.flac: could not find codec parameters




The transcoding settings I'm using here are as follows:
Step 1: ffmpeg -i %s -f wav -
Step 2: lame -b %b --tt %t --ta %a --tl %l -S --resample 44.1 - -

I have search info regarding this issue in these forums without any luck.
Please can someone help out by any chance?

The following third part SW are installed and symlinks are correct as far as I can see at least in /var/subsonic/transcode/.
- faad
- ffmpeg
- flac
- lame
- oggdec
- oggenc


Please let me know if there are any other info that you need.

With kind regards
Toby





adapt " flac -dc %s " for replace "ffmpeg -i %s -f wav -"
TuxNuX
 
Posts: 2
Joined: Sat May 07, 2011 10:30 am

Postby GJ51 » Sat May 07, 2011 7:39 pm

ffmpeg -i %s -v 0 -f wav -
lame -b %b --tt %t --ta %a --tl %l -S --resample 44.1 - -
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby mr2web » Sat May 07, 2011 10:46 pm

GJ51,
Thanks for your reply, though I had those settings after installing the subsonic server, and they dint work either... The current settings that I use are the recommended ones by the Subsonic website...


/Toby
mr2web
 
Posts: 5
Joined: Wed May 04, 2011 1:20 pm

Postby mr2web » Sun May 08, 2011 12:02 am

Thanks allot TuxNuX!!!
That solved my problem!!!! Sweet! :D
/Toby
mr2web
 
Posts: 5
Joined: Wed May 04, 2011 1:20 pm

Postby momerath » Sat Jun 11, 2011 2:51 am

I too needed to replace ffmpeg with flac, though ffmpeg was outputting working .wavs. Odd.

Version 4.4 (build 2169) – February 6, 2011
Server jetty-6.1.x, java 1.6.0_24, Linux (88.8 MB / 106.6 MB)

LAME 64bits version 3.98.4
ffmpeg version 0.7-rc1
momerath
 
Posts: 3
Joined: Sat Jun 11, 2011 2:36 am


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests