vlc

Building a playlist to play selected portion of media files in vlc

大兔子大兔子 提交于 2019-12-22 12:25:02
问题 I have a list of media files (DVD VOB files) and I want to watch only a portion of the video from a list of files. #! /bin/bash export SOURCE_DIR=/path/to/dvds/dir export DVD1=$SOURCE_DIR/dvd1/VIDEO_TS export DVD2=$SOURCE_DIR/dvd2/VIDEO_TS export DVD3=$SOURCE_DIR/dvd3/VIDEO_TS export DVD4=$SOURCE_DIR/dvd4/VIDEO_TS export FILE1=VTS_01_1.VOB export FILE2=VTS_01_2.VOB export FILE3=VTS_01_3.VOB export FILE4=VTS_01_4.VOB vlc --play-and-exit --start-time=348 --stop-time=355 $DVD1/$FILE1 vlc --play

vlc-android-sdk - cannot view RTSP live video

五迷三道 提交于 2019-12-22 08:55:12
问题 I've been working on an Android application that shows live streaming video via RTSP. Assuming I have a well-functioning RTSP server that passes h264 packets, and to view the stream we should connect to rtsp://1.2.3.4:5555/stream So I tried to use the native MediaPlayer\VideoView, but no luck (the video was stuck after 2-3 seconds of playback, so I loaded mrmaffen's vlc-android-sdk (can be found here) and used the following code: ArrayList<String> options = new ArrayList<String>(); options

Python VLC binding- playing a playlist

拥有回忆 提交于 2019-12-21 23:15:46
问题 I was wondering if it is possible to open(play) a music playlist ( .m3u file) with the use of vlc.py ? I searched for an answer but could not find it. I managed to play a simple mp3 file, even a mp3 stream, but I dont have any luck with the playlists. Can you help me, give me some example code? I want to be able to go through tracks( Next and Previous) within my python program. Thans in advance 回答1: Here is a " very " rough mock up of some code that I wrote for something else, adapted to your

Capture video from vlc command line with a stop time

爱⌒轻易说出口 提交于 2019-12-21 23:06:03
问题 I'm trying to capture a video from an RPT stream to my pc (Ubuntu 12-04 LTS). I'm using vlc from command line as below: cvlc -vvv rtp://address:port --start-time=00 --stop-time=300 --sout file/ts:test.ts but vlc ignores the command --stop-time and it continues to download video even more than 300 seconds as specified. Does anyone know the reason for this? and a possible solution? Thanks 回答1: If you know the start-time and the end-time you can compute the record time. You can afterward use the

How to save video stream using VLC in commandline?

瘦欲@ 提交于 2019-12-21 19:47:09
问题 I'm trying to save online video using VLC in command line on Window 7 Basic. Here are few things I tried and worked partially: I:\movies> vlc http://media.ch9.ms/ch9/7492/a92ae0a6-7b81-4114-b102aa055d147492/E2EMeijerBrachaDartMonadsContinuations.wmv --sout="#duplicate{dst=std{access=file,mux=wmv,dst='file.wmv'}, dst=display}" It plays the video while streaming, and it also saves the stream to file.wmv . But the saved video doesn't have audio! The command worked partially. Another try for

How to save video stream using VLC in commandline?

折月煮酒 提交于 2019-12-21 19:46:45
问题 I'm trying to save online video using VLC in command line on Window 7 Basic. Here are few things I tried and worked partially: I:\movies> vlc http://media.ch9.ms/ch9/7492/a92ae0a6-7b81-4114-b102aa055d147492/E2EMeijerBrachaDartMonadsContinuations.wmv --sout="#duplicate{dst=std{access=file,mux=wmv,dst='file.wmv'}, dst=display}" It plays the video while streaming, and it also saves the stream to file.wmv . But the saved video doesn't have audio! The command worked partially. Another try for

How to calculate the RTP Timestamp for each packet in an audio stream

蹲街弑〆低调 提交于 2019-12-21 18:28:36
问题 I read the RTP specification and I can't seem to get my head around the RTP Packet Timestamp. I tried to implement it in different ways in my server but I can't get the player to play it right. The "wrong" behaviour I'm having here is that ( I use VLC player to play the RTSP url to my server ) I find the logs of the player saying "buffer way too late" and "wrong PTS value" . Which means somehow that the audio frames arrives in a packets whose timestamp is not set right. I tried to implement

Compiling VLC on Linux: Error couldnt find Lua

蹲街弑〆低调 提交于 2019-12-21 09:09:03
问题 I am trying to compile VLC for Linux. When I run the configure script, I am getting the error message configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error. I have lua on my system. I ran lua -v and got Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio whereis lua gives /usr/bin/lua /usr/lib/lua /usr/share/lua /usr/share/man/man1/lua.1.gz Which looks to be a standard location.

Compiling VLC on Linux: Error couldnt find Lua

喜欢而已 提交于 2019-12-21 09:08:43
问题 I am trying to compile VLC for Linux. When I run the configure script, I am getting the error message configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error. I have lua on my system. I ran lua -v and got Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio whereis lua gives /usr/bin/lua /usr/lib/lua /usr/share/lua /usr/share/man/man1/lua.1.gz Which looks to be a standard location.

VLCJ Creating Multiple video panels

隐身守侯 提交于 2019-12-21 05:43:10
问题 I am creating multiple video panels using vlcj. For each video window I should add code: factory0 = new MediaPlayerFactory(); mediaPlayer0 = factory0.newEmbeddedMediaPlayer(); mediaPlayer0.setVideoSurface(factory0.newVideoSurface(videoCanvas[0])); mediaPlayer0.setPlaySubItems(true); ... If I want to have 8 video panels then I will have to repeat these codes (not dynamic). My Question is: I'd like to have MediaPlayerFactory and MediaPlayerFactory as arrays so that I can shorten my code and