live-streaming

Saving audio from livestream using VLC library

心不动则不痛 提交于 2021-02-18 19:36:26
问题 I am trying to save audio clips (15 seconds per clip) from live stream using VLC library. I am unable to find any option that could allow me to record only 15 seconds from the live stream. Thus I ended up using timer in my code, but the recording clips sometimes contain 10 seconds, sometimes 20 seconds (rarely 15 seconds). Also, sometimes the audio content is repeated in the clips. Here is the code (I am a newbie so please guide me) Code.py import os import sys import vlc import time

Saving audio from livestream using VLC library

北战南征 提交于 2021-02-18 19:35:42
问题 I am trying to save audio clips (15 seconds per clip) from live stream using VLC library. I am unable to find any option that could allow me to record only 15 seconds from the live stream. Thus I ended up using timer in my code, but the recording clips sometimes contain 10 seconds, sometimes 20 seconds (rarely 15 seconds). Also, sometimes the audio content is repeated in the clips. Here is the code (I am a newbie so please guide me) Code.py import os import sys import vlc import time

Generate .m3u8 on the fly from .ts files

断了今生、忘了曾经 提交于 2021-02-06 14:01:01
问题 I have a list of .ts file segments that follow this pattern http://www.someaddress.com/file_11223344.ts http://www.someaddress.com/file_11223345.ts http://www.someaddress.com/file_11223346.ts ... Since I need a m3u8 file in order to open this videos, is there a way to generate this m3u8 manually (from ts segments) in .php for example. Original m3u8 is protected and generated only if I have user/pass id etc. This is live stream that is always updated and generated based on a timestamp 回答1: if

Generate .m3u8 on the fly from .ts files

半城伤御伤魂 提交于 2021-02-06 14:00:49
问题 I have a list of .ts file segments that follow this pattern http://www.someaddress.com/file_11223344.ts http://www.someaddress.com/file_11223345.ts http://www.someaddress.com/file_11223346.ts ... Since I need a m3u8 file in order to open this videos, is there a way to generate this m3u8 manually (from ts segments) in .php for example. Original m3u8 is protected and generated only if I have user/pass id etc. This is live stream that is always updated and generated based on a timestamp 回答1: if

streaming FLV to RTMP with FFMpeg using H264 codec and C++ API to flv.js

江枫思渺然 提交于 2021-02-06 10:13:39
问题 I would like to stream live video from webcam using OpenCV using H264 codec and converting that to FLV then stream over RTMP server and catch the stream in browser with flv.js. Basically I have everything working except that I cannot read stream in flv.js. I can open stream with ffplay so I think at least most of the things are set correctly. My current implementation: #include <iostream> #include <vector> #include <opencv2/highgui.hpp> #include <opencv2/video.hpp> extern "C" { #include

streaming FLV to RTMP with FFMpeg using H264 codec and C++ API to flv.js

此生再无相见时 提交于 2021-02-06 10:09:14
问题 I would like to stream live video from webcam using OpenCV using H264 codec and converting that to FLV then stream over RTMP server and catch the stream in browser with flv.js. Basically I have everything working except that I cannot read stream in flv.js. I can open stream with ffplay so I think at least most of the things are set correctly. My current implementation: #include <iostream> #include <vector> #include <opencv2/highgui.hpp> #include <opencv2/video.hpp> extern "C" { #include

Dynamically Inject ID3 in FFMPEG Live Stream

荒凉一梦 提交于 2021-01-29 10:15:39
问题 I am trying to find out if there is a way with FFMPEG to dynamically inject ID3 tags during live streaming. Basically I use FFMPEG to stream a live HLS stream from a video device, while another piece of software is generating events that need to be synced up in the front-end player. I want to be able to have the event generating software encode the event in the live stream, so I know that the event is synced up with the video. 来源: https://stackoverflow.com/questions/54862783/dynamically

facebook api get live comment

给你一囗甜甜゛ 提交于 2021-01-28 05:05:24
问题 as facebook mentioned here for get live comment and i do like what they said var source = new EventSource("https://streaming-graph.facebook.com/2025853151054872/live_comments?access_token=MY TOKEN HERE&fields=from{name,id},message"); source.onmessage = function(event) { console.log(event); // Do something with event.message for example }; this will give me 401 error and as they mentioned here at the end of page its mean Unauthorized Make sure your app has the right permissions and that the

Youtube iFrame Api for live videos?

耗尽温柔 提交于 2021-01-27 14:26:47
问题 I'm trying to implement live video from youtube channel with youtube iframe api. There is a videoId property in api and it works for live videos too but we have to add video id every stream start. There is a solution in iframe live video https://www.youtube.com/embed/live_stream?channel=CHANNEL_ID . How can i use it in iframe api? 回答1: I came across this same issue. I figured out that you can directly add the iframe with the src instead of an empty div. Then give it an id and pass that to the

Opencv stream from a camera connected to a remote machine

风流意气都作罢 提交于 2020-12-31 04:06:57
问题 I am developing a wx application in python for streaming and displaying video from two different webcams. This works fine, but now I need to do this in a different scenario in which the two cameras are connected in separate machine running on Windows connected over a network. My application will run on machine 1. The video from the camera 1 can be fetched using opencv and display on a panel. And also I want to fetch video from camera 2 connected to machine 2, and display it in the application