From: Pete Eberlein <pete@sensoray.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: video4linux-list@redhat.com, Dean Anderson <dean@sensoray.com>
Subject: [PATCH] Add MPEG4 and Elementary streams (was Re: go7007 development)
Date: Fri, 24 Oct 2008 16:43:47 -0700 [thread overview]
Message-ID: <1224891827.19159.17.camel@pete-desktop> (raw)
In-Reply-To: <200810171736.53826.hverkuil@xs4all.nl>
Hello Hans,
On Fri, 2008-10-17 at 17:36 +0200, Hans Verkuil wrote:
> All MPEG streams use V4L2_PIX_FMT_MPEG and set the exact stream type
> through V4L2_CID_MPEG_STREAM_TYPE. You probably need to add a few new
> stream types to this control for the elementary streams. I think
> something like TYPE_MPEG_ELEM might do the trick, and then you can use
> the audio and video encoding controls to select the precise audio/video
> encoding.
Here is a patch that adds the two defines we need for the go7007 driver
extended MPEG controls. Please consider it for inclusion in the v4l-dvb
tree.
V4L2_MPEG_STREAM_TYPE_MPEG_ELEM will be used for elementary MPEG
streams, whose type and encoding will be determined by examining a
header in the stream. For more information, see
http://en.wikipedia.org/wiki/Elementary_stream
V4L2_MPEG_VIDEO_ENCODING_MPEG_4 will be used for MPEG-4 Part 2 (Simple
Profile, Advanced Simple Profile, etc) encoding. This is not the same
as MPEG-4 AVC (Part 10, Advanced Video Coding).
Thanks.
--
Pete Eberlein
Sensoray Co., Inc.
Email: pete@sensoray.com
http://www.sensoray.com
Signed-off-by: Pete Eberlein <pete@sensoray.com>
---
diff -r fe810917c6ca linux/include/linux/videodev2.h
--- a/linux/include/linux/videodev2.h Fri Oct 24 13:19:14 2008 -0200
+++ b/linux/include/linux/videodev2.h Fri Oct 24 09:57:46 2008 -0700
@@ -892,6 +892,7 @@ enum v4l2_mpeg_stream_type {
V4L2_MPEG_STREAM_TYPE_MPEG2_DVD = 3, /* MPEG-2 DVD-compatible stream */
V4L2_MPEG_STREAM_TYPE_MPEG1_VCD = 4, /* MPEG-1 VCD-compatible stream */
V4L2_MPEG_STREAM_TYPE_MPEG2_SVCD = 5, /* MPEG-2 SVCD-compatible stream */
+ V4L2_MPEG_STREAM_TYPE_MPEG_ELEM = 6, /* MPEG elementary stream */
};
#define V4L2_CID_MPEG_STREAM_PID_PMT (V4L2_CID_MPEG_BASE+1)
#define V4L2_CID_MPEG_STREAM_PID_AUDIO (V4L2_CID_MPEG_BASE+2)
@@ -1027,6 +1028,7 @@ enum v4l2_mpeg_video_encoding {
V4L2_MPEG_VIDEO_ENCODING_MPEG_1 = 0,
V4L2_MPEG_VIDEO_ENCODING_MPEG_2 = 1,
V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC = 2,
+ V4L2_MPEG_VIDEO_ENCODING_MPEG_4 = 3,
};
#define V4L2_CID_MPEG_VIDEO_ASPECT (V4L2_CID_MPEG_BASE+201)
enum v4l2_mpeg_video_aspect {
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
prev parent reply other threads:[~2008-10-24 23:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-17 15:21 go7007 development Pete
2008-10-17 15:36 ` Hans Verkuil
2008-10-17 16:07 ` Dean Anderson
2008-10-17 16:21 ` Hans Verkuil
2008-10-24 23:43 ` Pete Eberlein [this message]
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=1224891827.19159.17.camel@pete-desktop \
--to=pete@sensoray.com \
--cc=dean@sensoray.com \
--cc=hverkuil@xs4all.nl \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.