Hi,

Yipii ! I can now successfully record from my camera !
What helped was to modify the PipelineFactory.getBluecherryPipeline() method
like this:
(Class located in
/opt/matterhorn/capture-agent/matterhorn-source/modules/matterhorn-capture-agent-impl/src/main/java/org/opencastproject/capture/pipeline/PipelineFactory.java)
    ...
    // added/modified the highlighted parts, by AK
    fpsCaps = Caps.fromString("video/x-raw-rgb");
    fpsfilter.setCaps(fpsCaps);

    Element ffmpegcolorspace = ElementFactory.make("ffmpegcolorspace",
null);

    pipeline.addMany(v4l2src, queue, videorate, fpsfilter, ffmpegcolorspace,
enc, muxer, filesink);
    logger.info("Set rgb and colorspace by AK");
    ...
    if (confidence) {
      boolean trace =
Boolean.valueOf(properties.getProperty(CaptureParameters.CAPTURE_CONFIDENCE_DEBUG));
      if (!VideoMonitoring.addVideoMonitor(pipeline, fpsfilter,
ffmpegcolorspace, interval, imageloc, device, trace)) {
       logger.info("VideoMonitor wont match - AK");
       error = formatPipelineError(captureDevice, fpsfilter,
ffmpegcolorspace);
      }
    } else {
      if (!fpsfilter.link(ffmpegcolorspace))
        error = formatPipelineError(captureDevice, fpsfilter,
ffmpegcolorspace);
    }
    if (!ffmpegcolorspace.link(enc))
      error = formatPipelineError(captureDevice, ffmpegcolorspace, enc);
    
    ....

So, this part is solved after like 25 hours of research, trying and failing,
but thats just the way is is.
Thanks again for your hints and tricks !

Btw. if my camera.mpg shows fine now (fluent), but my screen.mpg seems to be
like on 2 pictures per second (sometimes), ie. the flow is usually not a
flow but sometimes a jump from picture to picture, what can I look at first
to detect/correct the cause, in your experience ? (example:
http://derpi.tuwien.ac.at/krieger/Screen.mpg )

Regards, Andreas


shinymonk wrote:
> 
> Hi Greg, Adam, Ruben,
> 
> Answers inline ;)
> 
>>> The camera shows OK when starting VLC-Player after fresh boot of Ubuntu
>>> 10.4.1.LTS.
>>> Starting a simple capture results in a green capture with a very thin
>>> stripe
>>> on the top showing camera content (ie. contents change with the moving
>>> of
>>> the camera).
>>> And after that capture, VLC-Player won't display the camera anymore,
>>> instead
>>> we see the green picture described above.
>>This is a symptom of an incorrect standard setting (PAL vs NTSC)
> 
>> When you installed the system, did it prompt you for the capture
>> standard?  Which did you choose?
> I chose 5=PAL and 1=Composite0, and the file
> /opt/matterhorn/capture-agent/device_config.sh
> shows this, which I understand  to be correct:
> 
> #! /bin/bash
> v4l2-ctl -s 4 -d /dev/camera
> v4l2-ctl -d /dev/camera -i 0
> 
>>> To me it seems, that the capture client somehow modifies the v4l2
>>> settings,
>>> since VLC shows OK before the capture, but bad after the capture. How
>>> can
>>> this be prevented or circumvented ?
> 
>> So the card works correctly on bootup?  There is a file at (by default)
>> /opt/matterhorn/capture-agent/device_config.sh which controls what the
>> camera is set to.  If this file is blank then Matterhorn will not change
>> any v4l settings. 
> 
> The card works correctly directly after bootup, and even with matterhorn
> started (which happens on bootup):
> I can see video on VLC (v4l2://).
> But with starting a capture 2 things happen:
> 1. The capture is green (except for a thin line at the right upper corner
> showing moving content)
> 2. A subsequent call to VLC (v4l2://) also gives me a green picture.
> 
> Only remedy atm is
> to switch over to NTSC (before capture) and then back to PAL (during
> capture) as mentioned in my previous post; then the capture will be all
> right (lest the few seconds in the beginngin NTSC was set)
> 
> As posted in my answer to Ruben I confirm this to be Adam Mckenzie's issue
> https://opencast.jira.com/browse/MH-5404,
> and hope for some soon fix/workaround.
> 
> ATM I'm checking the matterhorn Trunk version, whether it does any better,
> and will report on any success/failure.
> -> No, also green videos is all I see. Sigh.
> 
> Greetings and lots of thanks for the detailed support and ideas, Andreas
> 

-- 
View this message in context: 
http://opencast.3480289.n2.nabble.com/Matterhorn-users-Problem-with-customProducer-in-capture-impl-configurationmanager-properties-tp5970958p6008507.html
Sent from the Matterhorn Users mailing list archive at Nabble.com.
_______________________________________________
Matterhorn-users mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn-users

Reply via email to