vlc

How to set HTTP User-Agent for VLC?

a 夏天 提交于 2020-02-02 02:43:11
问题 I am using VLC's command line option --http-user-agent , but it does not seem to work. My command is $ vlc --http-user-agent 'FooBar/1.2.3' 'http://wiki.videolan.org/' And when I use tcpdump -Xlnn dst port 80 to capture the packets, I see 0x0030: 8eff 035b 4745 5420 2f20 4854 5450 2f31 ...[GET./.HTTP/1 0x0040: 2e31 0d0a 486f 7374 3a20 7769 6b69 2e76 .1..Host:.wiki.v 0x0050: 6964 656f 6c61 6e2e 6f72 670d 0a41 6363 ideolan.org..Acc 0x0060: 6570 743a 202a 2f2a 0d0a 4163 6365 7074 ept:.*/*.

Integrate VLC player in C# (WPF) project using Vlc.DotNet

ε祈祈猫儿з 提交于 2020-01-30 06:58:27
问题 I want to integrate to my project a VLC player to display video cameras streams. For that, I try to use Vlc.DotNet (2.1.126 version) in my WPF project. My tests are done in the following XAML file (I'm a bit a beginner at XAML/WPF): <UserControl x:Class="TVSCS_View.VideoDisplay.VideoPlayerControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns

C++集成VLC播放器时的排雷之路

…衆ロ難τιáo~ 提交于 2020-01-28 20:11:37
首先是要获取到VLC播放器的SDK,很多人会问,官方提供的安装包里已经没有SDK了如何获取呢?通过万能的网络搜索,这才知道在VLC的 官方下载目录 : http://download.videolan.org/pub/videolan/vlc/ 的各版本均提供了SDK,只是为了节省安装版的流量,在安装包和zip包里都没有放了,只放在了.7z格式的压缩包中。 官方使用教程 在: https://wiki.videolan.org/LibVLC_Tutorial/#Windows 然后是按官方的例子VS编译时总是报 Error 'libvlc_media_read_cb' 错误, 万能的网络搜索告诉我们要在VS的头文件中加入预定义,使项目识别ssize_t 这个格式。 方法是,在工程的stdafx.h文件中加入如下代码: #define ssize_t SSIZE_T 来源: 51CTO 作者: 对刘谈琴 链接: https://blog.51cto.com/13243359/2360465

Run vlc extension from command line

妖精的绣舞 提交于 2020-01-24 17:33:11
问题 I have a vlc extension written in Lua. I know how to run it from the GUI (View -> My Extension). I want to run it from the command line, so I would not need to start X every time. 回答1: It's not yet implemented. See ticket #3883 来源: https://stackoverflow.com/questions/29047899/run-vlc-extension-from-command-line

How to set the volume via commandline on recent VLC versions?

て烟熏妆下的殇ゞ 提交于 2020-01-24 02:55:07
问题 I've been trying, without success, to set the volume in VLC [2.2.1] via terminal, on Ubuntu. The parameter --volume doesn't exist anymore ( Warning: option --volume no longer exists ), and I can't find anything in the help which has "volume" in it. The documentation (https://wiki.videolan.org/Documentation:Advanced_Use_of_VLC/) is outdated, as it still has the --volume option in it. Is it still possible? 回答1: Tested on MacOS using VLC 3 /Applications/VLC.app/Contents/MacOS/VLC --auhal-volume

VLC: Import error no module named appscript

若如初见. 提交于 2020-01-23 21:42:10
问题 I am running python 2.7 with the VLC module on windows 7 to do this: import vlc i = vlc.Instance('--verbose 2'.split()) p = i.media_player_new() p.set_mrl('rtp://@192.168.0.101:8080/video') p.play() However when I try to install VLC module with pip, it returns the following error: C:\Windows\System32>pip install vlc Collecting vlc Using cached vlc-0.0.1.tar.gz Collecting app (from vlc) Using cached app-0.0.2.tar.gz Collecting appscript (from app->vlc) Using cached appscript-1.0.1.tar.gz

VLC desktop streaming

亡梦爱人 提交于 2020-01-23 00:41:15
问题 Edit I stopped using VLC and switched to GMax FLV Encoder. It does a much better job IMO. Original post I am sending my desktop (screen) as an H264 video stream to another machine that saves it to a file using the follwoing command lines: Sender of the stream: vlc -I dummy --sout='#transcode{vcodec=h264,vb=512,scale=0.5} :rtp{mux=ts,dst=192.168.0.1,port=4444}' Receiver of the stream: vlc -I rc rtp://@:4444 --sout='#std{access=file,mux=ps,dst=/home/user/output.mp4}' --ipv4 This works, but

Using VLC imem to play an h264 video file from memory but receiving error “main stream error: cannot pre fill buffer”

China☆狼群 提交于 2020-01-21 05:34:15
问题 I have an h264 video file that is loaded into memory, and I attempt to play it with imem using the parameter "imem-cat=4" so that vlc will use an access module to demux the video, and vlc starts and receives my imem parameters successfully: [0x7f38a0000e28] access_imem demux debug: Using get(0x404e1d), release(0x404e91), data(0x7fff5b4a9430), cookie("IMEM") This category also means I don't have to provide DTS and PTS. The imem module for VLC isn't well documented, but I've found hints in

Is sprop-parameter-sets or profile-level-id the SDP parameter required to decode H264?

孤人 提交于 2020-01-21 05:19:24
问题 I'm trying to understand what is the required parameter in SDP to be able to decode H264 from RTP packets. This is an related to this question, for the answer to that one works only in small number of cases. Example I am streaming from VLC with the following command. vlc -vvv sample_video/big_buck_bunny_480p_h264.mov --sout '#transcode{vcodec=h264,vb=700,fps=20,scale=0.25,acodec=none}:rtp{dst=10.5.110.117,port=5004,ttl=1}' This transcodes the video to: Bitrate: 700kbps Frame rate: 20 per

基于VLC的播放器开发

你离开我真会死。 提交于 2020-01-19 06:02:37
VLC的C++封装      因为工作需要,研究了一段时间的播放器开发,如果从头开始做,可以学习下FFmpeg( http://www.ffmpeg.org/ ),很多播放器都是基于FFmpeg开发的,但是这样工作量和难度都比较大,如果想很快能拿出一个播放器来用的,可以研究下开源的播放器,参考下射手播放器作者的文章: 媒体播放器三大底层架构 。   对比下现有的主流播放器: 媒体播放器列表 ,VLC是在各个方面都表现很突出的一款。VLC 是一款免费、自由、开源的跨平台多媒体播放器及框架,可播放大多数多媒体文件,DVD、音频 CD、VCD 以及各类流媒体协议。VLC官网: http://www.videolan.org/ 。   VLC是在Linux下用C语言开发的,如果想用其接口,可以将C的接口用C++封装一下,这样使用方便的很多,在CodeProject上搜到一个C++的封装,在他的基础上加了点函数,使用了最新的VLC版本(2.1.0),用MFC做成了如下的样子:   主要实现功能:   1、打开:加载音视频文件(同时开始播放)。   2、播放/暂停:播放暂停文件播放。   3、停止:停止播放。   4、快进:快进5秒。   5、快退:后退5秒。   6、音量:音量调节(0--100)。   7、播放进度控制:使用进度条控制。