[sip-comm-dev] Re: svn commit: r7120 - trunk/src: native/linux/video4linux2 net/java/sip/communicator/impl/neomedia net/java/sip/communicator/impl/neomedia/codec net/...


#1

Hi Lubo,

using native V4L2 is really a good move - for Linux this means we shall
use it as default for video instead of lti-civil (which is broken for Linux).

Just a short feedback: I compiled the native stuff on my system (Linux-64)
and this works like a charm. It detects my video camera and checks its format.
Because my camera uses the YUYV format it is not registered yet. I'm sure the
support of other formats are already on your road map :slight_smile: .

Thanks for this important improvement.

Regards,
Werner

路路路

Am 16.05.2010 04:36, schrieb lubomir_m@dev.java.net:

Author: lubomir_m
Date: 2010-05-16 02:36:43+0000
New Revision: 7120

Added:
聽聽聽trunk/src/native/linux/video4linux2/
聽聽聽trunk/src/native/linux/video4linux2/Makefile
聽聽聽trunk/src/native/linux/video4linux2/net_java_sip_communicator_impl_neomedia_jmfext_media_protocol_video4linux2_Video4Linux2.c
聽聽聽trunk/src/native/linux/video4linux2/net_java_sip_communicator_impl_neomedia_jmfext_media_protocol_video4linux2_Video4Linux2.h
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/codec/video/FinalizableAVFrame.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/device/Video4Linux2Auto.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/ByteBufferPool.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/video4linux2/
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/video4linux2/DataSource.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/video4linux2/Video4Linux2.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/video4linux2/Video4Linux2Stream.java
Modified:
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/MediaServiceImpl.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/codec/Constants.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/codec/video/AVFrameFormat.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/codec/video/ByteBuffer.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/codec/video/FFmpeg.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/device/DeviceConfiguration.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/device/JmfDeviceDetector.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/device/QuickTimeAuto.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPullBufferCaptureDevice.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPullBufferStream.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/imgstreaming/DataSource.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/imgstreaming/ImageStream.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/quicktime/DataSource.java
聽聽聽trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/quicktime/QuickTimeStream.java

Log:
Implements a video CaptureDevice on Linux using the Video for Linux Two API Specification.

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


#2

Hi Werner,

Thank you very much!

I tried to add support for YUYV in r7124 but I haven't been able to
test it because I don't have such a camera.

Best regards,
Lubo

路路路

On Sun, May 16, 2010 at 12:04 PM, Werner Dittmann <Werner.Dittmann@t-online.de> wrote:

Hi Lubo,

using native V4L2 is really a good move - for Linux this means we shall
use it as default for video instead of lti-civil (which is broken for Linux).

Just a short feedback: I compiled the native stuff on my system (Linux-64)
and this works like a charm. It detects my video camera and checks its format.
Because my camera uses the YUYV format it is not registered yet. I'm sure the
support of other formats are already on your road map :slight_smile: .

Thanks for this important improvement.

Regards,
Werner

Am 16.05.2010 04:36, schrieb lubomir_m@dev.java.net:

Author: lubomir_m
Date: 2010-05-16 02:36:43+0000
New Revision: 7120

Added:
trunk/src/native/linux/video4linux2/
trunk/src/native/linux/video4linux2/Makefile
trunk/src/native/linux/video4linux2/net_java_sip_communicator_impl_neomedia_jmfext_media_protocol_video4linux2_Video4Linux2.c
trunk/src/native/linux/video4linux2/net_java_sip_communicator_impl_neomedia_jmfext_media_protocol_video4linux2_Video4Linux2.h
trunk/src/net/java/sip/communicator/impl/neomedia/codec/video/FinalizableAVFrame.java
trunk/src/net/java/sip/communicator/impl/neomedia/device/Video4Linux2Auto.java
trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/ByteBufferPool.java
trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/video4linux2/
trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/video4linux2/DataSource.java
trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/video4linux2/Video4Linux2.java
trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/video4linux2/Video4Linux2Stream.java
Modified:
trunk/src/net/java/sip/communicator/impl/neomedia/MediaServiceImpl.java
trunk/src/net/java/sip/communicator/impl/neomedia/codec/Constants.java
trunk/src/net/java/sip/communicator/impl/neomedia/codec/video/AVFrameFormat.java
trunk/src/net/java/sip/communicator/impl/neomedia/codec/video/ByteBuffer.java
trunk/src/net/java/sip/communicator/impl/neomedia/codec/video/FFmpeg.java
trunk/src/net/java/sip/communicator/impl/neomedia/device/DeviceConfiguration.java
trunk/src/net/java/sip/communicator/impl/neomedia/device/JmfDeviceDetector.java
trunk/src/net/java/sip/communicator/impl/neomedia/device/QuickTimeAuto.java
trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPullBufferCaptureDevice.java
trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPullBufferStream.java
trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/imgstreaming/DataSource.java
trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/imgstreaming/ImageStream.java
trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/quicktime/DataSource.java
trunk/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/quicktime/QuickTimeStream.java

Log:
Implements a video CaptureDevice on Linux using the Video for Linux Two API Specification.

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


#3

Hi Lubo,

if I can help you please just give me a hint how to do so. Maybe
I can help you with the coding/testing. I'm not so familiar with
video but I've seen some code that you (or was it Damian) added
to lti-civil to support YUYV. Maybe this yould be re-used somehow?

REgards,
Werner

路路路

Am 16.05.2010 20:40, schrieb Lubomir Marinov:

Hi Werner,

Thank you very much!

I tried to add support for YUYV in r7124 but I haven't been able to
test it because I don't have such a camera.

Best regards,
Lubo

On Sun, May 16, 2010 at 12:04 PM, Werner Dittmann > <Werner.Dittmann@t-online.de> wrote:

Hi Lubo,

using native V4L2 is really a good move - for Linux this means we shall
use it as default for video instead of lti-civil (which is broken for Linux).

Just a short feedback: I compiled the native stuff on my system (Linux-64)
and this works like a charm. It detects my video camera and checks its format.
Because my camera uses the YUYV format it is not registered yet. I'm sure the
support of other formats are already on your road map :slight_smile: .

Thanks for this important improvement.

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


#4

Hi Werner,

Thank you very much! What I meant to ask you with my previous e-mail
was to have you test r7124. By reading FFmpeg YUYV should be handled
in the same way I managed to handle UYVY for my camera i.e. by having
FFmpeg do the conversion. I know you initially tested r7120, then in
response to your report that your camera captures YUYV I committed
r7214.

Best regards,
Lubo

路路路

On Mon, May 17, 2010 at 8:05 PM, Werner Dittmann <Werner.Dittmann@t-online.de> wrote:

Hi Lubo,

if I can help you please just give me a hint how to do so. Maybe
I can help you with the coding/testing. I'm not so familiar with
video but I've seen some code that you (or was it Damian) added
to lti-civil to support YUYV. Maybe this yould be re-used somehow?

REgards,
Werner

Am 16.05.2010 20:40, schrieb Lubomir Marinov:

Hi Werner,

Thank you very much!

I tried to add support for YUYV in r7124 but I haven't been able to
test it because I don't have such a camera.

Best regards,
Lubo

On Sun, May 16, 2010 at 12:04 PM, Werner Dittmann >> <Werner.Dittmann@t-online.de> wrote:

Hi Lubo,

using native V4L2 is really a good move - for Linux this means we shall
use it as default for video instead of lti-civil (which is broken for Linux).

Just a short feedback: I compiled the native stuff on my system (Linux-64)
and this works like a charm. It detects my video camera and checks its format.
Because my camera uses the YUYV format it is not registered yet. I'm sure the
support of other formats are already on your road map :slight_smile: .

Thanks for this important improvement.

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

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


#5

Hi Lubo,

after making the native code (the Makefile is ok here) I kicked
off SC an voila - I had the video support. As a proof look at
the attached screenshot.

The display is fast, no delays between a move and the preview
display, good quality. Previous implementations
were either slower of had less quality. Will the quality become
even better with JAWTRednerer instead of the curretly used
AWTRenderer :wink: .

Regards,
Werner

路路路

Am 17.05.2010 19:11, schrieb Lubomir Marinov:

Hi Werner,

Thank you very much! What I meant to ask you with my previous e-mail
was to have you test r7124. By reading FFmpeg YUYV should be handled
in the same way I managed to handle UYVY for my camera i.e. by having
FFmpeg do the conversion. I know you initially tested r7120, then in
response to your report that your camera captures YUYV I committed
r7214.

Best regards,
Lubo

On Mon, May 17, 2010 at 8:05 PM, Werner Dittmann > <Werner.Dittmann@t-online.de> wrote:

Hi Lubo,

if I can help you please just give me a hint how to do so. Maybe
I can help you with the coding/testing. I'm not so familiar with
video but I've seen some code that you (or was it Damian) added
to lti-civil to support YUYV. Maybe this yould be re-used somehow?

REgards,
Werner

Am 16.05.2010 20:40, schrieb Lubomir Marinov:

Hi Werner,

Thank you very much!

I tried to add support for YUYV in r7124 but I haven't been able to
test it because I don't have such a camera.

Best regards,
Lubo

On Sun, May 16, 2010 at 12:04 PM, Werner Dittmann >>> <Werner.Dittmann@t-online.de> wrote:

Hi Lubo,

using native V4L2 is really a good move - for Linux this means we shall
use it as default for video instead of lti-civil (which is broken for Linux).

Just a short feedback: I compiled the native stuff on my system (Linux-64)
and this works like a charm. It detects my video camera and checks its format.
Because my camera uses the YUYV format it is not registered yet. I'm sure the
support of other formats are already on your road map :slight_smile: .

Thanks for this important improvement.

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

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