Hey everybody,

i was just wondering, did any body try MPEG1 recently?

i just tried it and it looked broken to me.

i am using rc2.n and ntsc/352x240 streamtype = IVTV_STREAM_MPEG1.

well, passthrough already seems broken with non full resolution&MPEG1 
turned on. it works with 352x256&MPEG2. even though i dont understand why 
the codec settings should affect passthrough.

when using passthrough the upper half of the screen shows the live picture, 
the lower half a alternating two still frames of the picture that was there 
before 
switching to a lower resolution.

actually the recorded mpeg1 video looks exactly like that.
you might want to take a look :
http://www.okkiel.de/download/mpeg1-broken.mpg

my code looks like this

i first get the current codec/format settings and alter then alter them like 
this

 fmt.fmt.pix.width = 352;
 fmt.fmt.pix.height = 240;

codec_settings.stream_type = IVTV_STREAM_MPEG1;
     

  codec_settings.audio_bitmask = audio_bitmask;
  rc = 0;
  rc = ioctl (fd,IVTV_IOC_PASSTHROUGH,&rc);

  if ( rc < 0 )
  {
    logger ("couldn't disable passthrough",1 );
  }


  logger (" ioctl S_CODEC",2);
  rc = ioctl ( fd,IVTV_IOC_S_CODEC, &codec_settings );
  if ( rc < 0 )
  {
    logger ("couldn't set video codec options",1 );
    close ( fd );
    return (-1);


  }
  rc = ioctl ( fd,VIDIOC_S_FMT, &fmt );
  if ( rc < 0 )
  {
    logger ("couldn't set video format",1 );
    close ( fd );
    return (-1);


  }

thanks,

ben 




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
ivtv-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/ivtv-devel

Reply via email to