1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

miracle-wfdctl: encode audio with voaacenc instead of avenc_aac to get

closer to WFD spec
This commit is contained in:
Derek Dai 2017-03-17 22:46:41 +08:00
parent 49f3e5fbaa
commit 5532bf14d1
No known key found for this signature in database
GPG key ID: E109CC97553EF009

View file

@ -676,29 +676,33 @@ static int wfd_out_session_create_pipeline(struct wfd_session *s)
*tmp ++ = NULL; *tmp ++ = NULL;
} }
/*if(*os->audio_dev) {*/ if(*os->audio_dev) {
/*for(tmp = pipeline_desc; *tmp; ++tmp);*/ for(tmp = pipeline_desc; *tmp; ++tmp);
/**tmp ++ = "pulsesrc";*/ *tmp ++ = "pulsesrc";
/**tmp ++ = "do-timestamp=true";*/ *tmp ++ = "do-timestamp=true";
/**tmp ++ = "client-name=miraclecast";*/ *tmp ++ = "client-name=miraclecast";
/**tmp ++ = "device=";*/ *tmp ++ = "device=";
/**tmp ++ = quote_str(os->audio_dev, audio_dev, sizeof(audio_dev));*/ *tmp ++ = quote_str(os->audio_dev, audio_dev, sizeof(audio_dev));
/**tmp ++ = "!";*/ *tmp ++ = "!";
/**tmp ++ = "audioconvert";*/ *tmp ++ = "voaacenc";
/**tmp ++ = "!";*/ *tmp ++ = "mark-granule=true";
/**tmp ++ = "audio/x-raw,";*/ *tmp ++ = "hard-resync=true";
/**tmp ++ = "rate=48000,";*/ *tmp ++ = "tolerance=40";
/**tmp ++ = "channels=2";*/ *tmp ++ = "!";
/**tmp ++ = "!";*/ *tmp ++ = "audio/mpeg,";
/**tmp ++ = "avenc_aac";*/ *tmp ++ = "rate=48000,";
/**tmp ++ = "!";*/ *tmp ++ = "channels=2,";
/**tmp ++ = "queue";*/ *tmp ++ = "stream-format=adts,";
/*[>*tmp ++ = "max-size-buffers=0";<]*/ *tmp ++ = "base-profile=lc";
/*[>*tmp ++ = "max-size-bytes=0";<]*/ *tmp ++ = "!";
/**tmp ++ = "!";*/ *tmp ++ = "queue";
/**tmp ++ = "muxer.";*/ *tmp ++ = "max-size-buffers=0";
/**tmp ++ = NULL;*/ *tmp ++ = "max-size-bytes=0";
/*}*/ *tmp ++ = "max-size-time=0";
*tmp ++ = "!";
*tmp ++ = "muxer.";
*tmp ++ = NULL;
}
/* bad pratice, but since we are in the same process, /* bad pratice, but since we are in the same process,
I think this is the only way to do it */ I think this is the only way to do it */