×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    172

    Question Secondary Camera (face) image is flipped

    Hi,
    i try record a video using Qt and looks fine when using main mobile camera
    but When use secondary (face) Camera
    the Recorded video image is flipped i don't know why

    I record the video file in path e:\\test.mp4
    when i play this video from mobile video player it is ok except the image is flipped


    [Qt1.1] Nokia N8

    here is some code what i use for testing..

    QByteArray cameraDevice = QCamera::availableDevices()[1];//selecting the secondary camera
    m_camera = new QCamera(cameraDevice);
    mediaRecorder = new QMediaRecorder(m_camera);

    m_camera->setCaptureMode(QCamera::CaptureVideo);

    // Own video output drawing that shows camera view finder pictures (this is for display on the mobile screen and it is fine on camera preview)
    QMediaService* ms = m_camera->service();
    QVideoRendererControl* vrc = ms->requestControl<QVideoRendererControl*>();
    m_myVideoSurface = new MyVideoSurface(this,this,this);
    vrc->setSurface(m_myVideoSurface);






    m_videoWidget->show();
    m_camera->start();

    mediaRecorder->setOutputLocation(QUrl("e:\\test.mp4"));
    QAudioEncoderSettings audioSettings;
    audioSettings.setCodec("audio/mpeg");
    audioSettings.setChannelCount(2);

    mediaRecorder->setEncodingSettings(audioSettings);
    mediaRecorder->record();



    Can you help please

    Thanks
    Wael

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

    Re: Secondary Camera (face) image is flipped

    This is a feature, not a bug.
    It is actually the viewfinder that is flipped (mirrored) not the captured content.
    Viewfinder is flipped to make the viewfinder view look sensible when rotating the device.
    Flipping the captured content is not supported by the native framework.
    So current behavior it what looks most sensible in most cases.
    But it's a compromise and not perfect.

Similar Threads

  1. Camera Wrapper library Face camera capture image reversed
    By waelfarouk in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2011-05-13, 18:10
  2. Face Camera
    By waelfarouk in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2011-05-08, 18:46
  3. secondary camera view
    By vineet.jain in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2009-03-19, 10:32
  4. Capturing image from secondary camera problem
    By michaelnewyork in forum Symbian
    Replies: 7
    Last Post: 2008-09-08, 08:09
  5. Problem of drawing FLIPPED Image after clipping in Nokia 3510i handset
    By radhesh in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2003-12-10, 03:29

Posting Permissions

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