Hi,Joel
I think you should insert the demux code before your decoder code.
After getting the right video frame,you can send it to decoder,like
moeg2dec.
May
From: [EMAIL PROTECTED]
Reply-To: libmpeg2-devel@lists.sourceforge.net
To: libmpeg2-devel@lists.sourceforge.net
Subject: Libmpeg2-devel Digest, Vol 11, Issue 1
Date: Sun, 01 Jul 2007 12:13:18 -0700
Send Libmpeg2-devel mailing list submissions to
libmpeg2-devel@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Libmpeg2-devel digest..."
Today's Topics:
1. get the right video frame buffer (Joel)
----------------------------------------------------------------------
Message: 1
Date: Sat, 30 Jun 2007 14:02:29 -0700 (PDT)
From: Joel <[EMAIL PROTECTED]>
Subject: [mpeg2-dev] get the right video frame buffer
To: libmpeg2-devel@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
Thanks for May's response, it works on mpeg2dec.exe, however, when I
use the library calls, as in the doc libmpeg2.txt as in the following
Pseudocode, I don't know where I can insert the demux code to get the right
buffer (currently, the buffer I got is a messy color blocks)
Any help?
Joel
if (you need a certain acceleration)
mpeg2_accel(desired_acceleration);
handle=mpeg2_init();
info=mpeg2_info(handle);
while (data_available) {
state=mpeg2_parse(handle);
switch (state) {
case STATE_BUFFER:
read some data
mpeg2_buffer(handle,data_start,data_end);
break;
case STATE_SLICE:
case STATE_END:
display the frame described in "info"
break;
case STATE_INVALID:
abort
break;
}
}
mpeg2_close(handle);
.
Date: Fri, 29 Jun 2007 09:32:07 +0800
From: =?gb2312?B?xbfR9CC67MO3?=
Subject: Re: [mpeg2-dev] Libmpeg2-devel Digest, Vol 10, Issue 6
To: libmpeg2-devel@lists.sourceforge.net
Message-ID:
Content-Type: text/plain; charset=gb2312; format=flowed
Hi,Joel
You should add the "-s 0xe0" parameter.The MPG file is a program stream,it
needs to use the program stream demultiplexer.You can use command
"mpeg2dec
-h" to see the usage of "-s" parameters.
Good luck!
May
>----------------------------------------------------------------------
>
>Message: 1
>Date: Wed, 27 Jun 2007 19:22:47 -0700 (PDT)
>From: Joel
>Subject: [mpeg2-dev] Problem to play mpg2 files
>To: libmpeg2-devel@lists.sourceforge.net
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset="iso-8859-1"
>
>I use mpeg2dec-0.4.1 for extract MPG video frames. However, I had
> problem on a file, when I use mpeg2dec.exe to play back, it failed,
display many color blocks. What is wrong with the program? I have mpg
file (about 2M, can't send through this mailing list because of the size
limit). If you are willing to take a look, I will send the file to you
individually, just give a reply,
>
> Thanks for any help,
>
> Joel
>
---------------------------------
Get the Yahoo! toolbar and be alerted to new email wherever you're
surfing.
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
------------------------------
_______________________________________________
Libmpeg2-devel mailing list
Libmpeg2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel
End of Libmpeg2-devel Digest, Vol 11, Issue 1
*********************************************
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Libmpeg2-devel mailing list
Libmpeg2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel