public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Frederic CAND <frederic.cand@anevia.com>
To: video4linux-list@redhat.com
Subject: Re: [HVR 1300] MPEG PS issues
Date: Wed, 28 May 2008 10:20:42 +0200	[thread overview]
Message-ID: <483D15DA.7020901@anevia.com> (raw)
In-Reply-To: <483A87CA.6070408@anevia.com>

Frederic CAND a écrit :
> 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 ?
hey all, you can forget about this
my computer had troubles

-- 
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

      reply	other threads:[~2008-05-28  8:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-26  9:50 [HVR 1300] MPEG PS issues Frederic CAND
2008-05-28  8:20 ` Frederic CAND [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=483D15DA.7020901@anevia.com \
    --to=frederic.cand@anevia.com \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox