ffmpeg

FFmpeg code not working on http url for thumbnail extraction

我的未来我决定 提交于 2021-02-07 20:29:06
问题 I am trying to extract thumbnail from sharepoint 2013 video library. I found a link which can extract using ffmpeg. this is the link: [How can I save first frame of a video as image? filename = "http://siteurl/" + items["FileRef"].ToString(); When i replaced the input file with sharepoint site url and video name then it does not produce any thumbnail. I also gives error on ffmpeg.Start(); ffmpeg.WaitForExit(); ffmpeg.Close() I would like to understand how make it work for http url. If it is

fluent-ffmpeg from an array of input files

大兔子大兔子 提交于 2021-02-07 12:31:25
问题 I want to use fluent-ffmpeg to create a video of last n images of a directory, or database entries. Which is the correct syntax? These are my tries: Mimic shell command ffmpeg() .addInput('ls *png | tail -n 17') .inputOptions("-pattern_type glob") .output("output.mp4").run() but it does not accept shell commands; space - separated paths ffmpeg() .addInput('a*.png b*.png ') .inputOptions("-pattern_type glob") .output("output.mp4").run() but it does not accept list of files separated by spaces;

FFMpeg drawtext width?

冷暖自知 提交于 2021-02-07 10:59:28
问题 I'm using drawtext to print some text on an animated GIF. Everything is working, but I'm unable to specify a bounding box and make the text wrap. I'm currently using this: ffmpeg -i image.gif -filter_complex "drawtext=textfile=text.txt:x=main_w/2 - text_w/2:y=main_h/2 - text_h/2:fontfile=Roboto-Regular.ttf:fontsize=24:fontcolor=000000" image_out.gif Is there a way to wrap text? 回答1: You can use the FFmpeg subtitles filter for automatic word wrapping and to place the text in the middle center.

h264 ffmpeg: How to initialize ffmpeg to decode NALs created with x264

笑着哭i 提交于 2021-02-07 10:58:58
问题 I have encoded some frames using x264, using x264_encoder_encode and after that I have created AVPackets using a function like this: bool PacketizeNals( uint8_t* a_pNalBuffer, int a_nNalBufferSize, AVPacket* a_pPacket ) { if ( !a_pPacket ) return false; a_pPacket->data = a_pNalBuffer; a_pPacket->size = a_nNalBufferSize; a_pPacket->stream_index = 0; a_pPacket->flags = AV_PKT_FLAG_KEY; a_pPacket->pts = int64_t(0x8000000000000000); a_pPacket->dts = int64_t(0x8000000000000000); } I call this

C# Video concatenation using FFMpegConverter

只愿长相守 提交于 2021-02-07 10:57:18
问题 I need to implement video concatenation in my ASP.NET Web API. I could successfully concatenate some sample videos downloaded from internet using 'FFMpegConverter' Nuget Package . But when I tried concatenating files captured from my mobile and tried opening it, I got the following error. Below is the code snippet I'm using: var ffMpeg = new NReco.VideoConverter.FFMpegConverter(); ffMpeg.ConcatMedia(_fileNames, videoRootPath.mp4, NReco.VideoConverter.Format.mp4, set); These are the Property

nodejs ffmpeg play video at specific time and stream it to client

浪尽此生 提交于 2021-02-07 10:30:00
问题 I'm trying to make a basic online video editor with nodeJS and ffmpeg. To do this I need 2 steps: set the in-and-out times of the videos from the client, which requires the client to view the video at specific times, and switch the position of the video. Meaning, if a single video is used as an input, and split it into smaller parts, it needs to replay from the starting time of the next edited segment, if that makes sense. send the input-output data to nodejs and export it with ffmpeg as a

stream mp4 video with node fluent-ffmpeg

╄→尐↘猪︶ㄣ 提交于 2021-02-07 09:50:53
问题 I'm trying to create video stream server and client with node fluent-ffmpeg , express and ejs . And a haven't solve this for a while. What I want to do is to play video beginning by certain time. The following codes make it with Safari browser on windows but with others it makes a loop of a few seconds or it says video format not supported server code (run.js) : app.get('/video', function(req, res) { //define file path,time to seek the beegining and set ffmpeg binary var pathToMovie = '..

stream mp4 video with node fluent-ffmpeg

安稳与你 提交于 2021-02-07 09:48:58
问题 I'm trying to create video stream server and client with node fluent-ffmpeg , express and ejs . And a haven't solve this for a while. What I want to do is to play video beginning by certain time. The following codes make it with Safari browser on windows but with others it makes a loop of a few seconds or it says video format not supported server code (run.js) : app.get('/video', function(req, res) { //define file path,time to seek the beegining and set ffmpeg binary var pathToMovie = '..

FFmpeg live streaming webm video to multiple http clients over Nodejs

笑着哭i 提交于 2021-02-07 09:02:35
问题 I am trying to share a live stream of my screen over an ExpressJS server. I cannot save ffmpeg output to a file or start more than one ffmpeg instance for performance reason. My current solution is to pipe ffmpeg's stdout and stream it to each connected client. index.js const express = require('express'); const app = express(); const request = require('request'); const FFmpeg = require('./FFmpeg'); const APP_PORT = 3500; app.get('/stream', function (req, res) { const recorder = FFmpeg

Splitting webm video to png with transparency

a 夏天 提交于 2021-02-07 08:11:41
问题 I need to split a webm encoded video into png frames, without losing transparency. I use the following ffmpeg command: ffmpeg -i dancer1.webm -pix_fmt rgba frames/%04d.png This produces a directory of pngs, but why is each output frame is missing transparency? I have used this example video, which contains an alpha channel. See it playing over a background here. Here's an example output frame from ffmpeg: ffmpeg produces the following output when it runs: ffmpeg version N-60294-g549f052