Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support transmission on VP9? #434

Open
spf-tanabe opened this issue Aug 12, 2018 · 0 comments
Open

Does not support transmission on VP9? #434

spf-tanabe opened this issue Aug 12, 2018 · 0 comments

Comments

@spf-tanabe
Copy link

Hi @gpolitis @Toumassa

I would like you to tell me about VP9.
I checked with attached sample code, but as long as I check the vp9 package,
transmission on VP9 requires the implementation of the following three.
How about that?

  • These have not been implemented
    • org.jitsi.impl.neomedia.codec.video.vp9.Packetizer
    • org.jitsi.impl.neomedia.codec.video.vp9.VPXDecoder
    • org.jitsi.impl.neomedia.codec.video.vp9.VPXEncoder

public class TestVideoStream {
            public static void main(String[] args) {
                        LibJitsi.start();
                        MediaService mService = LibJitsi.getMediaService();
                        List<MediaDevice> devices = mService.getDevices(MediaType.VIDEO,  MediaUseCase.CALL);
                        MediaDevice device = devices.get(0);
                        MediaStreamImpl mStream = (MediaStreamImpl)  mService.createMediaStream(device);
                        mStream.setDirection(MediaDirection.SENDONLY);
                        MediaFormat format =  mService.getFormatFactory().createMediaFormat("VP9",  MediaFormatFactory.CLOCK_RATE_NOT_SPECIFIED);
                        mStream.addDynamicRTPPayloadType((byte) 99, format);
                        mStream.setFormat(format);
                        mStream.setConnector(new DefaultStreamConnector());
                        mStream.start();
            }
}
  • Error Log
00:16:06:[INFO]:Found NEC HD WebCam as a AVFRAME, class org.jitsi.impl.neomedia.codec.video.AVFrame video capture device.
00:16:06:[INFO]:Warming up SecureRandom...
00:16:06:[INFO]:Warming up SecureRandom finished.
00:16:07:[INFO]:video send resolution: 640x480
00:16:07:[INFO]:video send FPS: default(no restriction)
00:16:07:[SEVERE]:Failed to build a graph for the given custom options.
00:16:07:[SEVERE]:Failed to realize: net.sf.fmj.media.ProcessEngine@1bd940d
00:16:07:[SEVERE]:  Cannot build a flow graph with the customized options:
00:16:07:[SEVERE]:    Unable to transcode format: AVFRAME, 640x480, class org.jitsi.impl.neomedia.codec.video.AVFrame, pixFmt 1, deviceSystemPixFmt 0x32595559
00:16:07:[SEVERE]:      to: VP9/RTP, fmtps={}
00:16:07:[SEVERE]:      outputting to: raw.rtp
00:16:07:[SEVERE]:Error: Unable to realize net.sf.fmj.media.ProcessEngine@1bd940d
00:16:07:[WARNING]:javax.media.ResourceUnavailableEvent[source=com.sun.media.processor.unknown.Handler@1a57272,message=Failed to realize: cannot handle the customized options set on the Processor.
Check the logs for full details.]
00:16:07:[WARNING]:ControllerErrorEvent: javax.media.ResourceUnavailableEvent[source=com.sun.media.processor.unknown.Handler@1a57272,message=Failed to realize: cannot handle the customized options set on the Processor.
Check the logs for full details.]
00:16:07:[WARNING]:javax.media.ControllerClosedEvent[source=com.sun.media.processor.unknown.Handler@1a57272]
00:16:07:[INFO]:video codec/freq: VP9/90000 Hz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant