> Hello,
> I am using the ivtv driver on openSuse 10.2 and using the dd command to
> play my mpg videos to a Hauppage WinTV-350. My client has a database of
> several thousand video clips already rendered and they play fine except
> for the last second or two of the video is always clipped. All of the
> videos have a very short fade to black but since a small part is clipped
> then each video ends very abruptly and doesn't look nice. I have tried
> using the cat command but it has the same results. Just wonder if anyone
> else had ever encountered a similar problem.

You can't use dd or cat for that: when cat reaches the end of the file it
will exit, immediately closing the /dev/video16 file descriptor as well.
Which means that the last 1-2 seconds that were still buffered in the
driver and on the PVR-350 itself are never shown.

You need to write a custom playback utility that uses the video_command
once the end-of-file has been reached:

        #include "video.h"

        struct video_command cmd;
        memset(&cmd, 0, sizeof(cmd));
        cmd.cmd = VIDEO_CMD_STOP;
        cmd.flags = VIDEO_CMD_STOP_TO_BLACK;
        ioctl(fout, VIDEO_COMMAND, &cmd);

This will actually wait until all the pending video data has been displayed.

Regards,

      Hans


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

Reply via email to