×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    2

    QMediaRecorder and QCamera not recording video

    Hi,

    I am having some troubles with QMediaRecorder and QCamera. I am trying to start video capturing but simulator or Nokia C7 phone does not find any video codecs. supportedVideoCodecs() gives empty list in both devices. If i am trying to record audio supportedAudioCodecs() gives pcm in simulator and pcm and amr in phone. Also when I try isCaptureModeSupported(QCamera::CaptureVideo) it gives false value on simulator and phone. I am using Ubuntu 10.10 and Qt SDK 1.1 Beta

    Some piece of my code:

    Code:
    QByteArray cameraDevice = QCamera::availableDevices()[0];
            camera = new QCamera(cameraDevice);
            camera->setCaptureMode(QCamera::CaptureVideo);
            recorder = new QMediaRecorder(camera);
    
            camera->load();
            viewfinder = new QCameraViewfinder(this);
    
            camera->setViewfinder(viewfinder);
    
            camera->start();
            ...
            recorder->record();
    also in .pro file i have set

    Code:
    CONFIG += mobility
    MOBILITY += multimedia
    
    
    symbian {
    
        TARGET.CAPABILITY += ReadDeviceData WriteDeviceData AllFiles UserEnvironment
    
     
    }
    sincerely,

    Arto

  2. #2
    Registered User
    Join Date
    Nov 2010
    Posts
    32

    Re: QMediaRecorder and QCamera not recording video

    Have you configured your Qt properly for Symbian?
    If the correct (i.e. Symbian) camera backend is loaded the isCaptureModeSupported(QCamera::CaptureVideo) should always return true when running on device.

  3. #3
    Registered User
    Join Date
    Mar 2011
    Posts
    2

    Re: QMediaRecorder and QCamera not recording video

    Yeah, my fail. I didn't notice it was recording randomly and now I'm wondering why. Sometimes QMediaRecorder makes phone crash so badly that i have to remove battery to recover and sometimes phone just makes warm boot by itself. Before crash qmediarecorder gives resource error and usally camera resources are lost too. Usually everything is working fine after boot, but when I start application second or third time it crashes. Crash appears only when I start recording. Other functionality is working fine.

  4. #4
    Registered User
    Join Date
    Nov 2010
    Posts
    32

    Re: QMediaRecorder and QCamera not recording video

    What resolution are you recording and if HD, are you using raster graphics?
    Recording HD video is very memory consuming and there's not too much memory for both video/graphics on Symbian^3 devices.
    Thus it's recommended to use raster (i.e. SW rendered graphics) on Symbian^3 devices if using camera.

Similar Threads

  1. Getting access to the frames in video stream provided by QCamera
    By aapiskukko in forum [Archived] Qt Mobility Project
    Replies: 7
    Last Post: 2011-03-14, 14:31
  2. QCamera::Status vs QCamera::State ?
    By tipul07 in forum Qt
    Replies: 3
    Last Post: 2011-03-07, 23:33
  3. [moved] 30 fps video recording, not supported?
    By dudi in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2010-03-23, 14:33
  4. Video Recording and streaming
    By tkaihock in forum Symbian Media (Closed)
    Replies: 7
    Last Post: 2007-09-23, 22:38

Posting Permissions

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