Reminder problem video camera API

I have reviewed most otherwise examples of Sean all camera APIs available publicly.

Some use reminders and events.

I'm interested in video reminder on the camera_start_video() function.

What I want to achieve is

  1. -get each timestamp frame buffer and send it to a list stored in QML. Class doing is subclassing container.
  2. -each image translated and used in ImageView in QML image property.
  3. -If possible, transcode each image and, possibly, the video itself to resolution 480x480px (currently used is the only 720x720px for 1:1 ratio)

Then cherry picked out of the headers and sources:

//header
public:
    static void vfCallbackEntry(camera_handle_t handle, camera_buffer_t* buf, void* arg);
    void vfCallback(camera_buffer_t* buf);
//sources
void VineRecorder::vfCallbackEntry(camera_handle_t handle, camera_buffer_t* buf, void* arg)
{
    (void)handle;
    ((VineRecorder*)arg)->vfCallback(buf);
}

void VineRecorder::vfCallback(camera_buffer_t* buf)
{
    //if (this->capturing()) {
        if (buf->framemetasize == 65536) return;
        if (buf->frametype != CAMERA_FRAMETYPE_NV12) return;

        quint64 currentFrameTimestamp = (quint64)buf->frametimestamp;
        //this->setLastFrameTimestamp(currentFrameTimestamp);
        qDebug() << currentFrameTimestamp;
    //}
}
//line where callback is used
err = camera_start_video(mHandle, filename, vfCallbackEntry, NULL, NULL);

What confuses me, is that vfCallback is not a static member and still it does not recognize "this", or anything else outside its local scope.

Application crashes on each lines commented in vfCallback.

Did get bad "arg" perhaps?

Can someone maybe show an example of a non-static member is used as a reminder? A function pointer?

Thanks for all of your discussions, responses and suggestions. Please help, it's very frustrating.

Nope... I'm a model. I missed this part of your post somehow.

in any case... your mistake is that you spent NOTHING for arg in camera_start_video().  documentation:

@param arg the argument passed to the functions of callback, which is the
* last argument in the callback functions.

(a little difficult to put into words, but everything that you pass as an argument 'arg' of camera_start_video() is the same argument passed to your reminders like "arg")

This is shown in most of the samples.

Tags: BlackBerry Developers

Similar Questions

  • Problems video camera

    Hi I am trying to edit a video from a digital device that is coded in the form of 30,000 images per second non-goutte, 1280x720p pixels square in the motion JPEG codec.  The audio is 8 kHz 64 Kbps mono in the PCM codec.

    In the 8 elements, I can't import because of the audio format.  Then I ran across Free AVI Video Converter. He changed the video codec XVID and the audio MPEG. for now they are importing and editing very well.  But when I try to export it, I can't have a setting that seems good. Pixelation is horrible. Titles are completely unreadable.

    I'm tempted to upgrade to 11 items, but I won't try unless I know for sure it will solve my problems.

    I really prefer to import videos direct camera and export to a usable quality.

    The camera has been SeaLife DC1400 a friend

    Welcome to the forum.

    I agree with John T. Smith. XviD and DivX are on the worst CODEC to use, if you intend to change the images. If your conversion program can do H.264, probably in a wrapper MP4 w / 16-bit 48 kHz PCM/WAV Audio, that should work fine.

    Now, dating back to when you tried to import the original files, which tells you, the Audio is a question? Pre can treat many different Audio, as it is it compliant floating-point 32-bit 48 kHz. This could take a while, but I think tht the 8 kHz WAV Audio Stream might be similar. Do you have an error message, and if so, what is it?

    Good luck

    Hunt

  • I am expierencing problems with my isight Camera on my MacBook Pro. Suddenly the video camera does not start (no green light on) FT or Photo Booth. The screen is black, if I restart computer it works but after closing the lid, it stops. V10.11.3

    I have problems with my view i camera on my Mac Book Pro. Suddenly the video camera does not work (no green light on) FT or Photo Booth. The screen is black, if I restart it, it works but after closing the lid it stops and I have to restart the computer.  I use V10.11.3. An idea about what is happening

    Hello mpm068,

    Thank you for using communities of Apple Support.

    Since your iSight webcam works up to the time that your Mac goes to sleep, I would like you to start please help desk trying to replicate this problem then to reboot in safe mode:

    1. Choose the Apple menu > shut down.

    2. After your Mac stops, wait 10 seconds, then press the power button.

    3. As soon as you hear the startup tone, hold down the SHIFT key.

      You must press the SHIFT key as soon as possible once you hear the startup tone, but not before.

    4. Release the SHIFT key when you see the gray Apple logo and progress indicator.

    To exit safe mode, restart your Mac, but no press during the startup.

    OS X El Capitan: start in safe mode

    Take care.

  • Problems with importing video camera mini dv JVC

    I turn on my camera and put it on the playback mode. I have IE 1394 plug in my port on the camera and the pc. I open windows dev and click Import from digital video camera. A noise of error made. A message appears "import video is already launched and running on this computer. You cannot start another instance of import video until the first instance has stopped. To correct this issure, wait for the video to be import, close import video, wait a second w fe then start import video. »
    I'm doing this, but I know that I do not have started to import anything. I can sit there all day and wait and try again and again and the same message appears. I also tried to restart the pc and start the process again. Same thing is happening. I tried on my friends laptop same thing occurs. I recorded it before on a destop with another type of fire wire but my laptop cannot use the 1394 cable.

    I turn on my camera and put it on the playback mode. I have IE 1394 plug in my port on the camera and the pc. I open windows dev and click Import from digital video camera. A noise of error made. A message appears "import video is already launched and running on this computer. You cannot start another instance of import video until the first instance has stopped. To correct this issure, wait for the video to be import, close import video, wait a second w fe then start import video. »
    I'm doing this, but I know that I do not have started to import anything. I can sit there all day and wait and try again and again and the same message appears. I also tried to restart the pc and start the process again. Same thing is happening. I tried on my friends laptop same thing occurs. I recorded it before on a destop with another type of fire wire but my laptop cannot use the 1394 cable.

    ==========================================
    Maybe the following will help:

    Windows Vista-
    Import video from a videotape
    http://Windows.Microsoft.com/en-us/Windows-Vista/import-video-from-a-videotape

    Import video in Windows Vista
    http://maximumpcguides.com/Windows-Vista/import-video-in-Windows-Vista/

    Download video from your camera to your computer
    http://www.Microsoft.com/windowsxp/using/MovieMaker/getstarted/DLmovies.mspx

     
    Windows Vista-
    Importing files into Windows Movie
    Manufacturer: Frequently asked questions

    John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • HP Elite X 3: HP Elite X 3 video camera works no-Code error (0x8007045D) 0xA00F427F

    Someone at - it problems with the help of the video camera?

    It does not work for me and I get the following error:

    "Something went wrong".
    Sorry, we weren't able to record video.
    "If you need it, here is the error code: 0xA00F425E (0xC00DABE4).

    As well, the normal camera crashes when I use HDR.

    OS version: 10.0.14393.189
    Revision number of the firmware: 0002.0000.0007.0088

    Edit: seems the changes both error codes: 0xA00F427F (0x8007045D)

    WDRT is Windows device recovery tool.

    This should always be the last step of wiping a Microsoft phone powered :-)

    Thanks for your reply.

    Will try if that helps out.

    Concerning

    JoeTec

  • Video camera is not working on Skype

    The laptop of my wife who uses vista, does not funtion video camera integrated when using Skype. We also bought a new USB camera, but it does not on Skype. Both devices work when you use the program to the USB camera. We have run the diagnostic program, check the attached file. Hope you can help and know what the problem is. She has Skype version 6.18.0.106.

    Better compliance

    hokksu

    Uninstall the ASUS Virtual Camera app.

    If that still does not help, then uninstall the version 6.18 and install the 6.14.0.104 previous version of Skype:

    http://community.Skype.com/T5/Windows-desktop-client/new-version-of-Skype-cannot-find-my-webcam/m-p/...

  • Blue screen with the error ativvaxx.dll connecting video cam - Satellite A100

    Hi, whenever I connect my video cam, my system will crash and I get a blue screen saying there is a problem caused by ativvaxx.dll. Any of you guys knows how to solve this problem? I have a Satellite A100 system, it is new. Any help is appreciated.
    Thank you.

    Cool that you have solved the problem and thanks for the info. Perhaps, it might be useful for other users.

  • K3 Note M Android Update Bug: video camera on the App Hangouts is too dark

    Hello

    After the upgrade to K3 Note Mobile Android m, for video calls using Google Hangouts, (video) camera is too dark. Please fix as soon as POSSIBLE.

    Even tried after reboot phone. Always the same.

    K3 Note users upgraded to Android Mr. Please post your experiences on meeting places...

    Kind regards

    YUVA.

    This problem is resolved after 13MB update.

  • digital video camera is being recognized in windows xp and windows 7 or a fact now

    Hello world. I hope someone can help me please. I have two computers windows xp professional 32-bit and the other is windows 7, both were working fine until yesterday. My problem is that I can edit software.and they both were captuering fine.and computers just stopped at the captureing even time. It really seems I spend most my time troubleshooting. I just want to enjoy what i ' am doing instead of hating what I like to do. I firewire1394 0n computers. Also, I plug this into a canopus converter box. And he remains in analog mode instead of going digital in. I also have the red yellow white wires that go to the converter for the camera.and of course the small hooks to the converter firewire and 6-pin computer.everything was basically works fine and when windows computer with xp does what I then spent to the windows computer 7 and it's the same thing. I ALSO have the regserve and driver boost software I ran two of them and retried. Please someone that skills tech really good please help. And also is their some software I can get that will keep this where I can capture. Also, I forgot to mention the digital video camera that I use are twice are is oone of mini dv jvc model GR-D71U and the other is GR-DVL815U. If I had the money I would not pay mine. But we have very rough now my wife has lost his job 18 months ago and I am disabled. Please ANY HELP WOULD REALLY BE APPRECIATED. If you have any questions do not hesitate to send * address email is removed from the privacy *

    Hello

     
    You can try to uninstall and reinstall the drivers the most recent and supported applications for your webcam from the manufacturer's Web site and check if it helps.
     

    You can also contact your support site for video camera (JVC customer support) and check for any related technical assistance.
  • SDRAM error a video camera and pray portable computer

    Hello

    I have a 16 GB sandisk Extreme. I've been working successfully in my video camera.

    After 20% shooting, camera reports errors and the card cannot be read.

    When I put the card in my laptop it prompts "format?

    I think that the card has become corrupted.

    Q1: can I get data / videos of this map-if yes how. I tried to scan with Rescue Pro deluxe, and it doesn't seem to be able to read anything. This is the best software for recovery?

    Q2: If I format the sdram memory, it will totally wipe the card and then I won't be able to recover the data, or I'll be able to analyze with pro deluxe grab the videos?

    Thank you

    Ian

    Problem solved.

    So here's how I solved this and some suggestions for Sandisk / panasonic.

    So the scenarios is as follows, the video recorder not turn off on a few occasions where she was placed in the bag and registered 2 massive records. My thought is that it corrupted the disk header.

    Whenever it was designed SDram video camera, the camera flashed an error with the card. When I put it in a Windows system, I asked a disc format.

    So on advice form one of the techs at work, I used Linux, linux.

    I created a USB bootable from this site web http://www.sysresccd.org/SystemRescueCd_Homepage

    Then started from the USB on a relativley new portable (i.e. more recent SD card probbaly)

    Once the linux system has started and I put the card in the card reader for laptop, linux was able to read the disk is full.

    Why linux reads the formats of microsoft disk I can't explain better than microsoft.

    I would say that Sandisk create a Test case to see what happens when sandisk extreme tent complete whole disk and especially using a Panasonic VCR.

     

    I hope this helps others.

     

    all the best

    Ian

    PS - Sandisk RescuePro CD (not free) I downloaded these tools and could not get the application to read the disc.

    There are several versions and was kindly pointed out by LC technologies various utilities.

    IM always shocked at how linux was able to read the disc without problem.

  • Cannot connect digital video camera

    Hello

    I tried in vain for hours connect a digital video camera to my Vista computer. I tried the camera on other computers and cannot connect to them either. It's a Sony Handycam and I used 4 Pin/4 Pin firewire cable 4 pin/6 pin. I also tried a USB cable. I'm running the camera in the game while restarting the computer, I tried to turn the camera on or off when you are connected to the count. I checked the settings of the camera and they all look great. I don't think that the problem is with the camera because I downloaded the video in addition to him in the past, but only once. Is there a chance that a Vista update caused vista to no longer recognize my camera?

    Thank you

    Russ

    Hi GraceRuss,

    It is unlikely that an update is the problem with the camera because the camera does not work on any machine. Looks like that there is a problem with the camera or a problem in the connection. You must consult the instruction manual provided with your product first and then consult with the support of sony. Thank you, Jeremy M - Support Engineer

  • Unable to connect my video camera to panosonic for vista

    Original title: why not connect my panosonic for vista but XP video camera

    My panasonic NV-GS27 does not connect to my computer using Vista but connects to my computer XP.

    Is there a download that will solve this problem?

    Hello

    http://www.Microsoft.com/Windows/compatibility/Windows-Vista/default.aspx

    is it compatible with vista?

    and if you get the panasonic vista drivers downloads

  • The video camera icon is missing

    Original title: video camera

    I just plug my video cam into a usb port then it installed, now I can't find the icon to use for making videos

    Hello
     
    1. What is the number of brand and model of your camcorder?

    2. are you referring to the icon on the taskbar or the desktop?
     
    Your question does contain all the required information necessary for us to help you. Please re - write your question, this time make sure you have all the information necessary and we will try to help.
     
    Please see:
     
     
    Check if your device is in Device Manager .
    During this time, try the following steps.
    Step 1:
    Install the software provided with the camera or download from the manufacturer's website.
    Step 2:
     
    Update of drivers for your video camera and check if this is useful.
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • How to transfer video from Panasonic NV-GS180 miniDV digital video camera

    Connection of the MiniDV camera to windows vista

    I have a Panasonic NV-GS180 miniDV digital video camera. My computer has windows vista operating system. Recently, I decided to transfer the videos, I took, from tape (miniDV) on my computer. I have found that editing software supplied with the camera (motionDV studio THE 5.3e) cannot be installed to vista OS. I read on a forum that I can use windows Movie Maker to do that, but neither with the with the IEEE 1394 the computer cable usb cable had connection with the camera. How can I solve it?

    I have a Panasonic NV-GS180 miniDV digital video camera. My computer has windows vista operating system. Recently, I decided to transfer the videos, I took, from tape (miniDV) on my computer. I have found that editing software supplied with the camera (motionDV studio THE 5.3e) cannot be installed to vista OS. I read on a forum that I can use windows Movie Maker to do that, but neither with the with the IEEE 1394 the computer cable usb cable had connection with the camera. How can I solve it?

    =========================================
    Download via your connection FireWire (IEEE-1394) would be the
    best bet.

    Maybe the following articles offer something that you haven't tried:

    Windows Vista-
    Import video from a videotape
    http://Windows.Microsoft.com/en-us/Windows-Vista/import-video-from-a-videotape

    Import video in Windows Vista
    http://maximumpcguides.com/Windows-Vista/import-video-in-Windows-Vista/

    Windows Vista - importing video from a video camera high definition (HDV)
    http://Windows.Microsoft.com/en-us/Windows-Vista/import-video-from-a-high-definition-video-HDV-camera

    Windows Vista-
    Troubleshoot importing video problems
    http://Windows.Microsoft.com/en-us/Windows-Vista/Troubleshoot-importing-video-problems

    Download video from your camera to your computer
    http://www.Microsoft.com/windowsxp/using/MovieMaker/getstarted/DLmovies.mspx

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Recording with video camera

    Hello

    I don't know if maybe the camera Documentation is not aligned with the API documentation. I was wondering if someone could guide me toward the Dev Alpha camera to record. The following code gets the camera started correctly.

    // Initialize Video Cam
        QmlDocument *qml = QmlDocument::create("asset:///videoCam.qml");
        mVideoCam = qml->createRootObject();
        Camera *camera = mVideoCam->findChild("myCamera");
        camera->open(CameraUnit::Front);
    

    And then I push the camera into the view with:

    mNavPane->push(mVideoCam);
    

    The camera is running. What is not clear to me, I get the following error when I "startVideoCapture()":

    Dec 16 22:22:17.933 com.example.DiveBook.testDev_le_DiveBook7e1553ee.15999178              default    301  CamControllerInternal::StartVideoRecording Error -> Invalid vf mode. (vf mode:1)
    
    Dec 16 22:22:17.933 com.example.DiveBook.testDev_le_DiveBook7e1553ee.15999178              default    301  CamControllerInternal::ExecuteCommand STARTVIDEORECORDING = result (15)
    
    Dec 16 22:22:17.933 com.example.DiveBook.testDev_le_DiveBook7e1553ee.15999178              default    300  void bb::cascades::multimedia::CameraPrivate::onRecordingFailed(CamResult) called.
    Dec 16 22:22:17.933 com.example.DiveBook.testDev_le_DiveBook7e1553ee.15999178              default   9000  OrientationSupportPrivate::setSupportedDisplayOrientation: displayOrientation: All
    Dec 16 22:22:17.933 com.example.DiveBook.testDev_le_DiveBook7e1553ee.15999178              default   9000  OrientationSupportPrivate::setSupportedDisplayOrientation: successfully changed to All
    Dec 16 22:22:17.934 com.example.DiveBook.testDev_le_DiveBook7e1553ee.15999178              default   9000  onVideoCaptureFailed signal received with error 3
    

    I guess that means Mode VF 'invalid', I have to set something correctly bound to my viewfinder? Can someone show me and example?

    Here is my videoCam.qml for reference:

    // Default empty project template
    import bb.cascades 1.0
    import bb.cascades.multimedia 1.0
    
    Page {
        // This is the camera control that is defined in the cascades multimedia library.
        Camera {
            id: camera
            objectName: "myCamera"
    
            onTouch: {
                if (event.isDown() && !camera.videoCaptureStarted()) {
                    // Take photo
                    startVideoCapture();
                }
            }
    
            // When the camera is opened we want to start the viewfinder
            onCameraOpened: {
                camera.startViewfinder();
            }
    
            // There are loads of messages we could listen to here.
            // onPhotoSaved and onShutterFired are taken care of in the C++ code.
            onCameraOpenFailed: {
                console.log("onCameraOpenFailed signal received with error " + error);
            }
            onViewfinderStartFailed: {
                console.log("viewfinderStartFailed signal received with error " + error);
            }
            onViewfinderStopFailed: {
                console.log("viewfinderStopFailed signal received with error " + error);
            }
            onVideoCaptureFailed: {
                console.log("onVideoCaptureFailed signal received with error " + error);
            }
        }
    }
    

    Thank you

    Kerdum

    I think I solved it. I had to fill an instance of the CameraSettings class, and then apply it to my camera photo using "camera.applySettings ()".

Maybe you are looking for

  • can I save an external drive for Time Machine with my laptop SSD?

    Hello Ive just bought an external drive as my laptop finally got too full to keep still a lot of work on this subject. I was wondering / hoping that ill be able to save the contents of the capsule/timemachine external drive as well as the content of

  • Loss of control

    I have CH Pro Pedals, which often does not work when you use them with flight sims FS9 and FSX Acceleration. I can solve the problem by blocking down and restarting. CH Fighterstick performs flawlessly. I understand that drivers are automatically upd

  • : HP Quicktouch on screen has stopped working, computer will not remain once I connect.

    So looking at the forums and everywhere on the internet, I know this problem starts because of an update that I installed it. But what I'm trying to understand why my computer will not remain after that window opens after I connect, because it restar

  • How to: update the hard drive and memory

    Original title: what are the steps to replace my XP hard drive and improve memory? Still use XP. How do they manage the software requirements? I have an external hard drive. How to start the computer after the equipment is replaced? The company I bou

  • Files corrupted in "Downloaded Program Files".

    I have a list of files downloaded programs that do not match any IE Add - ons, but at least some of them are related to activex controls and java prevents me to use either in a browser - can I still use the download from Microsoft Technet at this sta