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:
parent
49f3e5fbaa
commit
5532bf14d1
1 changed files with 27 additions and 23 deletions
|
@ -676,29 +676,33 @@ static int wfd_out_session_create_pipeline(struct wfd_session *s)
|
|||
*tmp ++ = NULL;
|
||||
}
|
||||
|
||||
/*if(*os->audio_dev) {*/
|
||||
/*for(tmp = pipeline_desc; *tmp; ++tmp);*/
|
||||
/**tmp ++ = "pulsesrc";*/
|
||||
/**tmp ++ = "do-timestamp=true";*/
|
||||
/**tmp ++ = "client-name=miraclecast";*/
|
||||
/**tmp ++ = "device=";*/
|
||||
/**tmp ++ = quote_str(os->audio_dev, audio_dev, sizeof(audio_dev));*/
|
||||
/**tmp ++ = "!";*/
|
||||
/**tmp ++ = "audioconvert";*/
|
||||
/**tmp ++ = "!";*/
|
||||
/**tmp ++ = "audio/x-raw,";*/
|
||||
/**tmp ++ = "rate=48000,";*/
|
||||
/**tmp ++ = "channels=2";*/
|
||||
/**tmp ++ = "!";*/
|
||||
/**tmp ++ = "avenc_aac";*/
|
||||
/**tmp ++ = "!";*/
|
||||
/**tmp ++ = "queue";*/
|
||||
/*[>*tmp ++ = "max-size-buffers=0";<]*/
|
||||
/*[>*tmp ++ = "max-size-bytes=0";<]*/
|
||||
/**tmp ++ = "!";*/
|
||||
/**tmp ++ = "muxer.";*/
|
||||
/**tmp ++ = NULL;*/
|
||||
/*}*/
|
||||
if(*os->audio_dev) {
|
||||
for(tmp = pipeline_desc; *tmp; ++tmp);
|
||||
*tmp ++ = "pulsesrc";
|
||||
*tmp ++ = "do-timestamp=true";
|
||||
*tmp ++ = "client-name=miraclecast";
|
||||
*tmp ++ = "device=";
|
||||
*tmp ++ = quote_str(os->audio_dev, audio_dev, sizeof(audio_dev));
|
||||
*tmp ++ = "!";
|
||||
*tmp ++ = "voaacenc";
|
||||
*tmp ++ = "mark-granule=true";
|
||||
*tmp ++ = "hard-resync=true";
|
||||
*tmp ++ = "tolerance=40";
|
||||
*tmp ++ = "!";
|
||||
*tmp ++ = "audio/mpeg,";
|
||||
*tmp ++ = "rate=48000,";
|
||||
*tmp ++ = "channels=2,";
|
||||
*tmp ++ = "stream-format=adts,";
|
||||
*tmp ++ = "base-profile=lc";
|
||||
*tmp ++ = "!";
|
||||
*tmp ++ = "queue";
|
||||
*tmp ++ = "max-size-buffers=0";
|
||||
*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,
|
||||
I think this is the only way to do it */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue