LAME not installed = No transcoding at all?

Need help? Post your questions here.

Moderator: moderators

LAME not installed = No transcoding at all?

Postby stead » Wed May 27, 2009 11:35 pm

Hi,

I'm attempting video transcoding - I'm stuck on a first hurdle here. I wonder if Lame isn't installed does any transcoding get done? I'm running on FreeNAS and wasn't able to get lame istalled but ffmpeg works great.

It seems even though I have :

1) entered the transcoding method and to, from etc on the transcoding page.
2) enabled it on that page
3) enabled it on the player page

I don't see any logs showing that transcoding has started (or failed to start... )

Code: Select all
[2009-05-28 01:27:12,192] INFO PlaylistInputStream - Opening new song /mnt/disk3/Simpsons/the.simpsons.2005.pdtv-lol.avi
[2009-05-28 01:29:14,402] INFO StreamController - Stopping stream admin@192.168.1.65:3858 (VLC media player - version 0.9.9 Grishenko - (c) 1996-2009 the VideoLAN team)


It seems that the transcoding never kicks in, and on VLC it shows as being XviD instead of the chosen flv format.

I've tested the command that I have entered in the transcoding section and this makes a perfect output file... if only Subsonic would run that transcode...

Please help?
Last edited by stead on Mon Jun 01, 2009 5:30 pm, edited 1 time in total.
stead
 
Posts: 5
Joined: Sun Feb 15, 2009 2:08 pm

Postby stead » Mon Jun 01, 2009 5:26 pm

Any chance someone could respond? :? :)
stead
 
Posts: 5
Joined: Sun Feb 15, 2009 2:08 pm

Postby jonathanroz » Mon Jun 01, 2009 6:49 pm

My first thought would be to check to make sure the transcoding is enabled on the player in addition to on the transcoding tab.

When you choose to enable a specific transcoding option on the transcoding tab you then have to also activite it on any existing players. Go to your player on the player tab and at the bottom there is an Active Transcoding section.

After choosing the Active Transcoding you might have to log out and back in, not sure.
jonathanroz
 
Posts: 172
Joined: Thu Dec 18, 2008 8:54 pm
Location: Frisco, TX USA

Postby stead » Mon Jun 01, 2009 11:33 pm

Thanks for the suggestion, though I had already done that before I posted :)




Right! After some fiddling about (and it being right in front of my eyes...) I fixed the issue.

I made a symlink from the ffmpeg install to the */subsonic/transcoders directory!

And ran it as..

Code: Select all
ffmpeg ...


instead of

Code: Select all
/usr/local/bin/ffmpeg ...


Got mpeg streaming nicely, nice bitrate too, but failing at FLV... oh well one is good enough for now :)

Still not got LAME installed - not easily installed on this limited version of FreeBSD.
stead
 
Posts: 5
Joined: Sun Feb 15, 2009 2:08 pm

Postby tortfeaser » Fri Jul 31, 2009 2:50 am

I'm the opposide to stead I think.

I've got LAME working fine. Downloaded from http://ftp.urc.ac.ru/pub/OS/FreeBSD/pac ... t/lame.tbz, running a FreeNAS daily that is built on FreeBSD 7 though, that might be a problem with the LAME version I linked if you're running a FreeBSD 6 build.

But I can't get ffmpeg to work. Any tips there? I've added the pkg, was registered fine. I created a link from the /subsonic/transcode directory to /usr/local/bin/ffmpeg. I've created a wma2mp3 script below, and permissions on it are 777. I've got 1 step in Subsonic pointing to wma2mp3, and the transcode is enabled for the user.

wma2mp3.sh:

#!/bin/bash
song=$1
bitrate=$2

ffmpeg -i "$song" -f mp3 -ab $bitrate - 2>/dev/null

I can get ffmpeg to convert .wmas from the command line via: ffmpeg -i test.wma -ab 128kb test.mp3

I can't get any output when Subsonic is doing its transcode thing.
tortfeaser
 
Posts: 6
Joined: Fri Jul 31, 2009 2:37 am

Postby tortfeaser » Fri Jul 31, 2009 3:07 am

The subsonic.log says the following when trying to play (no info really)
Code: Select all
[2009-07-31 02:45:13,578] INFO StreamController - Starting stream Marc@xxx.xxx.xxx.xx:13788 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729))
[2009-07-31 02:45:13,579] INFO PlaylistInputStream - Opening new song Lofty's Roach Souffle/Harry Connick, Jr Lofty's Roach Souffle 01 One Last Pitch.wma
[2009-07-31 02:45:13,580] INFO MusicFileInfoDao - Created music file info for /mnt/NASraid/Media/Music/Harry Connick, Jr/Lofty's Roach Souffle
[2009-07-31 02:45:13,581] DEBUG TranscodeInputStream - Starting transcoder: [/var/subsonic/transcode/wma2mp3] [/mnt/NASraid/Media/Music/Harry Connick, Jr/Lofty's Roach Souffle/Harry Connick, Jr Lofty's Roach Souffle 01 One Last Pitch.wma]
[2009-07-31 02:45:15,623] INFO StreamController - Stopping stream Marc@xxx.xxx.xxx.xx:13788 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729))


I don't know if this is relevant - when it (successfully) plays .mp3 files, I get the following in the .log:
Code: Select all
[2009-07-31 02:39:41,636] INFO PlaylistInputStream - Opening new song Catching Tales/Jamie Cullum Catching Tales 03 Photograph.mp3
[2009-07-31 02:39:41,642] DEBUG TranscodeInputStream - Starting transcoder: [/var/subsonic/transcode/lame] [-S] [-h] [-b] [128] [/mnt/NASraid/Media/Music/Jamie Cullum/Catching Tales/Jamie Cullum Catching Tales 03 Photograph.mp3] [-]
[2009-07-31 02:41:05,748] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/lame) LAME: Can't get "TERM" environment string.
[2009-07-31 02:41:07,750] INFO StreamController - Stopping stream Marc@xxx.xxx.xxx.xx:13768 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729))
tortfeaser
 
Posts: 6
Joined: Fri Jul 31, 2009 2:37 am


Return to Help

Who is online

Users browsing this forum: No registered users and 27 guests