无法缓冲视频数据并使用libvlc对其进行流式传输 我试图用C++中的LIVVLC缓冲音频和视频数据,并从缓冲区读取数据。 我的操作系统版本是Ubuntu 16.04 LTS 64位,LibVls版本:2.2.2-5
我希望RV24或RV32使用其原始数据。使用它们,我没有任何视频数据,但我有音频数据。我也看到了类似的问题,我没有在cbVideoPostrender中接收任何数据,也没有对cbVideoPrerender函数进行整型。问题是为什么我没有视频数据?代码应该与中的代码类似。也可以在中找到代码示例无法缓冲视频数据并使用libvlc对其进行流式传输 我试图用C++中的LIVVLC缓冲音频和视频数据,并从缓冲区读取数据。 我的操作系统版本是Ubuntu 16.04 LTS 64位,LibVls版本:2.2.2-5,c++,video-streaming,audio-streaming,libvlc,C++,Video Streaming,Audio Streaming,Libvlc,我希望RV24或RV32使用其原始数据。使用它们,我没有任何视频数据,但我有音频数据。我也看到了类似的问题,我没有在cbVideoPostrender中接收任何数据,也没有对cbVideoPrerender函数进行整型。问题是为什么我没有视频数据?代码应该与中的代码类似。也可以在中找到代码示例 我是这个领域的新手,我会感谢任何帮助 问题是什么?请提供相关的C++代码片段作为一个。为什么我没有视频数据,使用RV24和RV32视频预告器和PoSTRANDER函数不工作,请把相关代码作为一个链接,而不
我是这个领域的新手,我会感谢任何帮助 问题是什么?请提供相关的C++代码片段作为一个。为什么我没有视频数据,使用RV24和RV32视频预告器和PoSTRANDER函数不工作,请把相关代码作为一个链接,而不是链接到第三方站点。目前还不清楚你在问什么,问题是什么。
int StreamGrabberSetMedia(VlcStreamGrabber * pGrabber, libvlc_media_t * pMedia, bool paceControl)
{
char vcodec[] = "RV32";
char acodec[] = "s16l";
char pszOptions[1024] = {0};
libvlc_event_manager_t * pEventManager = NULL;
if (pGrabber == NULL || pMedia == NULL) return VLC_ENOITEM;
sprintf_s(
pszOptions,
1024,
":sout=#transcode{"
"vcodec=%s,"
"acodec=%s,"
"threads=2,"
"}:smem{"
"%s,"
"audio-prerender-callback=%lld,"
"audio-postrender-callback=%lld,"
"video-prerender-callback=%lld,"
"video-postrender-callback=%lld,"
"audio-data=%lld,"
"video-data=%lld"
"}",
vcodec,
acodec,
(paceControl ? "time-sync" : "no-time-sync"),
(long long int)(intptr_t)(void*) &AudioPrerender,
(long long int)(intptr_t)(void*) &AudioPostrender,
(long long int)(intptr_t)(void*) &VideoPrerender,
(long long int)(intptr_t)(void*) &VideoPostrender,
(long long int)(intptr_t)(void*) pGrabber,
(long long int)(intptr_t)(void*) pGrabber
);
}