嘿男人和女孩:)好吧所以我运行这个项目 - > http://www.helyar.net/2009/libvlc-media-player-in-c-part-2/并且它工作得很好(他使用.net 2.0)然而,当我尝试任何高于3.5的任何东西时,它给出了 - >无法加载DLL'libvlc':找不到指定的模块.(来自HRESULT的异常:0x8007007E)
是否有任何解决方法有人已经做了这个排序?非常感谢ppl:D:D:D:D
如何在命令行中使用vlc将视频拆分或剪切成5分钟的卡盘?我知道如何手动操作我只是去查看 - >高级控件并按下记录以指示开始时间并再次按下记录以指示停止时间现在是否有办法在命令行中执行此操作?如果是这样我们还能让vlc每隔5分钟自动剪切/分割视频吗?
我正在尝试做这样的事情: 使用libvlc smem从视频中获取帧并将其转换为opencv Mat。(C ++)
我不太明白这部分中的代码:
sprintf(smem_options
, "#transcode{vcodec=RV24}:smem{"
"video-prerender-callback=%lld,"
"video-postrender-callback=%lld,"
"video-data=%lld,"
"no-time-sync},"
, (long long int)(intptr_t)(void*)&cbVideoPrerender
, (long long int)(intptr_t)(void*)&cbVideoPostrender //This would normally be useful data, 100 is just test data
, (long long int)200 //Test data
);
Run Code Online (Sandbox Code Playgroud)
它说video-data=%lld
。这是什么意思?它从哪里获取数据?
我正在使用文件对话框获取文件。我可以将该文件传递给视频数据吗?
我正在接收多个x264 RTSP流,我正在使用libVLC解码它们,我想使用硬件加速来完成任务.
如果我在Windows上使用VLC播放器本身,我可以在简单首选项 - >输入/编解码器 - >硬件加速解码中选择"DirectX视频加速(DXVA)2.0",与禁用相比,我可以看到CPU利用率显着下降那个选择.
在C++代码中,我尝试将选项"--avcodec-hw = dxva2"添加到libvlc_new()的参数中,但没有运气,硬件加速似乎没有被使用(我想说解码比50%慢)在dxva2上的播放器上)
嗨,我正在尝试使用MobileVLCKit.因为我正在使用如下的播客'MobileVLCKit'
pod 'MobileVLCKit'
Run Code Online (Sandbox Code Playgroud)
然后我编译我的项目它显示下面有很多错误是我的错误日志
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find(wchar_t const*, unsigned long, unsigned long) const", referenced from:
TagLib::String::find(TagLib::String const&, int) const in MobileVLCKit(tstring.cpp.o)
TagLib::String::split(TagLib::String const&) const in MobileVLCKit(tstring.cpp.o)
dash::mpd::BasicCMParser::parseCommonAttributesElements(dash::xml::Node*, dash::mpd::CommonAttributesElements*, dash::mpd::CommonAttributesElements*) const in MobileVLCKit(libdash_plugin_la-BasicCMParser.o)
Run Code Online (Sandbox Code Playgroud)
我尝试使用体系结构x86_64,但仍然显示很多错误.我不知道如何清除这些错误.任何人都可以帮助我
我正在使用2个vlc库AxAXVLC和AXVLC.所以我可以在我的c#winform应用程序中添加vlc控件.在这个应用程序中,我可以通过添加播放列表和调用API播放来播放rtsp视频流.但我不能播放视频文件.播放视频流的代码如下.这是工作.请帮我播放视频文件.
axVLCPlugin21.playlist.items.clear();
string Options3 = ":rtsp-caching=250"; //Cache in mS
int stream1 = axVLCPlugin21.playlist.add("rtsp://10.1.114.51:8554/test", axVLCPlugin21, Options3);
axVLCPlugin21.playlist.playItem(stream1);
Run Code Online (Sandbox Code Playgroud) 在这里,我已经libvlc
成功构建了android并将其嵌入到react native项目中。
音频和视频流都可以正常工作。
事情让我不解的是视频内容的尺寸不适合surface
和view
好,虽然我已经设置它们MATCH_PARENT
。
这是一些代码实现。
package org.videolan;
import android.net.Uri;
import android.app.Activity;
import android.content.Context;
import android.view.SurfaceView;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import com.facebook.react.bridge.ReactContext;
import org.videolan.libvlc.LibVLC;
import org.videolan.libvlc.Media;
import org.videolan.libvlc.MediaPlayer;
import java.util.ArrayList;
public class RCTVLCPlayerView extends FrameLayout {
private final Context _context;
private SurfaceView surfaceView;
private LibVLC libVLC = null;
private MediaPlayer mediaPlayer;
private Activity activity = null;
ArrayList<String> options = new ArrayList<>();
public SurfaceView getPlayer() {
return this.surfaceView;
}
public RCTVLCPlayerView(Context context) {
super(context); …
Run Code Online (Sandbox Code Playgroud)