Inline:

> 1. Does ivtv cards have audio output or just video
> (tv-out) ?

For output, it decodes both audio and video. Generally
what it records can be sent back out directly, eg cat
videofile > /dev/video16, and it will play back in
sync.

> Currently i'm sending MPEG-PES video data to the
> card but i wanted to know if i can do the same
> for MPEG-PES audio data.

should be fine, test it and find out! :)

> 2. I do have a problem with decoder filling.
> 
> It seems from my tests that the decode needs
> something like 80 MPEG frames before being
> able to display a single picture. As a result,
> MPlayer renders a stream with desyncronized A-V.
> >From MPlayer view, audio  and video packets are
> synced but the problem is that audio packets are
> played immediately when decoded while video packets
> are displayed with a 80 frames delay.

I noticed the same thing, generally it takes about 3
seconds before it starts decoding (which would be 90
frames.. so i'm sure we're talking about the same
thing)

> Is there then a way for ivtv decoder to start
> displaying received frames immediately ?
> Otherwise, is there any way to known the exact
> moment where buffer gets filled
> (and so, the exact time where pictures will be
> displayed) in order to delay audio packets
> from the same amount of time.

I believe the card will obey the timestamps in the
mpeg file, so as long as you populate the output to
the card with the proper timestamps everything should
be in sync.

You can ask the card what frame its currently
decoding, and what PTS and clock it currently is on
(via an ioctl). I believe that should give you an
accurate reading of the current delay. Unfortunately,
to use that information probably means you have to
start decoding, wait a few seconds, read the delay and
adjust things afterwards.

There must be a way to get it working correctly
though, because the streams that it records itself
work fine and are in-sync.

I actually started writing the mplayer plugin, but
gave up because of the audio sync issues. Xine's
method (creating a virtual timestamp and always
displaying frames even when paused) worked a little
better, and i had a working OSD and everything, but
ran out of time and have since purchased a real dvd
player so i have no need for the plugin :)

Feel free to ask if you have other questions, and i'll
help if i can.

-tmk

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to