mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
webcam add videoconvert.
This commit is contained in:
parent
64c3449322
commit
09cb1e9c6a
@ -127,16 +127,19 @@ func New(desktop types.DesktopManager, config *config.Capture) *CaptureManagerCt
|
|||||||
fmt.Sprintf("! application/x-rtp, payload=%d, encoding-name=VP8-DRAFT-IETF-01 ", codec.VP8().PayloadType) +
|
fmt.Sprintf("! application/x-rtp, payload=%d, encoding-name=VP8-DRAFT-IETF-01 ", codec.VP8().PayloadType) +
|
||||||
"! rtpvp8depay " +
|
"! rtpvp8depay " +
|
||||||
"! decodebin " +
|
"! decodebin " +
|
||||||
|
"! videoconvert " +
|
||||||
"! v4l2sink device=/dev/video0",
|
"! v4l2sink device=/dev/video0",
|
||||||
codec.VP9().Name: "appsrc format=time is-live=true do-timestamp=true name=src " +
|
codec.VP9().Name: "appsrc format=time is-live=true do-timestamp=true name=src " +
|
||||||
"! application/x-rtp " +
|
"! application/x-rtp " +
|
||||||
"! rtpvp9depay " +
|
"! rtpvp9depay " +
|
||||||
"! decodebin " +
|
"! decodebin " +
|
||||||
|
"! videoconvert " +
|
||||||
"! v4l2sink device=/dev/video0",
|
"! v4l2sink device=/dev/video0",
|
||||||
codec.H264().Name: "appsrc format=time is-live=true do-timestamp=true name=src " +
|
codec.H264().Name: "appsrc format=time is-live=true do-timestamp=true name=src " +
|
||||||
"! application/x-rtp " +
|
"! application/x-rtp " +
|
||||||
"! rtph264depay " +
|
"! rtph264depay " +
|
||||||
"! decodebin " +
|
"! decodebin " +
|
||||||
|
"! videoconvert " +
|
||||||
"! v4l2sink device=/dev/video0",
|
"! v4l2sink device=/dev/video0",
|
||||||
}, "webcam"),
|
}, "webcam"),
|
||||||
microphone: streamSrcNew(map[string]string{
|
microphone: streamSrcNew(map[string]string{
|
||||||
|
Loading…
Reference in New Issue
Block a user