libxvidcore problem

This is a discussion on libxvidcore problem within the C++ Programming forums, part of the General Programming Boards category; I am trying to decode an asf wrapped MPEG4 file using decraw but the images I keep getting are, well, ...

  1. #1
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189

    libxvidcore problem

    I am trying to decode an asf wrapped MPEG4 file using decraw but the images I keep getting are, well, I dont know how to describe it. The first several raster lines are fine, but then the image becomes garbled. Here I have posted a copy of the original asf video on my website, as well as a copy of one of the decoded images.

    A bitmap conversion of the file (hexedited form the pnm)
    http://www.anthonyqbachler.com/untitled.bmp

    The original pnm as it was decoded from the asf file
    http://www.anthonyqbachler.com/dec00380.pnm

    The asf file (MPEG4)
    http://www.anthonyqbachler.com/mpeg.asf
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189

    Update

    It appears that the camera I am pulling the MPEG4 from encodes it in a format, possibly proprietary, that libxvidcore does not support. Its amazing I got any sort of image out at all.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    The format is Microsoft ISO MPEG-4 Video Codec V1, using the FourCC MP4S. So yes, definitely proprietary.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Which of course makes it completely useless for anything other than viewing it in a web browser. I was hoping to extract the frames for use in an application. I do appreciate knowing the specific codec though, perhaps i can find some way to decode it.
    Last edited by abachler; 02-14-2008 at 02:07 PM.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    ffmpeg can decode it. I know this for a fact, because mplayer used it on the file you sent, and it worked.
    libavifile probably can decode it, as I think it can use ffmpeg's codecs.

    libxvidcore is not a good choice because it is specifically for the xvid codec. Libraries like libavifile try to pack up as many codecs as possible.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    sweet jesus Im back in business then I could kiss you cornedbee, just not on the lips cuz that would be gay
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10:22 AM
  2. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  3. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  4. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  5. beginner problem
    By The_Nymph in forum C Programming
    Replies: 4
    Last Post: 03-05-2002, 04:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21