From 3ee2a14cf6239ab8e0577cee3f50d714aad90719 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 30 Aug 2018 10:05:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3android=E4=B8=8BMediaExtracto?= =?UTF-8?q?r=E6=97=A0=E6=B3=95=E8=A7=A3=E6=9E=90=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtspToRtmpMediaSource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Rtsp/RtspToRtmpMediaSource.cpp b/src/Rtsp/RtspToRtmpMediaSource.cpp index 3d3046fd..bea5ef82 100644 --- a/src/Rtsp/RtspToRtmpMediaSource.cpp +++ b/src/Rtsp/RtspToRtmpMediaSource.cpp @@ -207,13 +207,13 @@ void RtspToRtmpMediaSource::makeMetaData() { if (m_pParser->containVideo()) { metaData.set("width", m_pParser->getVideoWidth()); metaData.set("height", m_pParser->getVideoHeight()); - metaData.set("videocodecid", 7); //h.264 + metaData.set("videocodecid", "avc1"); //h.264 metaData.set("videodatarate", 5000); metaData.set("framerate", m_pParser->getVideoFps()); makeVideoConfigPkt(); } if (m_pParser->containAudio()) { - metaData.set("audiocodecid", 10); //aac + metaData.set("audiocodecid", "mp4a"); //aac metaData.set("audiodatarate", 160); metaData.set("audiosamplerate", m_pParser->getAudioSampleRate()); metaData.set("audiosamplesize", m_pParser->getAudioSampleBit());