×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    4

    Video recording in camera wrapper

    Can anyone tell me how do i record a video using camera wrapper.
    i tried using camera wrapper for the view finder and CVideRecordUtility for the recording process, but i can`t make this one work. The view finder its ok, but i can`t make it record the video.

    I tried to use another example of video record, this one is from Quick Recipes on Symbian OS, that does`t use camera wrapper, it records ok, but the view finder its not working properly. The image shows the view finder for 2 seconds, then it goes to a black screen (for very a very short time, but noticeable) and goes back to view finder, and the blank screen keep repeating itself.

    can anyone tell me why and what should i do?
    my device is a 5800 XM

  2. #2
    Registered User
    Join Date
    Mar 2009
    Posts
    4

    Re: Video recording in camera wrapper

    i just tested the same program on a N95, and it turns out it works! well this is bad news for me because i only have my 5800.
    Can anyone tell me why on n95 i can use StartViewFinderDirectL, and on 5800 it just shows a blank screen. On 5800 it just works when i use StartViewFinderBitmapsL, but this one have the behavior i described before.
    Can anyone tell me how i can make this work on 5800 please?


    Quote Originally Posted by glbrighenti View Post
    Can anyone tell me how do i record a video using camera wrapper.
    i tried using camera wrapper for the view finder and CVideRecordUtility for the recording process, but i can`t make this one work. The view finder its ok, but i can`t make it record the video.

    I tried to use another example of video record, this one is from Quick Recipes on Symbian OS, that does`t use camera wrapper, it records ok, but the view finder its not working properly. The image shows the view finder for 2 seconds, then it goes to a black screen (for very a very short time, but noticeable) and goes back to view finder, and the blank screen keep repeating itself.

    can anyone tell me why and what should i do?
    my device is a 5800 XM

  3. #3
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    148

    Re: Video recording in camera wrapper

    It might be that the problem is caused by a change that has happened in the graphics/window system since the times of N95. To get the view finder visible you need to have screen mode EColor16MA and paint your view finder window background with some color which has fully transparent (alpha value 0x00 if I recall correctly) alpha channel. Note that there is no alpha blending, so either the view finder is fully visible (window fully transparent) or not at all.

    Hope this helps.
    janza

  4. #4
    Nokia Developer Expert
    Join Date
    Apr 2003
    Location
    United Kingdom
    Posts
    95

    Re: Video recording in camera wrapper

    Hi,

    I made the following change in AppContainer:raw()

    CWindowGc& gc = SystemGc();
    gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
    gc.SetBrushColor( TRgb( 0, 0 ) );
    gc.Clear();

    Its working for me.

    Regards
    Venkat Reddy,
    Symbian Expert

  5. #5
    Registered User
    Join Date
    Mar 2009
    Posts
    4

    Re: Video recording in camera wrapper

    i tried that, but now instead of blinking white, its blinking black.
    perhaps i should do what janza said, but i dont know how to change the screen mode to EColor16MA

    Quote Originally Posted by symbiannet View Post
    Hi,

    I made the following change in AppContainer:raw()

    CWindowGc& gc = SystemGc();
    gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
    gc.SetBrushColor( TRgb( 0, 0 ) );
    gc.Clear();

    Its working for me.

    Regards

  6. #6
    Nokia Developer Expert
    Join Date
    Apr 2003
    Location
    United Kingdom
    Posts
    95

    Re: Video recording in camera wrapper

    Hi,

    You can set display mode with the following call for the current window.

    Window().SetRequiredDisplayMode( EColor16MA );

    Regards,
    Venkat Reddy,
    Symbian Expert

  7. #7
    Registered User
    Join Date
    Mar 2009
    Posts
    4

    Smile Re: Video recording in camera wrapper

    Sorry for the late response, I got very busy with my college duties, so I had to stop working on my project for a while.

    When I said this code wasn’t working, I didn’t realize I was using StartViewFinderBitmapsL, because I spent so much time trying to get StartViewFinderDirectL to work, and not succeeded I gave up, and started to use StartViewFinderBitmapsL, because it kind of worked (with the glitches I described here).

    So when I tried this suggested code, I was using StartViewFinderBitmapsL, I didn’t realize you were talking about using StartViewFinderDirectL.

    Bottom line: It works. When using StartViewFinderDirectL on 5800 (S60 5th), it’s necessary to add this code in AppContainer:raw()

    I appreciate your help!
    Thanks very much guys!

    Quote Originally Posted by symbiannet View Post
    Hi,

    I made the following change in AppContainer:raw()

    CWindowGc& gc = SystemGc();
    gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
    gc.SetBrushColor( TRgb( 0, 0 ) );
    gc.Clear();

    Its working for me.

    Regards

Similar Threads

  1. Replies: 1
    Last Post: 2009-03-04, 15:54
  2. Recording Video from Camera To Frame Packets
    By Spider_Eg in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-08-23, 00:56
  3. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  4. Video Recording using Nokia 6600 camera Plug-in
    By ruchaitu in forum Streaming and Video
    Replies: 1
    Last Post: 2005-06-25, 07:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×