video

Trying to stream telegram media and playing it in a web page

安稳与你 提交于 2020-12-05 11:52:07
问题 I am trying to stream Telegram video files and play them on a web page. I am using this script to stream Telegram videos to a web server. It uses Telethon and AIOhttp to stream the file. The streaming part can be seen here. I am currently serving it on a server to serve media files. The videos can be downloaded using the link the script provides and can be streamed on any media player. But when I try to stream them on a web page, it has problems. For mp4 videos, Chrome does not play them

python converting video to audio

假装没事ソ 提交于 2020-12-01 10:44:29
问题 We are working on a project to convert video to audio, and this is the sample code: from converter import Converter from moviepy.editor import * c = Converter() clipv = 'g.mp4' clipc = VideoFileClip(clipv).subclip(0,20) conv = c.convert(clipc, 'clip5.mp3', {'format':'mp3','audio':{'codec': 'mp3','bitrate':'22050','channels':1}}) for timecode in conv: pass However, it gives me this error Traceback (most recent call last) File "del.py", line 7, in <module> for timecode in conv: File "/usr/local

python converting video to audio

荒凉一梦 提交于 2020-12-01 10:44:19
问题 We are working on a project to convert video to audio, and this is the sample code: from converter import Converter from moviepy.editor import * c = Converter() clipv = 'g.mp4' clipc = VideoFileClip(clipv).subclip(0,20) conv = c.convert(clipc, 'clip5.mp3', {'format':'mp3','audio':{'codec': 'mp3','bitrate':'22050','channels':1}}) for timecode in conv: pass However, it gives me this error Traceback (most recent call last) File "del.py", line 7, in <module> for timecode in conv: File "/usr/local

DirectShow, Media Foundation, DXVA, what?

久未见 提交于 2020-12-01 10:08:49
问题 I'm tasked with revising an application which uses DirectShow for video rendering. The old application works fine, but it's starting to show age. As I have a gaming background, I figured I should just approach this as such. After having made a bunch of prototypes using different techniques, I was pretty sure I could pull of video-to-texture rendering and use DirectX to fulfill all the clients his requests. However, I'm now at the point I have to pick a technique to go with and I couldn't be

DirectShow, Media Foundation, DXVA, what?

雨燕双飞 提交于 2020-12-01 10:05:45
问题 I'm tasked with revising an application which uses DirectShow for video rendering. The old application works fine, but it's starting to show age. As I have a gaming background, I figured I should just approach this as such. After having made a bunch of prototypes using different techniques, I was pretty sure I could pull of video-to-texture rendering and use DirectX to fulfill all the clients his requests. However, I'm now at the point I have to pick a technique to go with and I couldn't be

DirectShow, Media Foundation, DXVA, what?

假如想象 提交于 2020-12-01 10:05:30
问题 I'm tasked with revising an application which uses DirectShow for video rendering. The old application works fine, but it's starting to show age. As I have a gaming background, I figured I should just approach this as such. After having made a bunch of prototypes using different techniques, I was pretty sure I could pull of video-to-texture rendering and use DirectX to fulfill all the clients his requests. However, I'm now at the point I have to pick a technique to go with and I couldn't be

set video objects source file to a blob url

左心房为你撑大大i 提交于 2020-11-30 04:51:00
问题 As an example, say I have a video object set on my website with the following attributes: <video controls="" preload="auto" id="_video"></video> and the original source being ./video/video.mp4 (for example). How can I go about protecting the original source files location through converting it to a BLOB url ? I have seen a few posts stating that it needs to be done within through JavaScript, but none of them actually go to the extent of explaining how to do it, or where you can find out. So,

set video objects source file to a blob url

北慕城南 提交于 2020-11-30 04:48:47
问题 As an example, say I have a video object set on my website with the following attributes: <video controls="" preload="auto" id="_video"></video> and the original source being ./video/video.mp4 (for example). How can I go about protecting the original source files location through converting it to a BLOB url ? I have seen a few posts stating that it needs to be done within through JavaScript, but none of them actually go to the extent of explaining how to do it, or where you can find out. So,

set video objects source file to a blob url

孤人 提交于 2020-11-30 04:47:18
问题 As an example, say I have a video object set on my website with the following attributes: <video controls="" preload="auto" id="_video"></video> and the original source being ./video/video.mp4 (for example). How can I go about protecting the original source files location through converting it to a BLOB url ? I have seen a few posts stating that it needs to be done within through JavaScript, but none of them actually go to the extent of explaining how to do it, or where you can find out. So,

ffmpeg img to video = Could find no file with path

我的梦境 提交于 2020-11-28 07:44:28
问题 i try to convert img to mp4 with ffmpeg. i try to do it like this: ffmpeg -framerate 25 -f image2 -start_number 1 -i '/tmp/stream/_%09d.jpg' -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p output.mp4 and get an error: [image2 @ 0xe74800] Could find no file with path '/tmp/stream/_%09d.jpg' and index in the range 1-5 /tmp/stream/_%09d.jpg: No such file or directory The jpg file-name format is: /tmp/stream/2017_11_20_08_48_30_picture_000000001.jpg /tmp/stream/2017_11_20_08_48_35_picture