I used a camera to select a camera, with videoOutput to render, video well, but there was no voice,
I tried using MediaPlayer instead of camera, there is sound, videoOutput can play video,
I use obs software recorded a video camera, xx. Mp4, playback, a voice, that camera is a voice,
Camera coordinate videoOutput, however, only the picture, there is no sound,
I don't think is camera processing camera voice,
I don't know how to deal with,
Below is a part of the source
Camera {
The property var cameras: QtMultimedia. AvailableCameras
Id: camera1
CaptureMode: Camera. CaptureVideo
DeviceId: cameras [r1 currentCamera] deviceId
}
VideoOutput {
Anchors. The fill: parent
Source: camera1
FillMode: VideoOutput. Stretch
Text Text {id: tt1 y: 0: qsTr (String) (currentCamera) color: "gray"}
The Text {id: tt12 y: 30 Text: qsTr (String (cameras [r1. CurrentCamera]. DisplayName))
Color: "gray"}
}
CodePudding user response:
VideoOutput internal binding only Camera viewfinder, what seems to be no Audio, video videoRecorder did, he is going to collect coding of Audio,CodePudding user response:
Did not see the source code, but the phenomenon is so of,That could change their a viewfinder collecting audio,
Or put the videoRecorder sectional videoOutput go up?
Can you give an idea?
CodePudding user response:
Or recorded while put, put the record on the ramIO, delete again?CodePudding user response:
Can try to do, I didn't try these functions,Record is not recommended to put out, usually, real-time display is to collect real-time flow should be laid hands on him in this way, how about acquisition and gave VideoOutput to broadcast audio and video at the same time,