Hi Guys -
Well after a very long session at the keyboard (fortunately for domestic
harmony, my wife is away on a business trip) I am pleased to report that
I can now once more capture MPG straight from IVTV into dvdauthor
without the need to remux.
Thanks to everyone for their help. I will post the details in a new
thread so that other users may have a better chance of finding them but
in summary:
1) I used v4l2 stream_type 3 with 2 B-frames and closed GOPs but
no additional NAV packets. Using insert_navigation_packets=1
causes dvdauthor to report 'SCR moves backwards' then segfault.
2) I had to revert to my old version of dvdauthor (0.6.11) and
apply the patches I previously developed to make it handle IVTV
streams. Thank heavens I'd taken a backup for once.
I'll post the dvdauthor patch and a HowTo on the IVTV website later
today; and I'll see if I can update the patch to make it work on the
current version of dvdauthor (0.6.14).
In the meantime here is my working config:
$ uname -srvp
Linux 2.6.24.7-92.fc8 #1 SMP Wed May 7 16:50:09 EDT 2008 i686
# lspci -vv
03:0b.0 Multimedia video controller: Internext Compression Inc
iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
Subsystem: Adaptec VideOh! AVC-2010
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+
VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium
>TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 64 (32000ns min, 2000ns max), Cache Line Size:
16 bytes
Interrupt: pin A routed to IRQ 16
Region 0: Memory at e8000000 (32-bit, prefetchable)
[size=64M]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: ivtv
Kernel modules: ivtv
$ dmesg
<snip>
Linux video capture interface: v2.00
ivtv: Start initialization, version 1.1.0
ivtv0: Initializing card #0
ivtv0: Autodetected Adaptec VideOh! AVC-2010 card (cx23416
based)
ACPI: PCI Interrupt 0000:03:0b.0[A] -> GSI 23 (level, low) ->
IRQ 16
saa7115 1-0021: saa7115 found (1f7115d0e100000) @ 0x42 (ivtv i2c
driver #0)
cs53l32a 1-0011: chip found @ 0x22 (ivtv i2c driver #0)
ivtv0: Registered device video0 for encoder MPG (4096 kB)
ivtv0: Registered device video32 for encoder YUV (2048 kB)
ivtv0: Registered device vbi0 for encoder VBI (1024 kB)
ivtv0: Registered device video24 for encoder PCM (320 kB)
ivtv0: Initialized card #0: Adaptec VideOh! AVC-2010
ivtv: End initialization
<snip>
ivtv0: Loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
ivtv0: Encoder revision: 0x02060039
<snip>
$ modinfo ivtv
filename:
/lib/modules/2.6.24.7-92.fc8/kernel/drivers/media/video/ivtv/ivtv.ko
version: 1.1.0
license: GPL
description: CX23415/CX23416 driver
author: Kevin Thayer, Chris Kennedy, Hans Verkuil
srcversion: D6CC38A86F1DF58DD1BA944
<snip>
$ lsmod |grep ivtv
ivtv 120577 0
i2c_algo_bit 9029 1 ivtv
cx2341x 14149 1 ivtv
tveeprom 17489 1 ivtv
videodev 27713 1 ivtv
v4l2_common 18497 5
cs53l32a,saa7115,ivtv,cx2341x,videodev
v4l1_compat 15813 2 ivtv,videodev
i2c_core 21057 6
cs53l32a,saa7115,ivtv,i2c_algo_bit,tveeprom,i2c_i801
$ v4l2-ctl --log-status
ivtv0: ================= START STATUS CARD #0 =================
ivtv0: Version: 1.1.0 Card: Adaptec VideOh! AVC-2010
saa7115 1-0021: Audio frequency: 48000 Hz
saa7115 1-0021: Input: Composite 3
saa7115 1-0021: Video signal: broadcast/DVD
saa7115 1-0021: Frequency: 50 Hz
saa7115 1-0021: Detected format: PAL
saa7115 1-0021: Width, Height: 720, 576
cs53l32a 1-0011: Input: 2
cs53l32a 1-0011: Volume: 0 dB
ivtv0: Video Input: Composite 1
ivtv0: Audio Input: Line In 1
ivtv0: Tuner: TV
ivtv0: Stream: MPEG-2 DVD-compatible Stream
ivtv0: VBI Format: No VBI
ivtv0: Video: 720x576, 25 fps
ivtv0: Video: MPEG-2, 16x9, Variable Bitrate, 2750000, Peak 5000000
ivtv0: Video: GOP Size 15, 2 B-Frames, GOP Closure
ivtv0: Audio: 48 kHz, Layer II, 256 kbps, Stereo, No Emphasis, No
CRC
ivtv0: Spatial Filter: Manual, Luma 1D Horizontal, Chroma 1D
Horizontal, 0
ivtv0: Temporal Filter: Manual, 8
ivtv0: Median Filter: Off, Luma [0, 255], Chroma [0, 255]
ivtv0: Status flags: 0x00200000
ivtv0: Stream encoder MPG: status 0x0000, 0% of 4096 KiB (128
buffers) in use
ivtv0: Stream encoder YUV: status 0x0000, 0% of 2056 KiB (195
buffers) in use
ivtv0: Stream encoder VBI: status 0x0000, 0% of 1040 KiB (61 buffers)
in use
ivtv0: Stream encoder PCM: status 0x0000, 0% of 324 KiB (72 buffers)
in use
ivtv0: Read MPG/VBI: 10360768/0 bytes
ivtv0: ================== END STATUS CARD #0 ==================
Kind regards,
MARTIN
On Wed, 2008-05-28 at 18:18 +0200, Levente Novák wrote:
> 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