ffmpeg

Zooming animation in FFMPEG

好久不见. 提交于 2021-02-08 23:39:55
问题 I need to make a zooming animation for a video input. Making a panning animation is possible with the crop filter with something like this: "crop=320:240:max(0\\,min(iw-ow\\,n)):0" Where the first two parameters, width and height, are fixed, and the second two parameters, accept frame number n or timestamp t as expression parameters. But width and height are evaluated only once (and cannot use n or t ), so I cannot crop a size in function of time and then apply a scale filter to the original

How to reduce video size with java/kotlin on Android?

浪子不回头ぞ 提交于 2021-02-08 17:00:56
问题 I want reduce the video size at Android Studio and for upload to PlayStore needs to be compatible for 64 bits arquitecture, I tried before with ffmpeg and it compress mp4 succefully but take longer time and this solution with 3gp not include the audio. Theres another option or library to compress mp4 and 3gp with audio and video? 回答1: Here is another library to compress videos. This library can compress videos in low, medium and high quality. Usage example: VideoCompress.compressVideoMedium("

How to reduce video size with java/kotlin on Android?

回眸只為那壹抹淺笑 提交于 2021-02-08 17:00:21
问题 I want reduce the video size at Android Studio and for upload to PlayStore needs to be compatible for 64 bits arquitecture, I tried before with ffmpeg and it compress mp4 succefully but take longer time and this solution with 3gp not include the audio. Theres another option or library to compress mp4 and 3gp with audio and video? 回答1: Here is another library to compress videos. This library can compress videos in low, medium and high quality. Usage example: VideoCompress.compressVideoMedium("

No data written to stdin or stderr from ffmpeg

*爱你&永不变心* 提交于 2021-02-08 10:38:49
问题 I have a dummy client that is suppose to simulate a video recorder, on this client i want to simulate a video stream; I have gotten so far that i can create a video from bitmap images that i create in code. The dummy client is a nodejs application running on an Raspberry Pi 3 with the latest version of raspian lite. In order to use the video I have created, I need to get ffmpeg to dump the video to pipe:1. The problem is that I need the -f rawvideo as a input parameter, else ffmpeg can't

Extract frames as images from an RTMP stream in real-time

给你一囗甜甜゛ 提交于 2021-02-08 10:22:03
问题 I am streaming short videos (4 or 5 seconds) encoded in H264 at 15 fps in VGA quality from different clients to a server using RTMP which produced an FLV file. I need to analyse the frames from the video as images as soon as possible so I need the frames to be written as PNG images as they are received. Currently I use Wowza to receive the streams and I have tried using the transcoder API to access the individual frames and write them to PNGs. This partially works but there is about a second

FFmpeg remove 2 sec from middle of video and concat the parts. Single line solution

走远了吗. 提交于 2021-02-08 10:13:58
问题 I have a video file that is 22 seconds long. I want to remove the segment from 10 seconds to 12 seconds. Then return a concatenated video file of seconds 1-10 and 12-22. I want to do this in a single FFmpeg command. This is the easy way Source https://www.labnol.org/internet/useful-ffmpeg-commands/28490/ ffmpeg -i input.mp4 -ss 00:00:00.0 -codec copy -t 10 output_1.mp4 and ffmpeg -i input.mp4 -ss 00:00:12.0 -codec copy -t 10 output_2.mp4 then create an input file with all the source file

PHP-FFMpeg Installation and Basic Usage on windows issue

好久不见. 提交于 2021-02-08 10:12:45
问题 following the README I installed PHP FFmpeg through Composer and I downloaded binaries from https://ffmpeg.zeranoe.com/builds/ now I'm trying to run the "Basic Usage" example: <?php require("vendor/autoload.php"); $ffmpeg = FFMpeg\FFMpeg::create(); $video = $ffmpeg->open('video.mpg'); $video ->filters() ->resize(new FFMpeg\Coordinate\Dimension(320, 240)) ->synchronize(); $video ->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(10)) ->save('frame.jpg'); $video ->save(new FFMpeg\Format\Video\X264

PHP-FFMpeg Installation and Basic Usage on windows issue

◇◆丶佛笑我妖孽 提交于 2021-02-08 10:10:43
问题 following the README I installed PHP FFmpeg through Composer and I downloaded binaries from https://ffmpeg.zeranoe.com/builds/ now I'm trying to run the "Basic Usage" example: <?php require("vendor/autoload.php"); $ffmpeg = FFMpeg\FFMpeg::create(); $video = $ffmpeg->open('video.mpg'); $video ->filters() ->resize(new FFMpeg\Coordinate\Dimension(320, 240)) ->synchronize(); $video ->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(10)) ->save('frame.jpg'); $video ->save(new FFMpeg\Format\Video\X264

Sync files timestamp with ffmpeg

允我心安 提交于 2021-02-08 09:40:55
问题 I'm capturing video from 4 cameras connected with HDMI through a capture card. I'm using ffmpeg to save the video feed from the cameras to multiples jpeg files (30 jpeg per second per camera). I want to be able to save the images with the capture time. Currently I'm using this command for one camera: ffmpeg -f video4linux2 -pixel_format yuv420p -timestamps abs -I /dev/video0 -c:a jpeg -t 60 -ts_from_file 2 camera0-%5d.jpeg It saves my file with the names camera0-00001.jpg, camera0-00002.jpg,

FFMPEG using Google Drive API instead of Shared URL

孤者浪人 提交于 2021-02-08 08:57:58
问题 We are using FFMPEG to stream a Google Drive URL into a node application. Is there an FFMPEG method or library we can use to stream to FFMPEG using the Google Drive API instead of using the standard public shared URL? At the moment using the URL works fine if the file size is <100mb but with bigger files we get an error: https://drive.google.com/uc?export=download&id=fileId: Invalid data found when processing input This is because we reach the pesky gDrive virus roadblock page: 回答1: From your