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.
-------------------------------------------------------------------------
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