RE: Windows Installer?

2011-03-18 Thread Christopher Woods (CustomMade)
 On 17 March 2011 07:10, Ranec get_ipla...@cemery.org.uk wrote:
  Does *anyone* on the list have experience in making the 
 Windows installer?
 
 *cough* *cough* (taps microphone) is this thing on?
 ..
 
 silence
 
 I guess that means no then :(

Argh, don't tap the mic! It ruins diaphragms, scrape your fingernail across
the top of the capsule instead. :

Aside from that, sorry - just adding to the noise, I've never compiled (just
consumed). Isn't David Woodhouse on this list? As a Windows user I've been
using his installers after all...


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Windows Installer?

2011-03-18 Thread Nick Ludlam
On 18 Mar 2011, at 11:42, Ranec wrote:
 On 17 March 2011 07:10, Ranec get_ipla...@cemery.org.uk wrote:
 Does *anyone* on the list have experience in making the Windows installer?
 
 *cough* *cough* (taps microphone) is this thing on?
 ..
 
 silence
 
 I guess that means no then :(

Do you have any dev experience? Could you have a go writing one yourself, 
maybe? I think NSIS is quite good. http://nsis.sourceforge.net/Main_Page

Nick


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Fast(er) transcoding from aac to mp3.

2011-03-18 Thread bat guano

Hi
I sometimes download BBC radio shows to listen on my mp3 player.
It looks like I'm going to have to start transcoding them from aac to mp3.

Using Ubuntu I did some tests to see just how long it takes to transcode these 
things.

I downloaded a 3-hour show (Steve Wright in the Afternoon*) and calculated the 
time taken
to convert it using ffmpeg.
This is the command:-
time ffmpeg -i filename.aac -acodec libmp3lame -ab 128k test1.mp3

The result:-
real    20m42.369s
user    17m40.318s
sys    0m56.812s

That's over 20 minutes!
During the test I wasn't running any other heavy programs. I kept checking the 
System Monitor, it was
always up there at 98%, 99%, 100%. There's nothing wrong with my ffmpeg, it's a 
new one from git.
Doing the best it can on my Celeron D 2.26GHz computer.

Then I repeated the test using GOGO-no-coda encoder, a turbocharged version of 
LAME.
It needs wav as input so I piped it through ffmpeg.

I converted the same show using this command:-
time ffmpeg -i filename.aac -f wav - | gogo -b 128 -q 0 stdin test2.mp3

The result:-
real    10m30.195s
user    8m12.411s
sys    0m31.382s

That's about half the time.

If any of you feel like trying GOGO-no-coda it's available in Ubuntu's repo.
Install it like this:- sudo apt-get install gogo
Or download a deb from somewhere.

For Windows users it's available from rarewares.org and other places.

I suppose, if the programmes are talk-shows then it will be OK to reduce the q 
setting for gogo
and also maybe reduce the bitrate to 96Kbps or 64Kbps. That would speed things 
up even more.

If any of you have experience using different mp3 encoders it would be good to 
know how they compare with gogo.

* I didn't listen to the show. For test purposes only. :-)
  
___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Windows Installer?

2011-03-18 Thread Ranec
On 18 March 2011 12:18, Nick Ludlam n...@recoil.org wrote:
 On 18 Mar 2011, at 11:42, Ranec wrote:
 On 17 March 2011 07:10, Ranec get_ipla...@cemery.org.uk wrote:
 Does *anyone* on the list have experience in making the Windows installer?

 *cough* *cough* (taps microphone) is this thing on?
 ..

 silence

 I guess that means no then :(

 Do you have any dev experience? Could you have a go writing one yourself, 
 maybe? I think NSIS is quite good. http://nsis.sourceforge.net/Main_Page

 Nick

I've been a professional software engineer since 1991 and writing code
since 1980. :-)

There's clearly makefiles  scripts files in the repo you cloned on
github that mentions nsis.
The file makensis expects a tarball with perl etc in it but I don't
know the exact contents.
It might just be a tarball distro of Strawberry perl.

Any clues on this would be great.

JOOI Who built the current Windows installer?
Are they on this list?

TIA

-R

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Windows Installer?

2011-03-18 Thread David Woodhouse
On Thu, 2011-03-17 at 07:10 +, Ranec wrote:
 Does *anyone* on the list have experience in making the Windows
 installer?

Not useful experience, no. There is apparently some way to run
Strawberry Perl as a 'compiler' to make it spit out just the files you
need, as dependencies for the get_iplayer script. 

I never got that working (and didn't really have the patience to run
Windows for long enough to look harder, since it didn't seem to run
under Wine for reasons I don't remember).

So for the installer I built, I just used exactly the same set of files
that were present in Phil's original Windows installer.

The makefiles in the get_iplayer repository are set up to work that way,
I believe.

If there's still anyone out there who actually cares about the Windows
operating system, it would be really useful if they were to try to make
it easier to build the installer.

-- 
dwmw2


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Fast(er) transcoding from aac to mp3.

2011-03-18 Thread Ian Stirling

On 03/18/2011 12:52 PM, bat guano wrote:

-acodec libmp3lame -ab 128k test1.mp3


Hmm.

For some reason ffmpeg is not pulling in mp3lame codec when I compile.
A test I did of
time (ffmpeg -i You_and_Yours_-_16_03_2011_b00zf33w_default.aac   -ab 
128k test.wav; lame test.wav test.mp3)


finished in 4:35 - this is on a core duo at 1.8GHz.
So, 12* or so real-time.
If doing 2 encodings at once, 24*.
With vbr (lame -v) - then it goes faster, 3:24 - about 18*.

Seems a fair bit faster. Recent (this week) versions of lame and
ffmpeg, gcc 4.4.4.

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Fast(er) transcoding from aac to mp3.

2011-03-18 Thread James Cook
On Fri, 18 Mar 2011 12:52:02 +, you wrote:


Hi
I sometimes download BBC radio shows to listen on my mp3 player.
It looks like I'm going to have to start transcoding them from aac to mp3.

I just joined this list yesterday - so I don't know the context of
this message - Has the BBC dropped MP3 from radio broadcasts?
I noticed this in the last few days. Is it a permanent switch?

time ffmpeg -i filename.aac -acodec libmp3lame -ab 128kinfu test1.mp3
Does anyone have this working on Windows? I talked to Phil about 18
months ago about this. Only worked on *nix. So I use faad instead -
but it is very cpu intensive.

Does anyone know of a free AAC(ADTS) to AAC converter - to play on an
ipod (yes I know). Better quality than AAC to MP3 conversion?

JC

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Windows Installer?

2011-03-18 Thread Nigel Taylor
On 03/18/11 12:59, Ranec wrote:
 On 18 March 2011 12:18, Nick Ludlam n...@recoil.org wrote:
 On 18 Mar 2011, at 11:42, Ranec wrote:
 On 17 March 2011 07:10, Ranec get_ipla...@cemery.org.uk wrote:
 Does *anyone* on the list have experience in making the Windows installer?

 *cough* *cough* (taps microphone) is this thing on?
 ..

 silence

 I guess that means no then :(

 Do you have any dev experience? Could you have a go writing one yourself, 
 maybe? I think NSIS is quite good. http://nsis.sourceforge.net/Main_Page

 Nick
 
 I've been a professional software engineer since 1991 and writing code
 since 1980. :-)
 
 There's clearly makefiles  scripts files in the repo you cloned on
 github that mentions nsis.
 The file makensis expects a tarball with perl etc in it but I don't
 know the exact contents.
 It might just be a tarball distro of Strawberry perl.
 
 Any clues on this would be great.
 
 JOOI Who built the current Windows installer?
 Are they on this list?
 
 TIA
 
 -R
 
 ___
 get_iplayer mailing list
 get_iplayer@lists.infradead.org
 http://lists.infradead.org/mailman/listinfo/get_iplayer
 
Hi,

Strawberry perl installs in c:\strawberry that's not a normal distribution used
with get_iplayer. The required parts have been picked out to create the tar 
ball.

you just create a tarball using tar with a list of files / directories to
include. that's
perl.exe perl510.dll perl-licence lib/attributes.pm lib/auto lib/AutoLoader.pm
lib/B lib/B.pm lib/base.pm lib/bytes.pm lib/bytes_heavy.pl lib/Carp lib/Carp.pm
lib/CGI lib/CGI.pm lib/Class lib/Compress lib/Config.pm lib/Config_heavy.pl
lib/constant.pm lib/CPAN lib/Cwd.pm lib/Data lib/Digest lib/DynaLoader.pm
lib/Encode lib/Encode.pm lib/encoding.pm lib/Env.pm lib/Errno.pm lib/Exporter
lib/Exporter.pm lib/Fcntl.pm lib/File lib/FileHandle.pm lib/Filter lib/Getopt
lib/HTML lib/HTTP lib/integer.pm lib/IO lib/IO.pm lib/IPC lib/List lib/LWP
lib/LWP.pm lib/Math lib/MIME lib/mro.pm lib/Net lib/overload.pm lib/PerlIO
lib/PerlIO.pm lib/Pod lib/POSIX.pm lib/re.pm lib/Scalar lib/SelectSaver.pm
lib/Socket.pm lib/sort.pm lib/Storable.pm lib/strict.pm lib/Symbol.pm lib/Term
lib/Test lib/Text lib/threads lib/threads.pm lib/Tie lib/Time lib/unicore
lib/UNIVERSAL.pm lib/URI lib/URI.pm lib/utf8.pm lib/utf8_heavy.pl lib/vars.pm
lib/warnings lib/warnings.pm lib/Win32.pm lib/Win32API lib/XSLoader.pm

That's for v5.10.0 of strawberry perl, for either v5.10.1.4 or v5.12.1.0 the
list will be different not by much, v5.12.1.0 - 64bit will be required also for
those with Windows 7 64bit (are there 64bit versions of the other software).

You may want to add the missing XML-Simple, and the dependencies, they are given
here later version of strawberry perl include this.

http://search.cpan.org/~grantm/XML-Simple-2.18/


Regards

Nigel Taylor

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Fast(er) transcoding from aac to mp3.

2011-03-18 Thread dinkypumpkin
Not really comparing like-for-like, but with 2010 Macbook Pro (2.66 Ghz Core 
i7, 8Gb) and ffmpeg HEAD, transcoding a 3-hour program gives these numbers:

real5m7.197s
user4m56.078s
sys 0m6.127s

Just for kicks, in a 32-bit 1-CPU Ubuntu 10.10 VM (via VMWare Fusion) on the 
same machine I get this for the same file:

real5m48.907s
user5m30.741s
sys 0m11.337s

ffmpeg saturated one of the CPU cores in both cases, so the difference is 
more-or-less from the VM overhead.  That's OK for my purposes, but it's not 
hard to see how it could be pokey on older hardware.

On 18 Mar 2011, at 12:52, bat guano wrote:

 I downloaded a 3-hour show (Steve Wright in the Afternoon*) and calculated 
 the time taken
 to convert it using ffmpeg.
 This is the command:-
 time ffmpeg -i filename.aac -acodec libmp3lame -ab 128k test1.mp3
 
 The result:-
 real20m42.369s
 user17m40.318s
 sys0m56.812s


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Fast(er) transcoding from aac to mp3.

2011-03-18 Thread Ian Stirling

On 03/18/2011 03:50 PM, bat guano wrote:








A test I did of
time (ffmpeg -i You_and_Yours_-_16_03_2011_b00zf33w_default.aac -ab
128k test.wav; lame test.wav test.mp3)

finished in 4:35 - this is on a core duo at 1.8GHz.
So, 12* or so real-time.


@ Ian
Surely you're performing two processes there?
First converting aac to wav...
then converting wav to mp3.

Would it not be better to use a pipe?

Indeed it would, I couldn't be bothered working out how to get ffmpeg to 
write, and lame to read from a pipe, as I already knew the syntax to get 
it to do files.

The time will change slightly, as the decoding and encoding canbe done
on different cores, but not much, as the decoding is so enormously faster.

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Audo test mp4 file

2011-03-18 Thread richard
bat guano wrote:

 


 This is a file in aac format:-
 http://www.mediafire.com/?hr5lecihn3e1vij

 This is the file in m4a format using Nick's experimental update:-
 http://www.mediafire.com/?zdjl0drgowzncf2

Neither of those media files work on my hi-fi cd player (Marantz CD6003
- released 2009) due to header errors. The cd player supports playback
of mp3, wma, wav, and aac files( aac files with a m4a extension) and has
a USB port for connection to USB memory stick or iPod. mp3 files work
fine. 


I download speech radio using get_iplayer, and playback via USB memory
stick. Don't have an iPod. 





___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Fast(er) transcoding from aac to mp3.

2011-03-18 Thread Shevek
On 18 March 2011 14:29, James Cook james.c...@bluewin.ch wrote:

 Does anyone know of a free AAC(ADTS) to AAC converter - to play on an
 ipod (yes I know). Better quality than AAC to MP3 conversion?


No need to convert, just remux using ffmpeg and the -absf aac_adtstoasc option:

ffmpeg -i input.aac -vn -acodec copy -absf aac_adtstoasc output.mp4

The latest bundled ffmpeg in mplayer-win32 handles this:

http://sourceforge.net/projects/mplayer-win32/files/FFmpeg/git-c9e16a9/

HTH

Shevek

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Fast(er) transcoding from aac to mp3.

2011-03-18 Thread James Cook
On Fri, 18 Mar 2011 15:50:38 +, you wrote:
 
Like this:-
time ffmpeg -i filename.aac -f wav - | lame -b 128 - test3.mp3

To my surprise the above does work on windows/cygwin
I have been using faad -w aacfile | lame ... up to now - for
historical reasons - (SBR not implemented error) see
http://linuxcentre.net/bbc-iplayer-aac-radio-streams-now-available-using-get_iplayer
.
Anyway ...
I just did a rough experiment and faad seems to be about 2 times
slower than ffmpeg.

BTW I use lame --abr 56 for spoken word programs - the files come out
half as big as with -b 128.

JC

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Fast(er) transcoding from aac to mp3.

2011-03-18 Thread James Cook
On Fri, 18 Mar 2011 18:54:03 +, you wrote:

No need to convert, just remux using ffmpeg and the -absf aac_adtstoasc option:

ffmpeg -i input.aac -vn -acodec copy -absf aac_adtstoasc output.mp4

The latest bundled ffmpeg in mplayer-win32 handles this:

http://sourceforge.net/projects/mplayer-win32/files/FFmpeg/git-c9e16a9/

HTH

Shevek

Thanks for your message, I tried it and it works!

Now I just have to figure how to tag aac files

JC

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Fast(er) transcoding from aac to mp3.

2011-03-18 Thread Simon Crisp
Looking back at my script I wrote back at Christmas when the iphone 
option stopped working and my programs started coming down in aac I seem 
to have a faster solution which works for me;


time( ffmpeg -i You_and_Yours_-_16_03_2011_b00zf33w_default.aac 
-map_meta_data 
You_and_Yours_-_16_03_2011_b00zf33w_default.mp3:You_and_Yours_-_16_03_2011_b00zf33w_default.aac 
You_and_Yours_-_16_03_2011_b00zf33w_default.mp3)


real2m4.772s
user2m2.440s
sys 0m1.580s

WRT to piping; I would guess that piping output of aac - wav to wav - 
mp3 is marginally faster than writing to a file and then reading from a 
file but surely it's faster to do everything in one go?


Sy

On 18/03/2011 16:22, Ian Stirling wrote:

On 03/18/2011 03:50 PM, bat guano wrote:








A test I did of
time (ffmpeg -i You_and_Yours_-_16_03_2011_b00zf33w_default.aac -ab
128k test.wav; lame test.wav test.mp3)

finished in 4:35 - this is on a core duo at 1.8GHz.
So, 12* or so real-time.


@ Ian
Surely you're performing two processes there?
First converting aac to wav...
then converting wav to mp3.

Would it not be better to use a pipe?

Indeed it would, I couldn't be bothered working out how to get ffmpeg 
to write, and lame to read from a pipe, as I already knew the syntax 
to get it to do files.

The time will change slightly, as the decoding and encoding canbe done
on different cores, but not much, as the decoding is so enormously 
faster.


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer



___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer