public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Ghislain Baudon <gbaudon@coframi-rennes.com>
To: video4linux-list@redhat.com
Subject: How to write a V4L2 driver to capture MPEG4 / H.263 ?
Date: Wed, 23 Apr 2008 20:23:09 +0200	[thread overview]
Message-ID: <480F7E8D.90209@coframi-rennes.com> (raw)

Hi,

I'm writing a V4L2 driver for a card which capture video in a compressed 
MPEG4 (H.263+) format.
In the VIDIOC_ENUM_FMT, I return the following structure:

const struct v4l2_fmtdesc tsmpeg4_formats[] = {
    {
        .index          = 0,
        .type           = V4L2_BUF_TYPE_VIDEO_CAPTURE,
        .flags          = V4L2_FMT_FLAG_COMPRESSED,
        .description    = "Hardware-encoded MPEG-4",
        .pixelformat    = V4L2_PIX_FMT_MPEG,
   }
};

But several applications (GStreamer, VLC) display an error "unknown 
format 1195724877", and close the dialog.
I have the same behavior with the vivi driver.

How do I declare this MPEG4 compressed format in V4L2?

Thanks for your reading,
Dagonux.
-- 
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

                 reply	other threads:[~2008-04-23 18:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=480F7E8D.90209@coframi-rennes.com \
    --to=gbaudon@coframi-rennes.com \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox