Video TMP files - RAW audio (video?) data we could use. - General Discussion and Assistance - CHDK Forum

Video TMP files - RAW audio (video?) data we could use.

  • 4 Replies
  • 3026 Views
Video TMP files - RAW audio (video?) data we could use.
« on: 03 / March / 2012, 11:34:05 »
Advertisements
Hello!

I'm not sure wheter it was discussed somewhere, but didn't find anything. I was playing with movie recording today and I've noticed that while movie is being recorded the temporary file is created in the appropriate directory (A/DCIM/current_photos_dir). It is called MVI_XXXX.TMP.

I was wonder, what kind of data are stored there, and it seems to be simmilar to MOV QuickTime file but without a header. It contains no "mvhd" strings. I was not playing much with hexeditor.

Since I was thinking about extracting sound data from there I opened this file with an Audacity (an open source sound editor) as a raw audio data. And it was (just like MOV file) a movie sound alternating with nois (video data?).

I'm thinking now, whether we could read this files on the fly during the video recording and add a volume meter to the OSD?

We could also modify this file on the fly, but I'm not sure, whether camera would allow to open this file, while it is already opened. I didn't do this yet, did anyone?

PS. Does anybody know, where in memory could I search for sound data?
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline dvip

  • ****
  • 451
Re: Video TMP files - RAW audio (video?) data we could use.
« Reply #1 on: 03 / March / 2012, 19:37:11 »
I use videos sometimes just to record voice then I extract the audio on the PC with virtualdub. The only bad thing of course is that the lcd uses power, the lens comes out  and the size of the file :( But it would be cool to record voice in mp3 or wav format. Some cameras allow you to attach audio to  jpgs (1 min of audio or so). I wonder if the audio thing can be done from a lua script.

*

Offline reyalp

  • ******
  • 14118
Re: Video TMP files - RAW audio (video?) data we could use.
« Reply #2 on: 03 / March / 2012, 22:26:58 »
Quote
The only bad thing of course is that the lcd uses power, the lens comes out  and the size of the file
The last one you can take care of with the video quality override. If you set it to 1, the video is quite small.
Don't forget what the H stands for.

*

Offline dvip

  • ****
  • 451
Re: Video TMP files - RAW audio (video?) data we could use.
« Reply #3 on: 06 / March / 2012, 23:44:56 »
Great tip, reyalp! Thanks!


Re: Video TMP files - RAW audio (video?) data we could use.
« Reply #4 on: 07 / March / 2012, 10:31:03 »
LCD will turn off, when you plug video cable ;)
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal