[sip-comm-dev] Video - blocking thread


#1

Dear video experts,

here "small" :slight_smile: problems when using video.

I start SC (latest SVN), have my webcam plugged in after booting
the system.

- SC is not able to activate the cam. Only when using luvcview first
  and restarting SC then SC can use the cam and displays a preview in
  the media configuration.

- the display in the media configuration is ok - until I click another
  configuration option, for example ZRTP (any other will do also) and
  then switching back to media configuration. The preview window is
  black and I see the following messages:

Buildfile: build.xml

deploy-os-specific-bundles:

run:
     [java]
     [java] Welcome to Felix
     [java] ================
     [java]
     [java] 10:06:23.891 FEIN: fmj.addCaptureDevices() CaptureDevicePlugger: Added civil:/dev/video0
     [java] 10:06:42.974 FEIN: fmj.connect() civil: connect
     [java] 10:06:42.981 FEIN: fmj.connect() Opening /dev/video0
     [java] 10:06:43.157 FEIN: fmj.start() civil: start
     [java] 10:06:43.161 FEIN: fmj.stop() civil: stop
     [java] opened v4l2 device
     [java] Found Philips SPC 1030NC Webcam card with uvcvideo v4l2 driver
     [java] discover_inputs()
     [java] Found sources: 1
     [java] 0 - Camera 1 (2)
     [java] V4L2CaptureStream::dispose()
     [java] opened v4l2 device
     [java] Found Philips SPC 1030NC Webcam card with uvcvideo v4l2 driver
     [java] discover_inputs()
     [java] Found sources: 1
     [java] 0 - Camera 1 (2)
     [java] opened v4l2 device
     [java] Found Philips SPC 1030NC Webcam card with uvcvideo v4l2 driver
     [java] discover_inputs()
     [java] Found sources: 1
     [java] 0 - Camera 1 (2)
     [java] Assigning buffers
     [java] assignMBufs()
     [java] Adding buffers to dirver Queue
     [java] Turning streaming on
     [java] Java_com_lti_civil_impl_jni_NativeCaptureStream_stop, stopping...
     [java] Java_com_lti_civil_impl_jni_NativeCaptureStream_stop, stopped.
     [java] BasicTrackControl:prefetchTrack():96 2 bm = com.sun.media.BasicFilterModule@2916ab8
     [java] BasicTrackControl:prefetchTrack():96 2 bm = com.sun.media.BasicRendererModule@2c6fd560
     [java] BasicRendererModule.doPrefetch:155 Render : true
     [java] BasicRenderModule.doPrefetch:159 Render : com.sun.media.renderer.video.AWTRenderer@503f0b70
     [java] 10:06:43.343 FEIN: fmj.stop() civil: stop
     [java] 10:06:43.344 FEIN: fmj.start() civil: start
     [java] 10:06:51.987 FEIN: fmj.stop() civil: stop
     [java] Capturing started
     [java] Java_com_lti_civil_impl_jni_NativeCaptureStream_stop, stopping...
     [java] Java_com_lti_civil_impl_jni_NativeCaptureStream_stop, stopped.
     [java] 10:06:51.989 FEIN: fmj.stop() civil: stop
     [java] 10:06:51.990 FEIN: fmj.stop() civil: stop
     [java] 10:06:51.992 FEIN: fmj.disconnect() civil: disconnect
     [java] 10:06:51.993 FEIN: fmj.stop() civil: stop
     [java] stopping capturing
     [java] stopping streaminfg
     [java] V4L2CaptureStream::dispose()
     [java] Releasing buffers
     [java] capture stopped
     [java] V4L2CaptureStream::dispose: waiting for thread to stop
     [java] V4L2CaptureStream::dispose: thread stopped
     [java] 10:06:54.239 FEIN: fmj.connect() civil: connect
     [java] 10:06:54.242 FEIN: fmj.connect() Opening /dev/video0
     [java] 10:06:54.286 FEIN: fmj.start() civil: start
     [java] 10:06:54.341 FEIN: fmj.stop() civil: stop
     [java] opened v4l2 device
     [java] Found Philips SPC 1030NC Webcam card with uvcvideo v4l2 driver
     [java] discover_inputs()
     [java] Found sources: 1
     [java] 0 - Camera 1 (2)
     [java] opened v4l2 device
     [java] Found Philips SPC 1030NC Webcam card with uvcvideo v4l2 driver
     [java] discover_inputs()
     [java] Found sources: 1
     [java] 0 - Camera 1 (2)
     [java] Assigning buffers
     [java] assignMBufs()
     [java] Adding buffers to dirver Queue
     [java] Turning streaming on
     [java] Java_com_lti_civil_impl_jni_NativeCaptureStream_stop, stopping...
     [java] Java_com_lti_civil_impl_jni_NativeCaptureStream_stop, stopped.
     [java] 10:06:54.373 SCHWERWIEGEND: lti-civil.run() com.lti.civil.CaptureException: Not a JPG file ?
     [java] : 0
     [java] com.lti.civil.CaptureException: Not a JPG file ?
     [java] : 0
     [java] at com.lti.civil.impl.jni.NativeCaptureStream.threadMain(Native Method)
     [java] at com.lti.civil.impl.jni.NativeCaptureStream$NativeCaptureStreamThread.run(NativeCaptureStream.java:94)
     [java] BasicTrackControl:prefetchTrack():96 2 bm = com.sun.media.BasicFilterModule@43059849
     [java] BasicTrackControl:prefetchTrack():96 2 bm = com.sun.media.BasicRendererModule@245102ff
     [java] BasicRendererModule.doPrefetch:155 Render : true
     [java] BasicRenderModule.doPrefetch:159 Render : com.sun.media.renderer.video.AWTRenderer@27f40b69
     [java] 10:06:54.505 FEIN: fmj.stop() civil: stop
     [java] 10:06:54.506 FEIN: fmj.start() civil: start
     [java] 10:07:20.131 FEIN: fmj.stop() civil: stop
     [java] Capturing started
     [java] Not a JPG file ?
     [java] : 0
     [java] Java_com_lti_civil_impl_jni_NativeCaptureStream_stop, stopping...
     [java] Java_com_lti_civil_impl_jni_NativeCaptureStream_stop, stopped.
     [java] 10:07:20.133 FEIN: fmj.stop() civil: stop
     [java] 10:07:20.135 FEIN: fmj.stop() civil: stop
     [java] 10:07:20.136 FEIN: fmj.disconnect() civil: disconnect
     [java] 10:07:20.137 FEIN: fmj.stop() civil: stop
     [java] V4L2CaptureStream::dispose()
     [java] V4L2CaptureStream::dispose: waiting for thread to stop

Well, I then have to use "kill -9 ... " to really kill SC's java process. The waiting for
the thread block SC completely.

I use OpenSuse 11.2, KDE 4.3.1, Sun Java 1.6.0_18

WDYT ?

Regards,
Werner

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net