On Friday 03 November 2006 23:37, Duncan Webb wrote:
> I know it's difficult to fix when you can't reproduce the problem.
>
> Against the
> http://ivtvdriver.org/viewcvs/ivtv/branches/0.8.tar.gz?view=tar I
> get: (It's the same with and without GOP_END)
>
> streamoff-test /dev/video1
> Opened output "test.mpeg"
> Opened input "/dev/video1"
> ioctl IVTV_IOC_S_GOP_END ok
> IVTV_IOC_S_GOP_END 1
>   0, Running, bytes_read=90048, bytes_written=90048
>   1, Running, bytes_read=12288, bytes_written=12288
>   2, Running, bytes_read=32768, bytes_written=32768
>   3, Running, bytes_read=51200, bytes_written=51200
>   4, Running, bytes_read=18432, bytes_written=18432
>   5, Running, bytes_read=32768, bytes_written=32768
>   6, Running, bytes_read=51200, bytes_written=51200
>   7, Running, bytes_read=18432, bytes_written=18432
>   8, Running, bytes_read=28672, bytes_written=28672
>   9, Running, bytes_read=51200, bytes_written=51200
>  10, Running, bytes_read=20480, bytes_written=20480
>  11, Running, bytes_read=28672, bytes_written=28672
>  12, Running, bytes_read=61440, bytes_written=61440
>  13, Running, bytes_read=18432, bytes_written=18432
>  14, Running, bytes_read=18432, bytes_written=18432
>  15, Running, bytes_read=36864, bytes_written=36864
>  16, Running, bytes_read=18432, bytes_written=18432
>  17, Running, bytes_read=20480, bytes_written=20480
>  18, Running, bytes_read=32768, bytes_written=32768
>  19, Running, bytes_read=12352, bytes_written=12352
>
> ioctl IVTV_IOC_PAUSE_ENCODE ok
> IVTV_IOC_PAUSE_ENCODE set
>
> ioctl IVTV_IOC_RESUME_ENCODE ok
> IVTV_IOC_RESUME_ENCODE set
>  30, Resumed, bytes_read=83904, bytes_written=83904
>
> I've just tested this against the beta 3508 you posted tonight, still
> doesn't work, but is different.
>
> The bytes read seem a bit too big.
>  30, Resumed, bytes_read=131072, bytes_written=131072
>  31, Resumed, bytes_read=131072, bytes_written=131072
>
> ./vbi2srt/streamoff-test
> Opened output "test.mpeg"
> Opened input "/dev/video0"
>   0, Running, bytes_read=131072, bytes_written=131072
>   1, Running, bytes_read=118720, bytes_written=118720
>   2, Running, bytes_read=28672, bytes_written=28672
>   3, Running, bytes_read=40960, bytes_written=40960
>   4, Running, bytes_read=36864, bytes_written=36864
>   5, Running, bytes_read=28672, bytes_written=28672
>   6, Running, bytes_read=36864, bytes_written=36864
>   7, Running, bytes_read=34816, bytes_written=34816
>   8, Running, bytes_read=38912, bytes_written=38912
>   9, Running, bytes_read=40960, bytes_written=40960
>  10, Running, bytes_read=24576, bytes_written=24576
>  11, Running, bytes_read=34816, bytes_written=34816
>  12, Running, bytes_read=34816, bytes_written=34816
>  13, Running, bytes_read=24640, bytes_written=24640
>  14, Running, bytes_read=1984, bytes_written=1984
>  15, Running, bytes_read=40960, bytes_written=40960
>  16, Running, bytes_read=45056, bytes_written=45056
>  17, Running, bytes_read=34816, bytes_written=34816
>  18, Running, bytes_read=22528, bytes_written=22528
>  19, Running, bytes_read=28672, bytes_written=28672
>
> ioctl IVTV_IOC_PAUSE_ENCODE ok
> IVTV_IOC_PAUSE_ENCODE set
>
> ioctl IVTV_IOC_RESUME_ENCODE ok
> IVTV_IOC_RESUME_ENCODE set
>  30, Resumed, bytes_read=131072, bytes_written=131072
>  31, Resumed, bytes_read=131072, bytes_written=131072
>  32, Resumed, bytes_read=131072, bytes_written=131072
>  33, Resumed, bytes_read=131072, bytes_written=131072
>  34, Resumed, bytes_read=131072, bytes_written=131072
>  35, Resumed, bytes_read=131072, bytes_written=131072
>  36, Resumed, bytes_read=131072, bytes_written=131072
>  37, Resumed, bytes_read=131072, bytes_written=131072
>  38, Resumed, bytes_read=131072, bytes_written=131072
>  39, Resumed, bytes_read=131072, bytes_written=131072
>
> ioctl VIDIOC_STREAMOFF ok
> VIDIOC_STREAMOFF set
>  40, Off, bytes_read=131072, bytes_written=131072
>  41, Off, bytes_read=131072, bytes_written=131072
>  42, Off, bytes_read=131072, bytes_written=131072
>  43, Off, bytes_read=131072, bytes_written=131072
>  44, Off, bytes_read=131072, bytes_written=131072
>  45, Off, bytes_read=77824, bytes_written=77824
>
> The command prompt eventually returns, but the video devices are
> blocked.
>
> BTW It's a PVR-500. The machine is relatively slow P3 733MHz

This last test seems to behave as it should. I agree, the bytes reads 
seem rather high. What does the captured mpeg look like? Is it OK or 
corrupted? What is the CPU load during capturing?

As an comparison: this is what I get with the beta:

Opened output "test.mpeg"
Opened input "/dev/video2"
ioctl IVTV_IOC_S_GOP_END ok
IVTV_IOC_S_GOP_END 1
  0, Running, bytes_read=131072, bytes_written=131072
  1, Running, bytes_read=8128, bytes_written=8128
  2, Running, bytes_read=59392, bytes_written=59392
  3, Running, bytes_read=34816, bytes_written=34816
  4, Running, bytes_read=57344, bytes_written=57344
  5, Running, bytes_read=34816, bytes_written=34816
  6, Running, bytes_read=38912, bytes_written=38912
  7, Running, bytes_read=38912, bytes_written=38912
  8, Running, bytes_read=40960, bytes_written=40960
  9, Running, bytes_read=36864, bytes_written=36864
 10, Running, bytes_read=43008, bytes_written=43008
 11, Running, bytes_read=30720, bytes_written=30720
 12, Running, bytes_read=30720, bytes_written=30720
 13, Running, bytes_read=47104, bytes_written=47104
 14, Running, bytes_read=22592, bytes_written=22592
 15, Running, bytes_read=16320, bytes_written=16320
 16, Running, bytes_read=38912, bytes_written=38912
 17, Running, bytes_read=49152, bytes_written=49152
 18, Running, bytes_read=36864, bytes_written=36864
 19, Running, bytes_read=38912, bytes_written=38912

ioctl IVTV_IOC_PAUSE_ENCODE ok
IVTV_IOC_PAUSE_ENCODE set

ioctl IVTV_IOC_RESUME_ENCODE ok
IVTV_IOC_RESUME_ENCODE set
 30, Resumed, bytes_read=131072, bytes_written=131072
 31, Resumed, bytes_read=96256, bytes_written=96256
 32, Resumed, bytes_read=40960, bytes_written=40960
 33, Resumed, bytes_read=28672, bytes_written=28672
 34, Resumed, bytes_read=26624, bytes_written=26624
 35, Resumed, bytes_read=18432, bytes_written=18432
 36, Resumed, bytes_read=22528, bytes_written=22528
 37, Resumed, bytes_read=18432, bytes_written=18432
 38, Resumed, bytes_read=20480, bytes_written=20480
 39, Resumed, bytes_read=26624, bytes_written=26624

ioctl VIDIOC_STREAMOFF ok
VIDIOC_STREAMOFF set
 40, Off, bytes_read=102464, bytes_written=102464
finished

Regards,

        Hans

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

Reply via email to