ffmpeg

SDP for FFMPEG (IP addresses)

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-11 12:50:55
问题 I'm receiving audio via RTP, so I'm opening input from the SDP I generate. Media is coming from Port_sender , IP_sender . IP and port of the server for listening: IP_server , Port_server . Here is my SDP template. What of {Port_sender, IP_sender, IP_server, Port_server} should I put in {%1%, %2%, %3%} for the SDP that I feed to ffmpeg and for the SDP that I give back to the sender? \n\nv=0\n o=- 0 0 IN IP4 %1%\n s=name\n c=IN IP4 %2%\n t=0 0\n a=tool:libavformat 57.3.100\n m=audio %3% RTP/AVP

PSSH box missing when generating encrypted files using FFMPEG

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-11 12:50:28
问题 I am trying to play from local storage an encrypted video using ExoPlayer. The command used to encrypt the video using FFMPEG is as follows: -i /storage/emulated/0/Download/20210125_193031.mp4 -vcodec copy -acodec copy -c:v libx264 -encryption_scheme cenc-aes-ctr -encryption_key b42ca3172ee4e69bf51848a59db9cd13 -encryption_kid 09e367028f33436ca5dd60ffe6671e70 /storage/emulated/0/Download/out_enc.mp4 - the file is playable using openkey and ffplay , but it won't play on ExoPlayer The main

Linux系统下实现监控摄像头RTSP协议对接腾讯云直播

孤街浪徒 提交于 2021-02-11 12:34:38
Linux系统下实现监控摄像头RTSP协议对接 腾讯云 直播 1.ffmpeg安装 sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm yum -y install ffmpeg 2.nginx-rtmp安装和配置 安装nginx组件 yum -y install gcc openssl-devel pcre-devel zlib-devel 下载nginx-rtmp-module //方式一:git命令下载 git clone https://github.com/arut/nginx-rtmp-module.git //方式二:下载nginx-rtmp-module-1.2.0.tar.gz //解压 tar -zxvf nginx-rtmp-module-1.2.0.tar.gz //重命名 mv nginx-rtmp-module-1.2.0 nginx-rtmp-module 安装nginx tar zxvf nginx-1.14.2.tar

Trouble using ffmpeg in c# how to correctly format string to upscale videos?

喜你入骨 提交于 2021-02-11 12:26:36
问题 So I am writing an app in c# to upscale videos to a certain resolution. It uses ffmpeg to do this. What happens is after selecting the video file, and clicking 1080p it creates the directory folder but does not actually write the upscaled video to it. I think I must have a string format issue: private void HD_Click(object sender, EventArgs e) { if (textBox1.Text == null) { MessageBox.Show("You've not selected your video file yet. Please do so before continuing, cheers."); } else { var

Trouble using ffmpeg in c# how to correctly format string to upscale videos?

独自空忆成欢 提交于 2021-02-11 12:26:30
问题 So I am writing an app in c# to upscale videos to a certain resolution. It uses ffmpeg to do this. What happens is after selecting the video file, and clicking 1080p it creates the directory folder but does not actually write the upscaled video to it. I think I must have a string format issue: private void HD_Click(object sender, EventArgs e) { if (textBox1.Text == null) { MessageBox.Show("You've not selected your video file yet. Please do so before continuing, cheers."); } else { var

Python 批量下载B站视频并打包成软件

送分小仙女□ 提交于 2021-02-11 09:33:39
一、项目概述 1.项目背景 有一天,我突然想找点事做,想起一直想学但是没有学的C语言,就决定来学一下。可是怎么学呢?看书的话太无聊,报班学呢又快吃土了没钱,不如去B站看看?果然,关键字C语言搜索,出现了很多C语言的讲课视频: B站https://www.bilibili.com/是一个很神奇的地方,简直就是一个无所不有的宝库,几乎可以满足你一切的需求和视觉欲。不管你是想看 动画、番剧 ,还是 游戏、鬼畜 ,亦或 科技和各类教学视频 ,只要你能想到的,基本上都可以在B站找到。对于程序猿或即将成为程序猿的人来说,B站上的编程学习资源是学不完的,可是B站没有提供下载的功能,如果想保存下载在需要的时候看,那就是一个麻烦了。我也遇到了这个问题,于是研究怎么可以实现一键下载视频,最终用 Python 这门神奇的语言实现了。 2.环境配置 这次项目不需要太多的环境配置,最主要的是有 ffmpeg (一套可以用来记录、转换数字音频、视频,并能将其转化为流的开源计算机程序)并设置环境变量就可以了。ffmpeg主要是用于将下载下来的视频和音频进行合并形成完整的视频。 下载ffmpeg 可点击https://download.csdn.net/download/CUFEECR/12234789或进入官网http://ffmpeg.org/download.html进行下载,并解压到你想保存的目录。

How to create a powershell script / or windows .bat file for ffmpeg

守給你的承諾、 提交于 2021-02-11 06:31:34
问题 So, I want to create a Powershell or Batch file (whichever works best for the task), that I can paste in a folder and after executing it, will start to use FFmpeg to encode all videos The part that works (in .bat): for %%a in ("*.mkv") do( ffmpeg -i "%%a" -c:v libx265 -c:a copy -x265-params crf=25 "%%a [encoded].mkv" pause) This works, but in some folders, I already have [encoded] files. I'd like for the script to skip these files. I asked in reddit and received the following script: for %%a

How to create a powershell script / or windows .bat file for ffmpeg

岁酱吖の 提交于 2021-02-11 06:31:26
问题 So, I want to create a Powershell or Batch file (whichever works best for the task), that I can paste in a folder and after executing it, will start to use FFmpeg to encode all videos The part that works (in .bat): for %%a in ("*.mkv") do( ffmpeg -i "%%a" -c:v libx265 -c:a copy -x265-params crf=25 "%%a [encoded].mkv" pause) This works, but in some folders, I already have [encoded] files. I'd like for the script to skip these files. I asked in reddit and received the following script: for %%a

Convert all files in a directory using ffmpeg and then move them using PowerShell

瘦欲@ 提交于 2021-02-10 22:40:53
问题 I want to create a script that converts .mkv-files from x264 to x265 using ffmpeg-windows. To generate a list of all files in the directory I created a .ps1-script generate-list.ps1 , you might want to use it. What must my powershell script be to execute the code stated below for each item in the folder video_old and move it to video_new after conversion? del .\list.txt cd .\video_old\ foreach ($i in Get-ChildItem .\*.mkv) {echo "file '$i'" >> "list.txt"} move .\list.txt ..\ cd .. The

Not able to add Text Clip in Moviepy. Getting error related to Imagemagic

亡梦爱人 提交于 2021-02-10 20:17:25
问题 I am using the moviepy module for python from here https://github.com/Zulko/moviepy I had successfully installed moviepy and necessary modules with it. But when I am trying to run the first example of adding Text clip in the video, I am getting error. Here is my code and my output. Code: from moviepy.editor import * clip = VideoFileClip("video1.mp4").subclip(50, 60) txt_clip = TextClip("My Holidays 2013", fontsize=70, color='white') txt_clip = txt_clip.set_pos('center').set_duration(10) video