vlc

Applying Video Filters Using LibVLC with Android

*爱你&永不变心* 提交于 2020-05-29 10:13:27
问题 Using LibVLC, I successfully added a VLC player to an Android app. However, I am not sure whether it is possible to apply video filters to a VLC player using LibVLC. Based on questions such as this, I suspect it might not be built-in for any filters, though I am not sure. Currently, I am attempting to pass in the video filter commands in the playMRL function, though I am simply receiving an unfiltered video. Below is the relevant code: String videoOptions[] = {"--video-filter=invert"}; this

How do I load the vlcj library?

自作多情 提交于 2020-05-17 07:15:06
问题 I am trying to play youtube video using vlcj. "NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName()," C:\\Program Files \\VideoLAN\\VLC");" So I am trying to load a library using this code. However, the libvlc.dll and libvlccore.dll files could not be loaded due to an error. ` java.lang.RuntimeException: Failed to load the native library. The error was "Unable to load library 'libvlc': Native library (win32-x86-64/libvlc.dll) not found in resource path ([file:/C:/Program%20Files

Getting current frame from android vlc media player

蓝咒 提交于 2020-05-14 12:17:43
问题 I'm using VLC-Android in order to play H264 RTSP live stream in my android application, the following code successfully renders the stream video onto the surface view: MediaPlayer mMediaPlayer = new MediaPlayer(VLCInstance.get()); SurfaceView mSurfaceView = (SurfaceView) findViewById(R.id.player); final IVLCVout vlcVout = Constants.mMediaPlayer.getVLCVout(); vlcVout.detachViews(); vlcVout.setVideoView(mSurfaceView); vlcVout.setWindowSize(mSurfaceDims.getWidth(), mSurfaceDims.getHeight());

Getting current frame from android vlc media player

强颜欢笑 提交于 2020-05-14 12:17:07
问题 I'm using VLC-Android in order to play H264 RTSP live stream in my android application, the following code successfully renders the stream video onto the surface view: MediaPlayer mMediaPlayer = new MediaPlayer(VLCInstance.get()); SurfaceView mSurfaceView = (SurfaceView) findViewById(R.id.player); final IVLCVout vlcVout = Constants.mMediaPlayer.getVLCVout(); vlcVout.detachViews(); vlcVout.setVideoView(mSurfaceView); vlcVout.setWindowSize(mSurfaceDims.getWidth(), mSurfaceDims.getHeight());

libdvbpsi源码分析(一)架构分析

£可爱£侵袭症+ 提交于 2020-04-17 02:48:53
【推荐阅读】微服务还能火多久?>>> 源码层次目录如下所示: 其中: psi.c: psi section structure dvbpsi.c: 抽象成DVB/PSI decoders,封装出接口,供应用层调用。 descriptor.c: 各种描述符数据的抽象 demux.c: 解复用器 descriptor/: 各种描述符的解析 tables/: 各种psi子表解析的具体实现 每个解码器被划分成两个实体:即the PSI decoder和the specific decoder。之所以如此划分的原因是,每个psi表的section都有相同的格式。解码器结构如图1所示: 图1:解码器结构 PSI解码器 :主要任务就是获取应用层提供的ts流数据包( STB则是根据底层的解码器芯片获取ts流 ),并将完整的psi section(段)发送给专用的解码器解析。对于不连续的ts流,PSI解码器也必须稳定可靠的工作,并将ts流交给专用的解码器处理。 专用解码器 (specific decoder):主要任务就是根据psi解码器提供的psi sections,重建完整的表(PSI/SI)并将 他们返回给应用层处理( S TB通常是存入相应的databas e ),同时还要根据psi decoder的指示去检查ts的完整性(作CRC校验)。如果不完整,则返回错误。 PSI

流媒体技术学习笔记之(九)减少VLC 延迟的方法

不打扰是莪最后的温柔 提交于 2020-04-02 19:32:06
  之前写过一篇关于在 Linux 平台上编译 Android 平台上VLC播放器源代码的文章,vlc这款播放器非常优秀而且是开源的,它的核心是开源视频编解码库ffmpeg。而且这款播放器还支持RTSP协议,这个主要是用开源的live555来实现的,live555这个库以后还需要认真研习。 一、PC端(Windows平台)VLC播放RTSP视频延迟问题解决   前几天用PC平台上的VLC播放RTSP流媒体时延迟时间较长,存在1s左右的延迟,效果不是很好,后来查了资料,发现这个延迟时间是可以修改的。   找到工具->首选项,然后参数设置左下角选择“全部”,左边选择 “输入编解码”->“网络缓存”选项,可以根据具体需要加以修改,具体见下图不过这个值不要太小,否则缓存太小,播放视频的过程中会很卡 如果网络环境较好,300ms以内效果很好,实时性较好。 二:PC端(Linux平台)VLC播放RTSP视频延迟问题解决   这里我的 测试 平台是ubuntu,linux平台上的vlc可以以命令行的方式来运行,而命令行是可以带参数的,我们只需要在参数里面指定这个延迟时间就可以了,下面是具体的命令行形式,大家可以根据各自需要加以调整 vlc rtsp://192.168.1.1:8556/test.avi --newwork-caching=300  

【工作笔记】VLC播放器在chrome中的调用

妖精的绣舞 提交于 2020-04-02 19:31:13
VLC 是一款自由、开源的跨平台多媒体播放器及框架,可播放大多数多媒体文件,以及 DVD、音频 CD、VCD 及各类流媒体协议。 ---------引用自官网 http://www.videolan.org/ 在自己的html代码中调用vlc插件其实非常简单,以下代码来自官方demo https://wiki.videolan.org/Documentation:WebPlugin/ 详细demo可以参考安装目录\sdk\activex\test.html <html> <title>VLC Mozilla plugin test page</title> <body> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" width="640" height="480" id="vlc"> </embed> <script language="Javascript"> <!-- var vlc = document.getElementById("vlc"); vlc.audio.toggleMute(); //!--> </script> </body> </html>   只需要在官网下载到VLC安装程序,或者下载免安装的包将libvlc.dll注册到注册表中即可

【原创】P2P-NEXT测试结论和遗留问题

[亡魂溺海] 提交于 2020-03-24 14:57:26
3 月,跳不动了?>>> 目前P2P-NEXT的测试环境已经搭建好,并进行了测试。 已经测试过的点: 1.通过VLC模拟的直播源发送直播流到一个直播流转换工具(转成BT支持的格式)进行相应转换,产生用于直播的文件(其中包括加入该直播流的.tstream种子文件) 2.多台机器均运行P2P-MEXT的PC客户端,读取种子文件即可加入该直播流 3.同时可以在WEB服务器上编译HTML5代码,实现通过P2P方式传输直播流 【测试结果】( --> 代表格式转换 ) 1.ogg --> mp4(H.264+MP3) 无法正常播放 [mp3 @ 09028240] Header missing [mp3 @ 09028240] Header missing ogg.mp4 DLSTATUS_DOWNLOADING 1.40% None up 0.00KB/s down 52.68KB/s videoplay: gui_vod_event: resume videoplay: gui_vod_event: resume videoplay: gui_vod_event: pause 2.ogg --> webm(VP80+Vorbis) 无法正常播放 [aac @ 090bcde0] More than one AAC RDB per ADTS frame is not implemented.

Is it possible to put track markers in between tracks in one large audio file so that an audio player will treat the file as a CD?

前提是你 提交于 2020-03-23 10:20:31
问题 Here's what I mean: I have several songs stored as individual mp3 files. I have amalgamated them into one large mp3 file. When I play the file with VLC or any other piece of audio player software, the entire file just plays from start to finish as expected. If I press the "next track" button, the right facing arrow next to a vertical line, the player software just starts the entire file from the beginning again. What I want to do is put some kind of marker in between the individual tracks so

Is it possible to put track markers in between tracks in one large audio file so that an audio player will treat the file as a CD?

╄→гoц情女王★ 提交于 2020-03-23 10:19:09
问题 Here's what I mean: I have several songs stored as individual mp3 files. I have amalgamated them into one large mp3 file. When I play the file with VLC or any other piece of audio player software, the entire file just plays from start to finish as expected. If I press the "next track" button, the right facing arrow next to a vertical line, the player software just starts the entire file from the beginning again. What I want to do is put some kind of marker in between the individual tracks so