ffmpeg

arm linux 移植 ffmpeg 库 + x264

坚强是说给别人听的谎言 提交于 2020-11-30 01:24:38
背景 Ffmpeg 中带有h264的解码,没有编码,需要添加x264。libx264是一个自由的H.264编码库,是x264项目的一部分,使用广泛,ffmpeg的H.264实现就是用的libx264。 FFmpeg是一套可以用来记录、转换数字音频、视频,并能将其转化为流的开源计算机程序。采用LGPL或GPL许可证。它提供了录制、转换以及流化音视频的完整解决方案。 librtmp用来接收、发布RTMP协议格式的数据。FFmpeg支持RTMP协议,将librtmp编译进去后支持协议RTMPE、RMTPTE、RTMPS。这里我直接使用FFmpeg自带的RTMP功能。 host平台   :Ubuntu 18.04 arm平台   : S5P6818 x264   : 20171212 x265   : v2.6 ffmpeg   : 4.0.1 arm-gcc   :4.8.1 使用以下脚本一键编译。 ## # Copyright By Schips, All Rights Reserved # https://gitee.com/schips/ # File Name: make.sh # Created : Mon 02 Sep 2019 08:05:53 PM HKT ## #!/bin/sh BASE=`pwd` BUILD_HOST=arm-linux OUTPUT_PATH=$

Create multiple thumbnails from a video at equal times / intervals

岁酱吖の 提交于 2020-11-29 23:39:21
问题 I need to create multiple thumbnails (ex. 12) from a video at equal times using ffmpeg. So for example if the video is 60 seconds - I need to extract a screenshot every 5 seconds. Im using the following command to get the frame in the 5ths second. ffmpeg -ss 5 -i video.webm -frames:v 1 -s 120x90 thumbnail.jpeg Is there a way to get multiple thumbnails with one command? 回答1: Get duration (optional) Get duration using ffprobe. This is an optional step but is helpful if you will be scripting or

Create multiple thumbnails from a video at equal times / intervals

北城余情 提交于 2020-11-29 23:37:11
问题 I need to create multiple thumbnails (ex. 12) from a video at equal times using ffmpeg. So for example if the video is 60 seconds - I need to extract a screenshot every 5 seconds. Im using the following command to get the frame in the 5ths second. ffmpeg -ss 5 -i video.webm -frames:v 1 -s 120x90 thumbnail.jpeg Is there a way to get multiple thumbnails with one command? 回答1: Get duration (optional) Get duration using ffprobe. This is an optional step but is helpful if you will be scripting or

Create multiple thumbnails from a video at equal times / intervals

别说谁变了你拦得住时间么 提交于 2020-11-29 23:35:30
问题 I need to create multiple thumbnails (ex. 12) from a video at equal times using ffmpeg. So for example if the video is 60 seconds - I need to extract a screenshot every 5 seconds. Im using the following command to get the frame in the 5ths second. ffmpeg -ss 5 -i video.webm -frames:v 1 -s 120x90 thumbnail.jpeg Is there a way to get multiple thumbnails with one command? 回答1: Get duration (optional) Get duration using ffprobe. This is an optional step but is helpful if you will be scripting or

Create multiple thumbnails from a video at equal times / intervals

一个人想着一个人 提交于 2020-11-29 23:34:14
问题 I need to create multiple thumbnails (ex. 12) from a video at equal times using ffmpeg. So for example if the video is 60 seconds - I need to extract a screenshot every 5 seconds. Im using the following command to get the frame in the 5ths second. ffmpeg -ss 5 -i video.webm -frames:v 1 -s 120x90 thumbnail.jpeg Is there a way to get multiple thumbnails with one command? 回答1: Get duration (optional) Get duration using ffprobe. This is an optional step but is helpful if you will be scripting or

Create multiple thumbnails from a video at equal times / intervals

不问归期 提交于 2020-11-29 23:32:13
问题 I need to create multiple thumbnails (ex. 12) from a video at equal times using ffmpeg. So for example if the video is 60 seconds - I need to extract a screenshot every 5 seconds. Im using the following command to get the frame in the 5ths second. ffmpeg -ss 5 -i video.webm -frames:v 1 -s 120x90 thumbnail.jpeg Is there a way to get multiple thumbnails with one command? 回答1: Get duration (optional) Get duration using ffprobe. This is an optional step but is helpful if you will be scripting or

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

ffmpeg img to video = Could find no file with path

大兔子大兔子 提交于 2020-11-28 07:43:57
问题 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

youtube-dl命令参考

别等时光非礼了梦想. 提交于 2020-11-27 23:56:44
youtube-dl 命令参数简译 USAGE: youtube - dl [ OPTIONS ] URL [ URL ... ] OPTIONS: 通用选项 - h , -- help 打印帮助文档 -- version 打印版本信息 - U , -- update 更新到最新版 ( 需要权限 ) - i , -- ignore - errors 遇到下载错误时跳过 -- abort - on - error 遇到下载错误时终止 -- dump - user - agent 显示当前使用的浏览器 ( User - agent ) -- list - extractors 列出所有的提取器 ( 支持的网站 ) -- extractor - descriptions 同上 -- force - generic - extractor 强制使用通用提取器下载 -- default - search PREFIX 使用此前缀补充不完整的URLs,例如: "ytsearch2 yt-dl" 从youtube搜索并下载两个关于yt - dl视频 . 使用 "auto" youtube - dl就会猜一个,一般效果等价于 "ytsearch" ( "auto_warning" 猜测时加入警告 ) . 我已知支持的PREFIX:ytsearch ( youtube ) ,

audio/mp4; codecs=“mp4a.40.2” not playing in Chrome and Firefox

喜你入骨 提交于 2020-11-25 04:08:30
问题 It seems I want to convert audios, which I want to stream on my website, to audio/mp4; codecs="mp4a.40.2" . Using ffmpeg-cli-wrapper, I am converting my uploaded audio files with this command here: ffmpeg -i /tmp/input.any -acodec aac -b:a 256000 /tmp/output.aac On the client I am creating a SourceBuffer like this: this.sourceBuffer = this.mediaSource.addSourceBuffer('audio/mp4; codecs="mp4a.40.2"'); The errors are: Chrome: NotSupportedError: Failed to load because no supported source was