Jump to content

Audio in video recording


Recommended Posts

Guest Ender Psp
http://omniarom.com/forum/index.php?topic=1220.0

here is one thing that may work on the GSM version too

Pasted for reference. It has been discussed previously here and on other omnia forums as well.

Goto HKCU/Software/Samsung/Camera

Find AudioNormalCodec

the options are:

0 - Default : GSM-AMR-NB 8000Hz 1ch (this is the default but has lots of high pitched noises in the background)

1 - MPEG4 AAC 16000Hz 1ch (this so far is the cleanest audio that I found you can get during video recording)

2 - Qualcomm QCELP 1000Hz 2ch (this is the MMS setting, not good at all for video recording)

This should be already implemented by default (1 - Mpeg4 AAC) in most new roms. For sure this is how my Omnia has it (I2).

Link to comment
Share on other sites

Guest AndyCarroll

I had to add to registry this DWORD AudioNormalCodec

Results:

value0 - 24,7kb/s (64kb/s), 32kHz, 2 channels, AAC (Version 4) (LC) (SBR/PS)

value1 - 12,8kb/s, 8kHz, 1 channel, AMR (Narrow band)

value2 - 14,0kb/s, 8kHz, 1 channel, QCELP

value3 or 4 - video recording doesn't work at all

(MediaInfo v.0.7.2.6)

Link to comment
Share on other sites

Guest AndyCarroll

Not better audio (yet) but we can improve camcorder a little...:-)

Under HKEY/CurrentUser/Software/Samsung/Camera there is RecSet. If you change all values to 00 or delete these values and put just 00 then some interesting things will happen in camcorder mode...

1. Auto Focus menu is enabled. It doesn't work but at least now we can use Macro mode.

2. We can change different ISO numbers now (however they are "Auto" again after camera restart). Kind of "night shot" with ISO400. Framerate will drop in dark scene but this is obvious.

And some things more...

After restarting phone (or soft reset) there will be new RecSet with different values than originally but this "improvement" remains the same.

This modding doesn't affect to photo mode, only to camcorder mode.

And please make backup of your registry before, in case you want old settings back. Would be hard to write these original values to RecSet.

Edited by AndyCarroll
Link to comment
Share on other sites

Guest Ender Psp
Not better audio (yet) but we can improve camcorder a little...:-)

And please make backup of your registry before, in case you want old settings back. Would be hard to write these original values to RecSet.

Man, you might have just pointed me into the right direction. On another thread I was posting about interesting values in the registry exactly in that hive, but never really looked at all those keys.

There are 2 really, really interesting keys there:

CamSet

RecSet

These appear to hold enough data bytes for the Camera and for Recording settings.

I was previously wondering where the camera/recorder keeps the settings, and I suspect these are the 2 keys where the values are kept and read. Will do some testing and post if I find anything.

Edited by Ender Psp
Link to comment
Share on other sites

Guest AndyCarroll
These appear to hold enough data bytes for the Camera and for Recording settings.

I was previously wondering where the camera/recorder keeps the settings, and I suspect these are the 2 keys where the values are kept and read. Will do some testing and post if I find anything.

Glad to help you :-) It was just blind shooting what happens if I disable RecSet. Hopefully these binary values contain video bitrate, framerate (most important), video resolution and autoiris (I want manual iris sometimes) settings.

Somehow I dont't believe that Omnia's video processing hardware has only one framerate limitation and max. resolution is limited to 720x480.

Link to comment
Share on other sites

Guest sonyxperiax2

Intresting! I confirm that with erasing the recset value we can unlock 720x480 SLOW video recording mode!!!! And 320x240 3gp video recording!!!!!! This is very coollllll!!!!!!! Hope that some one wich know registry and dll call can improve bitrate or recording! The phone will support it, because can handle 720x480 at 120 fps!!In the registry there are some value like videoonlyfilesizepersecond, that can mean compression and bitrate.. Changing this value have no effect, but i know there are some system to enable it...

Edited by sonyxperiax2
Link to comment
Share on other sites

Guest Ender Psp
Intresting! I confirm that with erasing the recset value we can unlock 720x480 SLOW video recording mode!!!! And 320x240 3gp video recording!!!!!! This is very coollllll!!!!!!! Hope that some one wich know registry and dll call can improve bitrate or recording! The phone will support it, because can handle 720x480 at 120 fps!!In the registry there are some value like videoonlyfilesizepersecond, that can mean compression and bitrate.. Changing this value have no effect, but i know there are some system to enable it...

Here's some data after playing with the registry:

There seem to be 3 registry (CamSet, RecSet,SceSet) entries in:

HKEY\CurrentUser\Software\Samsung\Camera

"VideoQuality"=dword:

values 0-High, 1-Normal, 3-Low

Video size is stored in RecSet entry, first 2 bytes, in this way:

"RecSet"=hex:00,00, => 176x144

"RecSet"=hex:01,01, => 320x240

"RecSet"=hex:04,04, => 640x480

"RecSet"=hex:05,05, => 720x480

I've tried values 02 and 03 but they don't function properly (recording is garbled).

I'll try in the next days to see what the other bytes stand for.

Of course, any help is welcome :)

Here's how "RecSet" looks like for me:

"RecSet"=hex:00,00,02,80,04,00,00,80,02,02,02,00,01,80,80,80,00,80,02,80,04,00,00,\

80,02,02,02,00,01,80,80,80,01,81,02,80,04,00,00,80,02,02,02,00,01,80,80,80,\

01,81,80,80,04,00,80,80,82,82,82,00,80,80,80,80

AndyCarroll, sonyxperiax2, would you please share your RecSet entry now, that you have enabled the Slow video recording? Where exactly does slow video recording is? (I'll also try this but tomorrow, it's late now). I mean get RecSet zeroed, start camera, record something, and then dump RecSet. TIA!

Edited by Ender Psp
Link to comment
Share on other sites

Guest AndyCarroll

After I make RecSet to zero (binary value 00) and press camera button the RecSet changes to this:

0000 00 00 00 00 00 00 00 00

0008 00 00 00 00 00 00 00 00

0010 00 00 00 00 00 00 00 00

0018 00 00 00 00 00 00 00 00

0020 00 00 00 00 00 00 00 00

0028 00 00 00 00 00 00 00 00

0030 00 00 00 00 00 00 00 00

0038 00 00 00 00 00 00 00 00

0040

By default there is frame size 176x144 and exposure value -2.0

After changing frame size to 720x480, RecSet is:

0000 05 05 00 00 00 00 00 00

0008 00 00 00 00 00 00 00 00

0010 00 00 00 00 00 00 00 00

0018 00 00 00 00 00 00 00 00

0020 00 00 00 00 00 00 00 00

0028 00 00 00 00 00 00 00 00

0030 00 00 00 00 00 00 00 00

0038 00 00 00 00 00 00 00 00

0040

...changing exposure value from -2.0 to 0 RecSet is:

0000 05 05 00 00 04 00 00 00

0008 00 00 00 00 00 00 00 00

0010 00 00 00 00 04 00 00 00

0018 00 00 00 00 00 00 00 00

0020 00 00 00 00 04 00 00 00

0028 00 00 00 00 00 00 00 00

0030 00 00 00 00 04 00 00 00

0038 00 00 00 00 00 00 00 00

0040

After enabling Slow mode with 720x480:

0000 05 05 00 00 04 00 00 00

0008 00 00 00 00 00 00 00 00

0010 00 00 00 00 04 00 00 00

0018 00 00 00 00 00 00 00 00

0020 05 05 00 00 04 00 00 00

0028 00 00 00 00 00 00 00 00

0030 00 00 00 00 04 00 00 00

0038 00 00 00 00 00 00 00 00

0040

However, I cannot record with Slow mode and 720x480. Picture is heavily distorted and

finally get error "...absence of camera module". Restarting phone helps to get camera back.

Ender Psp: recording a clip doesn't change anything in RecSet, you can just mod values, start camera, close camera and so on.

edit: Slow mode works at max. 320x240

0020 01 01 00 00 04 00 00 00

Edited by AndyCarroll
Link to comment
Share on other sites

Guest sonyxperiax2

I can confirm that slow mode works at 720x480. But, it is to say that i am using Samsung omnia pro B7610, witch is the same phone of omnia II with hardware qwerty.. The file size in slow mode is about 15mb per minute, witch is the same as the normale 720x480. The video quality is really good, it seems like normal 720x480.... at this point i think... but... why the great possibility of this camera phone are so limited? I think that framerate can limited and we can drastically improve video quality..It's a shame... Anyway my recset is:

0000 05 05 00....

0008 00....

0010 00...

0018 00...

0020 05 05 00...

0028 00...

0030 00...

0038 00...

0040

I have tried to modify this like you said:

0020 05 05 00 00 04 00 00 00

i got no error, 720x480 in slow mode, nice quality

also... if you put 06 instead of 05, resolution will be 800x480, but the video on the phone is black, on the pc it shows only few images and it have low quality. But, now we know we can enable 800x480 resolution! Another ting i have discovered is that we can enable 720x480 at 3gp (using mms mod..), which in my opinion is better than mp4...

And under

hlm\software\microsoft\pictures\camera\oem\ there are a lot of intrestin things, like in \videoprofile\1\ videoaudiofilesizepersecond, ir video encoder quality... someone know what mean oem? i think that settings are for wimo basic camera that is disabled ( value 0), but i think the file is missing too.. someone know where to find the basic wimo camera application to try?

Edited by sonyxperiax2
Link to comment
Share on other sites

Guest AndyCarroll

These values are Contrast, Saturation and Sharpness.

If 00 then C,S,S is -2

If 02 then C,S,S is 0

So when you "zero" your RecSet don't forget this :)

0000 05 05 00 00 04 00 00 00

0008 02 02 02 00 00 00 00 00

0010 00 00 00 00 04 00 00 00

0018 02 02 02 00 00 00 00 00

0020 00 00 00 00 04 00 00 00

0028 02 02 02 00 00 00 00 00

0030 00 00 00 00 04 00 00 00

0038 00 00 00 00 00 00 00 00

0040

I cannot use 720x480 or 640x480 with MMS, these "buttons" are greyed out :)

Edited by AndyCarroll
Link to comment
Share on other sites

Guest sonyxperiax2

mine too are gray! But i can record even with grey button to 720x480... try :) but first obviously u need to put

0010 05 05

Edited by sonyxperiax2
Link to comment
Share on other sites

Guest AndyCarroll
mine too are gray! But i can record even with grey button to 720x480... try :) but first obviously u need to put

0010 05 05

Thanks, I forgot this 0010 05 05 :) It works now, quality is OK.

But another problem, recording lasts only 1 second. File size is always under 300kB. Changing MMSMaxTime does nothing.

Pressing greyed buttons didn't help, I need to change manually in RecSet:

0010 05 05 = 720x480

or

0010 04 04 = 640x480

...but still only 1 sec recording :)

Edited by AndyCarroll
Link to comment
Share on other sites

Guest sonyxperiax2

hehe i forget :) i am sorry, u need to change the registry value under

hlm\software\samsung\mms\setting\ "MaxSize" , and add at least number 2 zero :)

Someone know what mean Oem??? and where to find a default application of windows mobile 6 camera?

Edited by sonyxperiax2
Link to comment
Share on other sites

Guest AndyCarroll
hehe i forget :) i am sorry, u need to change the registry value under

hlm\software\samsung\mms\setting\ "MaxSize" , and add at least number 2 zero :)

Thanks :)

MaxSize is by default 302080 and it proably means 302kB. Added three zeroes and max.size is 300MB. Enough for me :)

Now the framerate. Sadly there is separate DWord called SupportSlowMode. "0" or "1" and that's it.

My hope was that 120fps "byte" is somewhere in RecSet but unfortunately there isn't.

And seems that CamSet values are only for photo mode.

Link to comment
Share on other sites

Guest sonyxperiax2

yes... i think that samsung had coded into dll files this kind of value. do you know how to open it?

300 mb is really enought :)

my hope is at least to know how to reduce fps, in that way we can increase image quality, that is really important form me..

Edited by sonyxperiax2
Link to comment
Share on other sites

Guest AndyCarroll
yes... i think that samsung had coded into dll files this kind of value. do you know how to open it?

300 mb is really enought :)

my hope is at least to know how to reduce fps, in that way we can increase image quality, that is really important form me..

No I don't know how to open dll-s :)

But I've found that Omnia2 can shoot at least 10fps. You can try youself...set ISO400 and Normal mode (mp4), then shoot in low light. You get mp4 that shows 30fps in file information but actually there is "moving" every 3-rd frame.

Now when you shoot at ISO400 in dark and moving to bright scene then framerate "jumps" from 10fps to 30fps.

Link to comment
Share on other sites

Guest sonyxperiax2

mmm, now i am trying to add new registry value. I am sure that this is the right way. Just like what you said before:

I had to add to registry this DWORD AudioNormalCodec

Results:

value0 - 24,7kb/s (64kb/s), 32kHz, 2 channels, AAC (Version 4) (LC) (SBR/PS)

value1 - 12,8kb/s, 8kHz, 1 channel, AMR (Narrow band)

value2 - 14,0kb/s, 8kHz, 1 channel, QCELP

value3 or 4 - video recording doesn't work at all.

I would add some testing dword, at the moment i have tried:

-BitrateNormalVideoPerSecond

-BitratePerSecond

-Bitrates

-BitrateVideoPersecond

-CameraFps

-CameraNormalCodec

-CamFps

-FpsQuality

-HightQualityBitratePerSecond

-NormalVideoFileSizePerSecond

-QualityBitratePerSecondHight

-RecordingFps

-RecodingFramesPerSecond

-VideoAudioFileSizePerSecond

-VideoCameraFps

-VideoFps

-VideoNormalCodec

-VideoNormalFileSizePerSecond

-VideoNormalFps

-VideoOnlyFileSizePerSecond

-VideoRecodingFps

All with NO result. Are you with me doing some tests?

In addition, i have found this on the net about the old omnia:

Record Video in 400x240

HKCU\Software\Samsung\Camera\VideoSize

Change VideoSize to 1653

Available settings: 1652=640x480 1653=400x240 1654=320x240 1655=176x144

Note: you cannot achieve this size setting from within the camera; you can only set the video to this size by editing the registry (until I find a way to add a link) I'm not sure why they didn't include a 400x240 icon on the video size screen, if it's obviously available on the phone.

But changing this value in that way do not change nothing. Any ideas?

Edited by sonyxperiax2
Link to comment
Share on other sites

Guest AndyCarroll

Yes I've tried some DWORD-s

RecFPS = 0 to 2 or 10 and 15

Support10FPS = 1

Support15FPS = 1

SupportPAL = 1

No luck.

I does always NTSC video (30fps), I think it is capable for making PAL video (25fps) too because it has PAL TV-out possibility.

edit: Used front camera, it gives 15fps 320x240 MP4 920kbs and AAC audio. Even this video has many freezed frames! So I guess it's Samsungs crappy firmware what does this :-(

Edited by AndyCarroll
Link to comment
Share on other sites

Guest sonyxperiax2

mmm, i found this, go in gsmarena site and download video sample of the omnia II first look, it'a 3gp format with about 10 mb file per minute and 15 fps... with better looking video quality! i want thatttt

Link to comment
Share on other sites

  • 2 weeks later...
I had to add to registry this DWORD AudioNormalCodec

Results:

value0 - 24,7kb/s (64kb/s), 32kHz, 2 channels, AAC (Version 4) (LC) (SBR/PS)

value1 - 12,8kb/s, 8kHz, 1 channel, AMR (Narrow band)

value2 - 14,0kb/s, 8kHz, 1 channel, QCELP

value3 or 4 - video recording doesn't work at all

(MediaInfo v.0.7.2.6)

I also had to add DWORD AudioNormalCodec but with the setting of 0 I only get 8khz AMR (far from the 32khz-2ch) and with the setting of 1 I get MPEG4 AAC 16000Hz 1ch. What am I doing wrong? :)

thanks

Link to comment
Share on other sites

Guest siemi1-OmniaII

Wow that is interesting:) Do U all think that it would be possible to add all that col camera/video tweaks to camera menu? To easily operate?

For me all those numbers are mystery :)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.