Share

MPEG4IP

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

mp4live 1.2.11 V4L crashes every time

  1. 2005-03-25 22:35:25 UTC
    With preview video source everything looks fine but every attempt to capture anything with preview to file leads to a crash.
    Preview freezes the picture and nothing gets recorded. After the recording time is up it crashes back to the shell with varying errors depending on codec used.
    Most typical one is:
    *** glibc detected *** double free or corruption (!prev): 0x00c5f9a0 ***

    Without preview all I get is
    00:26:34.603-mp4live-3: Failed to allocate video capture buffer for /dev/video0 - frame 0 max 1 rc -1 errno 22 format 4

    Any suggestions? Platform is FC3.

  2. 2005-03-25 23:03:07 UTC
    I just put 1.2.12 up on CVS.

    I'd need to see what you're trying to do so I can try it here (ie: how many streams, what profile settings are being used).

    You might try using V4L2 - I haven't done any testing with V4L. You'll need to copy videodev.h and videodev2.h from a working system, then recompile mpeg4ip. Fedora did not copy the correct include files for their distribution.
  3. 2005-03-26 20:18:48 UTC
    What I am trying to do is to find a program to succesfully record quickcam-messenger originated stream to a file. I am using quickcam 0.8 drivers and they seem to work with videosource preview.

    I have no idea how to select between v4l2 and v4l1 in mplive. I have no idea where I could get working videodev.h, quickam-messenger source has videodev2.h (videodevfix.h) which claims to be a modified copy of kernel-headers. Fedora has two different copies of videodev.h one under /lib/modules/... and one under /usr/src/linux. And no videodev2.h file. Are both of these videodev.h headers incorrect ones?

    I am trying two streams, one for video and one for audio. Audio gets recorded fine.
    Videosource: /dev/video0, 320x240, PAL, Camera
    Audiosource: /dev/dsp, mix 44100Mhz, stereo.
    Preview videosource seems fine.

    Default: Mpeg4 - xvid 1.0 release
    320x240 SIF
    Standard: 4:3
    Filter: None
    FPS: 25
    Rate: 500

    I am sorry if this is a frequently asked question but I really don't have a clue. ;-(

    ---
    21:59:19.452-mp4live-3: mp4live version 1.2.12 V4L
    21:59:25.574-mp4live-3: Failed to get video channel info for /dev/video0
    Muistialueen ylitys
  4. 2005-03-27 01:53:34 UTC
    Okay. Fedora Core is messed up. They did not include the correct video for linux header files. You can get those from bytesex.org, or wherever they are storing the V4L2 interfaces. Put them in /usr/include/linux.

    V4L or V4L2 are chosen at configure time, depending on what headers are installed (V4L2 requires videodev.h and videodev2.h).

    We have had a lot of problems with web cams and the various drivers. Not having one, and not having any access to a system with one, it's hard for me to test it out.

    The "failed to get video channel info" is a typical failing of the quickcam drivers; they do not correctly implement the VIDIOGCHAN, which should get us some information, and allow us to set PAL or NTSC.

    So, unfortunately, I cannot help you here, as I have no local equipment to work on. If you'd like, I could try to ssh to your machine during normal working hours for me and try it out.

    Bill
  5. 2005-03-30 19:30:05 UTC
    I don't know if I chose the right approach. I took the All.diff.tgz from bytesex, fetched kernel source rpm for Fedora, made some changes to the spec file and build a new kernel rpm with the All.diff-patches applied.

    Installed the kernel rpm. Copied /lib/modules/`uname -r`/build/include/linux/video* to /usr/include/linux. Edited __users from the videodev.h and videodev2.h and recompiled both the usb-messenger module and mpeg4ip. Now I don't even get preview but:
    1:35:18.327-mp4live-3: /opt/bin/mp4live version 1.2.12 V4L2
    21:35:19.027-mp4live-3: Failed to query video capabilities for /dev/video0

    (Longer description of what I have done can be found from http://blogit.claymountain.com/sf/index.php?/archives/17-Building-custom-FC-3-kernel-package-with-v4l2-patches.html)

    I thank you for your offer to ssh to my computer to have a peek but I am afraid that is impossible to arrange. But I am happy to play clueless zombie otherwise if you have anything to suggest.

    What I am now going to do is to first downgrade mpeg4ip to use v2l1 on patched kernel. Then switch back to stock kernel without the latest patches and copy/modify it's video* files to /usr/include/linux.

    But I am really feeling like zombie groping with things I don't understand. For example I can not understand how I could change from ntsc to pal to get preview working on my first try but wasn't then able to record what I was seeing to a file.

    I had some compilation problems on my workstation at work with current cvs version but on my laptop at home I had none.

    22:20:17.794-mp4live-3: Failed to query video capabilities for /dev/video0
    22:20:17.963-mp4live-3: Failed to query video capabilities for /dev/video
    22:20:18.020-mp4live-3: mp4live version 1.2.13 V4L2
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.