Log in

View Full Version : output of mpeg1 decoding


vkmgeek
10th May 2006, 14:58
Hi,
I am very new to these audio/video stuff. I am doin a project related to it. I want to play an mpeg1 file on embedded device.

So, I want to decode mpeg1 file first and I am able to do it. I am getting images.But what about sound? I am not getting it.

Can anyone explain me about output of mpeg1 decoder? I am using libraries provided by ffmpeg.

Will I get video and audio frames separately and then Will I have to do synchronisation between them?

Please help me out.....
Thanks in advance...

Guest
10th May 2006, 15:55
What is the audio type? If it is AC3, then ffmpeg needs an additional library (liba52) and AC3 decoding has to be enabled with ./configure --enable-a52.

To determine your audio type, load the file into DGIndex and do a preview (F5). The audio type will be shown in the information dialog.

vkmgeek
11th May 2006, 08:00
What is the audio type?

Hi,
Thanks for ur inputs!!!

I have mpeg1 file and mpeg1 file contains either video frames or audio frames or both.
Now, I have mpeg1 file that contains both audio and video frames. I am able to detect where the video frame starts but not getting audio frames....
Any idea? Well, can you state me very basics of mpeg1 decoding and playing? or rather,
open mpeg1file ->find out video frame->find out audio frame-> decode both the frames->do synchronisation->play them
the code flow shown here is true or not?

Guest
11th May 2006, 13:47
What is the audio type (format)?

vkmgeek
12th May 2006, 07:58
Hey sorry but not getting ur question...
Audio type has to be mpeg1 audio....