|
|
How to create companent to decoder Mpeg2 file
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2004
Status:
Offline
|
|
Dear All,
I want to write one decoder of mpeg2 .Maybe I can do it with QT companent to play the video and audio .what type companent will be create ? like FFsioun , the Image codec and audio codec companent is wrote for decoder the video and audio . And ,what is for to read the file , and synchronization of the Video and Audio ? Who can give some suggust for the framework of the total Decoder of Mpeg2 .
Thanks for any reply.
---Ann
|
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Apple already sells an MPEG-2 component for QT: http://www.apple.com/quicktime/mpeg2/
Writing software which deals with audio-visual streams and processing them in real-time is not easy, and the QT component API is quite a beast. Are you sure you're up to it?
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2004
Status:
Offline
|
|
Yeah, we will plan to write the mpeg2 decoder(player) . Now , we are face two proble . one ,how to real-time play the video and audio .And second , how to play them synchronization . So , I have two
chance to do these ..
1, Do it with QT companent . I need one data handle companent to control the file .one media handle companent to control the media . one image decompress compannet to decoder video .one
audio decompress to decode audio .. So ,the job is hard .
2 , maybe i can deal with these by myself . use muti-thread to control . But , there are some problem . One is how to display the YUV data . because i need to increase the speed to real-time .
i must find the best way to do display . Now i convert YUV data to RGB data , then use copybits() to
display . One is how to play the sound data . it's how to play the PCM sample .
anybody can give me some suggust for display for Video YUV data and Audio PCM data .. Thanks very much ..
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Feb 2001
Location: Deer Crossing, CT
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2004
Status:
Offline
|
|
I check the ffmpeg already . it's good audio and video codec . Furthermore it apply one easy player --ffplay . But , ffplay use SDL . so i can't use on mac . I must find ways to play Audio--PCM sample and Video--YUV frame on mac . Now , I can decode de Audio and video data to PCM and YUV . How to display them is the key .. Thanks again !
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2004
Status:
Offline
|
|
I check the ffmpeg already . it's good audio and video codec . Furthermore it apply one easy player --ffplay . But , ffplay use SDL . so i can't use on mac . I must find ways to play Audio--PCM sample and Video--YUV frame on mac . Now , I can decode de Audio and video data to PCM and YUV . How to display them is the key .. Thanks again !
|
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
SDL has been ported to OS X.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Oct 2004
Status:
Offline
|
|
oh? i 'll try to find the information of SDL in OSX. Thanks for Anqus_D .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|