Well thank you both, Hans and Levente, for your very swift replies.

Yes, I will keep you informed of the results.  I certainly could do this 
before but it is hard to remember the details and (doh) I kept very few 
notes.  When you get to my age your memory starts to fade.

What notes I have tell me that when I did this before, I was using:
    Video: pal 25fps, 720x576, interlaced
    Audio: 256kbps, mpeg2ac3, 48kHz sampling, 2channels
    Mpeg: closed GOPs, bitrate 6Mbps->8.9peak, StreamType 14

So it looks like streamtype 14 is the best one to have used for the new API, 
Hans.  Good choice.

I have a funny feeling that even then I had to patch dvdauthor to make it 
handle the ivtv stream - but I think the patches were incorporated in the 
release version after that.  Hmmm.

I remember that I used to use the perl script record-v4l2 in order to 
capture the final GOP properly, otherwise dvdauthor would complain.  Of 
course that script does not work now (at least, I could not get the version 
in the 1.0.3 release to do so - it fails on the setEndGOP() call) so I have 
been using gopchop to tidy the stream up before I do my more recent tests. 
I hope that this will have the same effect.

I will certainly let you know if I get it working again.

One approach I am considering is to examine the MPEG2 stream in detail so 
that I can understand what needs to change in dvdauthor.  But I'm not very 
familiar with the standards.  Can you recommend an analysis tool?

Krgds, M



----- Original Message ----- 
From: "Levente Novák" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, May 28, 2008 5:18 PM
Subject: Re: [ivtv-users] Does v4l2 stream type 3 give the CX2341xDVD_S2 
format?


> On Wed, 2008-05-28 at 17:50 +0200, Hans Verkuil wrote:
>> On Wednesday 28 May 2008 15:05:11 Martin Crossley wrote:
>> > Hello all.
>> >
>> > I'm a caveman who has been stuck in a timewarp for the last 2,000
>> > years so I am only just updating my scripts from using the _old_
>> > ivtv-ctl API to the new one based on v4l2-ctl.
>> >
>> > FYI I running a CX23416-based card (Adaptec AVC-2010) under kernel
>> > 2.6.24.7-92.fc8 using the up-to-date driver and utils.  Everything is
>> > working well.
>> >
>> > In the old days (when dinosaurs walked the Earth) I could use
>> > ivtv-ctl stream_type to select three different types of 'DVD' mpeg
>> > stream (10:'DVD', 13:'DVD_S1', or 14:'DVD_S2').  But with the V4L2
>> > API it seems I have only one DVD stream type (=3).
>> >
>> > Diving into the kernel source I found cx2341x_update() which includes
>> > among other things:
>> >
>> > static int mpeg_stream_type[] = {
>> > 0, /* MPEG-2 PS */
>> > 1, /* MPEG-2 TS */
>> > 2, /* MPEG-1 SS */
>> > 14, /* DVD */
>> > 11, /* VCD */
>> > 12, /* SVCD */
>> > };
>> >
>> > I presume that this is a translation between the new V4L2 stream
>> > types and the CX2341X fw-encoder API.  If so, am I correct in
>> > assuming that v4l2 stream-type 3 is translated into CX2341X stream
>> > type 14 (DVD_S2)?
>>
>> Yes.
>>
>> > I've been struggling a little with the new API because I used to be
>> > able to use DVD_S2 to create a stream I could plug straight into
>> > dvdauthor without having to remux (as long as I tweaked a few other
>> > parameters like the B-frames).  But so far I've not been able to
>> > achieve this with v4l2-ctl stream_type 3.  Are there any other things
>> > I need to set to get the "old" DVD_S2 behavior (such as
>> > insert_navigation_packets) ??
>>
>> Not that I know of. I haven't tried that in a long time, though. You can
>> just try replacing '14' with '10' and '13' and see if one of the others
>> give a DVDAuthor compliant stream. The idea behind the DVD stream is
>> exactly that you can use it without remuxing. At the time I thought 14
>> was the right one to use, but I might have been mistaken.
>
> And please let us informed of the results, I am very interested to know
> which is the "most compliant" stream.
>
> Levente
>
>
>
> _______________________________________________
> ivtv-users mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-users 


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

Reply via email to