public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [HVR 1300] MPEG PS issues
@ 2008-05-26  9:50 Frederic CAND
  2008-05-28  8:20 ` Frederic CAND
  0 siblings, 1 reply; 2+ messages in thread
From: Frederic CAND @ 2008-05-26  9:50 UTC (permalink / raw)
  To: video4linux-list

Dear all,
I post here cause I'm not sure everyone read my post in v4l-dvb.
Just copy/pasting my troubles here :

anybody
encountering picture / sound issues with VLC after some time running
(let's say half an hour) reading the MPEG PS output ?
I tried many different v4l-dvb tarballs, including latest repository,
but I could not make it work more that 30 minutes (or 20, it depends).
Stopping VLC and restarting it "solves" this issue but I'm looking for
someone who could confirm this behaviour, and then maybe fix this.
My VLC works fine , btw , with other MPEG PS or TS live streaming.

Other thing : I just use VLC to read the MPEG PS, not to setup the card. 
I do this with my own (simple) code which ressembles to this :

/* open devices */
fd1 = open("/dev/video0", 0_RDWR);
fd2 = open("/dev/video1", 0_RDWR);

/* prepare input/format */
int i = 1;
int j = V4L2_STD_SECAM;
ioctl(fd1, VIDIOC_S_INPUT, &i);
ioctl(fd1, VIDIOC_S_STD, &j);
struct v4l2_ext_controls mc;
struct v4l2_ext_control ctrls[32];

/* mpeg settings */
mc.ctrl_class = V4L2_CTRL_CLASS_MPEG;
mc.controls = ctrls;
i = 0;
mc.ctrl_class = V4L2_CTRL_CLASS_MPEG;
ctrls[i].id = V4L2_CID_MPEG_VIDEO_BITRATE_MODE;
ctrls[i++].value = V4L2_MPEG_VIDEO_BITRATE_MODE_CBR;
ctrls[i].id = V4L2_CID_MPEG_AUDIO_ENCODING;
ctrls[i++].value = V4L2_MPEG_AUDIO_ENCODING_LAYER_2;
ctrls[i].id = V4L2_CID_MPEG_AUDIO_L2_BITRATE;
ctrls[i++].value = V4L2_MPEG_AUDIO_L2_BITRATE_256K;
ctrls[i].id = V4L2_CID_MPEG_VIDEO_BITRATE;
ctrls[i++].value = 4096 * 1000;
ctrls[i].id = V4L2_CID_MPEG_VIDEO_BITRATE_PEAK;
ctrls[i++].value = 4096 * 1000;
ctrls[i].id = V4L2_CID_MPEG_VIDEO_ASPECT;
ctrls[i++].value = V4L2_MPEG_VIDEO_ASPECT_4x3;
mc.count = i;
ioctl(fd2, VIDIOC_S_EXT_CTRLS, &mc);

Anyone having troubles with VLC after 30 minutes ?
-- 
CAND Frederic
Product Manager
ANEVIA

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-28  8:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-26  9:50 [HVR 1300] MPEG PS issues Frederic CAND
2008-05-28  8:20 ` Frederic CAND

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox