Author Topic: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?  (Read 10414 times)

Offline RaduP

  • Hero Member
  • *****
  • Posts: 841
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #15 on: 27 / June / 2008, 22:48:25 »
Sure, but is it the main CPU that does that, or is it done by some specialized chips that only do those things?

Offline LjL

  • Sr. Member
  • ****
  • Posts: 266
  • A720IS
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #16 on: 06 / July / 2008, 23:24:43 »
The heavy duty processing is done by the DIG!C chip, but the main processor is an ARM that most likely does 200MHz or so, enough for MP3...

Offline whim

  • Guru Member
  • ******
  • Posts: 1957
  • A620/A630/A590-101b/i70-101b/i870-101a/i300
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #17 on: 07 / July / 2008, 12:50:52 »
@LjL

all IDA dumps I've looked at so far (40+) contain the following strings:

Quote
LClock=72MHz
LClock=36MHz
LClock=18MHz
HClock=72MHz
HClock=36MHz
HClock=18MHz
MClock=72MHz
MClock=36MHz
MClock=18MHz



so I think 200 MHz is on the optimistic side ...

wim

Offline LjL

  • Sr. Member
  • ****
  • Posts: 266
  • A720IS
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #18 on: 07 / July / 2008, 17:50:02 »
Ah, well... I'm familiar with ARM processors from other devices, which all tend to be clocked at around 200MHz.

Anyway, I also have a Psion 5mx with a 36MHz ARM processor; it can play MP3 at 8Khz, 8 bit (that's also a soundcard limitation), probably no more than 64Kbps or so, but I'm not really sure. I don't even remember if the thing used to be open-source... it's a bit lost in cyberspace now. The names to search for are "ENoteM" and "EPlayM", anyway, developed by Alexander Zavorine (who doesn't seem to have a website anymore).

Offline cybercom

  • Sr. Member
  • ****
  • Posts: 268
    • William Meredith's Photography Site - enjoy!!
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #19 on: 07 / July / 2008, 21:31:40 »
FWIW,

My TX-1's record and playback *.wav files at 44-, 22-, and 11-kHz up to the full capacity of the SDHC card. An 8GB card indicates 120 minutes recording available at 44.1 kHz, 16-bit, stereo - which is CD quality audio.

HTH,
« Last Edit: 07 / July / 2008, 21:33:20 by cybercom »
~~~~~~~~~~~~~~~~~~~~~

<")%%%><<

Offline LjL

  • Sr. Member
  • ****
  • Posts: 266
  • A720IS
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #20 on: 07 / July / 2008, 21:48:04 »
Right, but encoding and decoding MP3 is very much more processor intensive...

Offline cybercom

  • Sr. Member
  • ****
  • Posts: 268
    • William Meredith's Photography Site - enjoy!!
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #21 on: 09 / July / 2008, 09:52:16 »
« Last Edit: 09 / July / 2008, 10:27:00 by cybercom »
~~~~~~~~~~~~~~~~~~~~~

<")%%%><<

Offline RaduP

  • Hero Member
  • *****
  • Posts: 841
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #22 on: 09 / July / 2008, 10:42:50 »
I am not sure why exactly are you asking this question. Obviously, the mp3 at any bit rate is much more CPU intensive than uncompressed sound, because the uncompressed sound doesn't use the CPU.

Offline LjL

  • Sr. Member
  • ****
  • Posts: 266
  • A720IS
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #23 on: 09 / July / 2008, 16:28:33 »
Yes, I'm really not sure either. All the stuff you're putting in bold talks about bitrate, i.e. memory taken on a storage device or bandwidth needed for transfering over a network.

Neither is what anyone was talking about. I think we know pretty well how much MP3 encoded audio fits in a SD card, as well as how much (less, obviously) fits as 44KHz, 16bit encoded.

Decoding PCM data involves reading a word and feeding it to the D/A.

Decoding MP3 involves taking Fourier transforms and things like that.

If you need a proof that the latter is more computationally intensive, well, I'm not sure I know of a place that can has it - I generally don't Google for completely obvious things.

CHDK Forum

Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #23 on: 09 / July / 2008, 16:28:33 »

Offline frank

  • Rookie
  • *
  • Posts: 21
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #24 on: 10 / July / 2008, 00:17:54 »
I've read somewhere that it's 72Mhz
another point: if that is possible, could it be possible to hear the music with in-ear headphones via the video ouput? ;the plug would fit in it..
Camera: A570IS      Firmware: 1.01a

Offline albuemil

  • Newbie
  • *
  • Posts: 4
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #25 on: 10 / July / 2008, 13:01:26 »
Well, i'm not so sure it would be such a good ideea to have an MP3 player on the camera, after all the baterries diy up quite fast if you make a lot of shots and i bet listening to music would eat up baterries just as fast (if not even faster since the decoding would need to be done constantly).
Even having games on the camera seems a little out of the scope of the device.
I'm not saying that it wouldn't be nice to have a camera that does everyhting (maybe even coffee :D) but we have to think about the practicality of those stuff and especially how much would all those "features" influence (in a negative way) the original use of the device (in this case taking pictures).

Offline LjL

  • Sr. Member
  • ****
  • Posts: 266
  • A720IS
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #26 on: 10 / July / 2008, 16:00:56 »
Actually, my own opinion is more like "who cares". Nobody is certainly forcing anyone to use their camera as an MP3 player... but for those who want to, more power to them. I don't think I'm in the position to make their penny-counting for them.

Then of course, something like this needs developers, and it all depends on whether or not they are interested.

Offline frank

  • Rookie
  • *
  • Posts: 21
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #27 on: 11 / August / 2008, 23:57:37 »
For beginning, maybe just convert songs into the wav-format of the camera.
Can be difficult because the camera taken sounds are in a special wav-format.
Don't know if that format is different on different Canon cameras (Videos can only be shown by the camera model they are taken with)
Camera: A570IS      Firmware: 1.01a

Offline kuku

  • Rookie
  • *
  • Posts: 14
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #28 on: 15 / August / 2008, 14:14:33 »
maybe someone will try to port rockbox to digic cameras - it would be simplier to port something than write from scratch

rockbox is running on hardware with as low as 2MB of ram on hardwaer with arm cpu and has a lot of features - look at
http://www.rockbox.org/twiki/bin/view/Main/WhyRockbox

The guys at rockbox are working even on a possibility to run rockbox as an app on hardware that has an api (windows mobile, symbian) so we could try to port it to the chdk elf edition
http://www.rockbox.org/twiki/bin/view/Main/SummerOfCode2008#Rockbox_as_an_Application

(sorry my poor english)

Offline harvald

  • Rookie
  • *
  • Posts: 14
    • harvald's gallery
Re: Wave/Mp3 Recorder and Player (DIGICIII-Digic II)?
« Reply #29 on: 19 / August / 2008, 01:56:53 »
Mp3 player in camera have two main advantages. First AA bateries. You can buy them anywhere and can have many with you. Mp3 in cellphone don't give that and no one wants to be without phone. Second is memory card. In this days they are huge. Not many mp3 players have memory cards, so they have hard limit for capacity. Additionally one device is more comfortable than couple.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal