setInputDevice was never called

preferencesAboutTextFull
Clément Fauconnier 7 years ago
parent bde9c947bd
commit 976938b758
  1. 5
      src/podcast/ffmpeg/UBFFmpegVideoEncoder.cpp

@ -369,6 +369,8 @@ bool UBFFmpegVideoEncoder::init()
connect(mAudioInput, SIGNAL(dataAvailable(QByteArray)),
this, SLOT(onAudioAvailable(QByteArray)));
mAudioInput->setInputDevice(audioRecordingDevice());
if (!mAudioInput->init()) {
setLastErrorMessage("Couldn't initialize audio input");
return false;
@ -397,6 +399,9 @@ bool UBFFmpegVideoEncoder::init()
c->channel_layout = AV_CH_LAYOUT_STEREO;
c->channels = av_get_channel_layout_nb_channels(c->channel_layout);
//deprecated on ffmpeg 4
c->strict_std_compliance = -2;// Enable use of experimental codec
//https://trac.ffmpeg.org/wiki/Encode/H.264#Profile
//Omit this unless your target device only supports a certain profile
//(see https://trac.ffmpeg.org/wiki/Encode/H.264#Compatibility).

Loading…
Cancel
Save