MPEG PS issues
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 ?
Signature · 8 lines
CAND Frederic Product Manager ANEVIA -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 47 lines · Frederic CAND
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);
structv4l2_ext_controlsmc;
structv4l2_ext_controlctrls[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);
Quoted 1 line
Anyone having troubles with VLC after 30 minutes ?
hey all, you can forget about this
my computer had troubles
Signature · 8 lines
CAND Frederic Product Manager ANEVIA -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list