Click here to Skip to main content
15,892,809 members
Everything / Ffmpeg

Ffmpeg

ffmpeg

Great Reads

by Clayton Rumley
There are those who think I am crazy, and this just might be the proof.
by Bjørn
Using the FFmepg.exe to create video snapshots
by Junian Triajianto
Using the power of Livestreamer and FFmpeg, twitch stream can be recorded every time a user goes online.
by Bohdan Stupak
A simple snippet of how you can convert video in .NET Core

Latest Articles

by V. Subhash
Compile FFmpeg v7.0 CLI from source and check out some of its new features
by V. Subhash
A simple fix for excessively bright video and low-volume audio
by Tough Developer
The V380 Pro wireless CCTV camera is available from many sellers on AliExpress for as low as 15USD. It has 10
by V. Subhash
How to get compile the latest FFmpeg source code and try out some new features

All Articles

Sort by Title

Ffmpeg 

9 Jul 2014 by godspeed123
Hi ThereI am using ffmpeg and I am able to receive PCM audio packets from 3 different mics to one program, I want to be able to merge the audio and then save it to file, but I dont know how to merge these audio inputs, I am receiving packets from each mic one at a time and I dont have a...
10 Jul 2014 by Albert Holguin
Assuming your input is synched in time and you're using the same PCM sampling on all channels... just make a "mixer"...http://stackoverflow.com/questions/5126169/programmatically-merging-two-pieces-of-audio/5126209#5126209[^]That's one example, but I'm sure you can find a handful of examples...
20 Aug 2018 by ilostmyid2
platform: Windows application: WinForm application language: C# decoder: ffmpeg Hi We're using ffmpeg to decode frames sent via network to us. The program is written in C# and uses FFmpegInvoke as well as the required DLL's like avcodec-56.dll and avutil-54.dll for decoding the frames. We need...
20 Aug 2018 by Jochen Arndt
Start by reading HWAccelIntro – FFmpeg[^]. For usage with the API check if an appropriate decoder is available and select that for decoding (requires that the library has been built with support for that decoder): // C/C++ example to use the DXVA2 decoder AVCodec* decoder =...
18 Jan 2019 by ilostmyid2
hi i'm in the process of deciding how to decode received video frames, based on the following: 1. platform is Windows. 2. frames are encoded in H264 or H265. 3. GPU should be used as much 4. certainly we prefer less coding and simplest code. we just need to decode and show the result on screen....
18 Jan 2019 by RickZeeland
Maybe the easiest way is to use LibVLC (which use ffmpeg too), see example here: .net - How to streaming video via VLC api in C# - Stack Overflow[^]
28 Jan 2019 by ilostmyid2
I got the latest version binaries of ffmpeg from here[^]. When I examine CPU and GPU usages when I play a video by its ffplay, I see that GPU is used during play. Not much using of CPU also indicates it. But when I get the latest version sources from the original site, I can't use GPU. To...
28 Jan 2019 by RickZeeland
See answers here: GPÜ-accelerated video processing with ffmpeg - Stack Overflow[^]
19 Feb 2019 by ilostmyid2
In the following code: int CplayerDlg::play() { FILE *fp = fopen("video_files/1010.brf", "rb"); ASSERT(fp); RecordFrame rf; RecordHeader hdr; ASSERT(fread(&rf, sizeof(rf), 1, fp) == 1); ASSERT(rf.frameType == FRAME_TYPE_HEADER); ASSERT(fread(&hdr, sizeof(hdr), 1, fp) == 1);...
30 Apr 2019 by ilostmyid2
In the following code, I can't figure out what's wrong: uint8_t *dstData[4]; int dstLinesize[4]; AVPixelFormat convertToPixFmt = AV_PIX_FMT_RGBA; int ret; // ... printf("tmp_frame format: %d (%s) %dx%d\n", tmp_frame->format, av_get_pix_fmt_name((AVPixelFormat)tmp_frame->format),...
30 Apr 2019 by KarstenK
Normally the error message is more correct than the code written by some beginner. So I think you have mismatched some data or data types. Here is some working code with sws_scale which may show you to get it work. I think you should review the naming of your variables and their usage in the...
5 Jun 2015 by Adrian Andrei
Hi!I'm creating a screen recorder using FFMpeg.All works, if i double click a .bat file i obtain a .mkv file.But, automatic, if i open the .bat file using Process.Start("Path to batch file"), the batch file fails because all %% from the .bat are replaced with %. I tried to escape using...
5 Jun 2015 by Adrian Andrei
Check the autos.Check if ffmpeg images folder is the Process.WorkingDirectory.Check if images are png files.Check if there are some problems with your code.
21 May 2014 by Pavan Kumar
While recording video by ffmpeg VideoFileWriter class, i am getting error like 'A video file was not opened yet'here is my code : private void butStart_Click(object sender, EventArgs e) { try { FinalVideo = new...
17 Feb 2012 by potluri_suresh
Raw Audio data is encoded to AAC compression using ffmmpeg library.
7 Jun 2014 by godspeed123
HiI have access to a webcam through FFMPEG but now I want to grab the audio using FFMPEG and C++. Is there an example or tutorial on how to do this, and make sure it syncs up with the video?Thanks in advance
7 Jun 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Read the discussions at...1. ffmpeg recording sound from program and microphone[^]2. Easy Way to grab desktop sound with Sox[^]BlogFFmpeg Multiplexing Live Webcam and Microphone Streams[^]
12 Mar 2014 by godspeed123
Hi I have been looking through the ffmpeg documentation and samples provided with the library and I can not figure out how to acquire a live stream from a webcam, I know it is possible, but can not figure out how to do this.Does anyone have a tutorial or some sample code to access a...
12 Mar 2014 by Sergey Alexandrovich Kryukov
There are different aspects of this problems. Pretty much everything is described here:https://trac.ffmpeg.org/wiki/StreamingGuide[^],https://trac.ffmpeg.org/wiki/How%20to%20capture%20a%20webcam%20input[^],https://trac.ffmpeg.org/wiki/Streaming%20media%20with%20ffserver[^],see also:...
26 Jan 2016 by paunescuionica
I'm currently developing an application which will enable visualizing images from different sources (mostly IP cameras) in browser (in a HTML5 video element). The UI will allow for matrix view so, normally 16 or more cameras will be displayed at the same time.From cameras I get MJPEG streams...
2 Mar 2015 by AmbiguousName
Hello there. I have tried a number of options to convert a RAW mp4 file into mp4 file and showing the timestamp in it. These options are given as under//////////////////////// FIRST METHOD//// Option timestamp cannot be applied to input file. You are trying to apply input option to...
14 Jul 2014 by godspeed123
Hi ThereI want to merge 2 audio streams together in C/C++ and I think I have to user amerge to do so. I have the 2 audio streams decoded in 16 bit PCM format and I want to merge them properly into one audio file. I looked around for amerge filter example but couldnt find any. Does anyone...
14 Jul 2014 by nv3
The problem seems to be that you don't have a clear idea what it means to "merge" two audio streams. What you probably mean is to mix both audio signals in a way that an audio mixer would do. For that to be possible, the samples of both streams must be taken at the same points in time, i.e. the...
6 Apr 2015 by Bjørn
Using the FFmepg.exe to create video snapshots
30 Nov 2016 by Charly LEE
the input mp3 is single channel with 32000 sample rate, 16bit signed.I am using ffmpeg 2.6 to decode mp3 on ios9.3.2 pad. It get white noise only. but it works on windows.I record the decoded PCM to file and use tool to play it. when I changed the bit set to 32. I can hear the original sound...
30 Nov 2016 by KarstenK
the solution looks really simple. AVPacket avpkt; av_init_packet(&avpkt); // set values AFTER init avpkt.data = encode_packet->data; avpkt.size = encode_packet->data_length;I am a bit confused that your old code works on Windows. But I know that the Objective-C runtime...
7 Jun 2018 by godspeed123
Hi ThereI want to encode audio using FFMPEG, but the problem is the nb_samples of the AVFrame is 22050 but the frame_size of the encoder is 1152. So how can I use avcodec_encode_audio2 function with this. Does anyone have an example of a way to do this?Thanks in advance.
7 Jun 2018 by entangledloops
You need to use a buffer, like a FIFO. See here: FFmpeg/transcode_aac.c at master · FFmpeg/FFmpeg · GitHub[^]
23 Mar 2012 by Member 8751161
I am exhausted searching for a c++ mp3 decoding library, preferably free (like lgpl) and cross-platform or for windows and mac. Can anyone suggest such library and post some tutorial for using it?ffmpeg and sdl (sdl_sound, sdl_mixer) aren't compiling. I am unable to get mpg123 working - is it...
23 Mar 2012 by CPallini
It looks[^] you may actually (cross) compile ffmpeg.
24 Mar 2012 by vonpik
What exactly you want to do with decoded file? a) If you want to play it, use irrKlang. I used it, is easy to understand. There are C++ and C# bindings. It also support many of files (*.mp3, *.ogg, *.wav, *.flac, *.ogg even *.mod (amiga modules). irrKlang have to licenses, free and...
24 Mar 2012 by Sergey Chepurin
How about BASS audio library [^]"BASS is an audio library for use in software on several platforms. Its purpose is to provide developers with powerful and efficient sample, stream (MP3, MP2, MP1, OGG, WAV, AIFF, custom generated, and more via OS codecs and add-ons), MOD music (XM, IT, S3M,...
30 May 2020 by Member 14816523
Hi, I am working on the OpenGL Application. which can open and read multiple video file frames. so, in output is can play three different videos at the same time without async frames rendering. what are odds get the sync frames rendering? After...
15 Jun 2013 by Hitesh Rohilla
I want to combine two videosvideo details-------------1. Movie1.mp4 Video duration 62 seconds2. Movie2.mp4 Video duration 8 secondsI want to combine [overlay] these two videos with ffmpeg but what i want is that Movie2.mp4 repeat itself again and again and Movie1.mp4 runs as...
6 Aug 2014 by Aashish_stellar
Hello Guys, I am working on ffmpeg using its libraries on mac OSx. I am trying to transcode a video. For this I am using this : const char* inFileName = "C:\\abc.avi"; av_register_all(); AVFormatContext* inContainer = NULL; if(avformat_open_input(&inContainer, inFileName, NULL,...
20 Apr 2013 by liaoyuandeyehuo
I use this way to convert bitmap to yuv Save bitmap to video (libavcodec ffmpeg) and then save the buffer like this: FILE* fp=fopen("aha.yuv","w"); if(!fp) return NULL; fwrite(outPic->data[0],nbytes,1,fp); fwrite(outBuffer,nbytes,1,fp); fclose(fp); but it has only several lines.All most all of...
21 Apr 2013 by merano
1. Please format your Source with code tag like thisFILE* fp=fopen("aha.yuv","w");if(!fp) return NULL;fwrite(outPic->data[0],nbytes,1,fp); fwrite(outBuffer,nbytes,1,fp);fclose(fp);2. You should use fopen() in binary mode3. Can´t see writing you Fileheader or Bitmap-Header,...
4 Oct 2017 by StefanAdmin@123
I want to convert a raw files to mp4 video format using ffmpeg and i want to implement it using C++. How do i go about it. I have configured libs and include folder in visual studio set up.I will be glad if i could get a useful link or sample code in C++. What I have tried: I don't know how to...
4 Oct 2017 by KarstenK
You best start at the ffmpeg documentation site. I also like to mention the ffmpeg examples. Maybe that stackoverflow answer helps you in your problem. It is a complex library so you will have to learn a lot.
23 Feb 2021 by Bohdan Stupak
A simple snippet of how you can convert video in .NET Core
14 Mar 2013 by OSHO580
Hello friends,I want to develop wrapper class in VC++ 2010 of ffmpeg.c. is it possible or not . If it possible please guide me how can i start to do this work. I have already started but i got lot of linker error. I have also mentioned extern "C" for header file . I have also included all lib...
19 Aug 2014 by godspeed123
HiI am trying to setup live555 to stream rtsp with an ondemandserver from a microphone, but I am not sure how to do so. I have attempted to do this by overriding OnDemandServerMediaSubsession and FramedSource, but I am running into issues where I hear a bit of sound for half a second and...
11 Sep 2020 by Sharma Dilip
I have a PCAP file having the encoded video data. I am using TCPReplay to broadcast this PCAP data to my server. In my server I have written a QT UDP socket program to receive these packets. I am able to receive these packets successfully in my...
11 Sep 2020 by KarstenK
You should contact the folks of tcpreplay. Normally you have some decoding functions which are doing the jobs. Best is to search for some sample code.
15 Oct 2013 by CodingHell
I'm working on a project in which I'll have to encode my audio data.I can capture the audio and create a .wav file but I want to compress it and make it an mp3 or .aac file.I'm using ffmpeg for encoding.If someone has done this.. Please help me.If necessary I'll post my code and...
6 Jan 2021 by Richard MacCutchan
See ffmpeg Documentation[^]
4 Jun 2023 by Nobunaji
Hi, i have the following complex_filter in a fluent-ffmpeg function : .complexFilter([ { filter: "volume", options: [string], inputs: "1", outputs: 'audio', eval: 'frame' }, { filter:...
10 Sep 2016 by Richard MacCutchan
See VideoFileReader Class[^] for instructions on installation and usage.
10 Sep 2016 by ghasem110deh
hi guy'si use Aforge lib in my project for capture image and record live video from webCam ...but when use ffmpeg.dll to save AVI file from webCam send this Error :private VideoFileWriter FileWriter = new VideoFileWriter(); FileWriter.Open("test.avi", 460, 500, 25,...
8 May 2012 by AR1988
HiDoes anyone know how to use the ffmpeg tool to add a watermark to a video,if anyone does please I need the syntax and the resources required if addition dlls are to be introduced.Thanks in advance.
8 May 2012 by Manfred Rudolf Bihy
Here is a video that hows you how to do it: Add a Watermark to a Video with ffmpeg[^]. This video shows how to do it under unix. If you're on windows just vhook the watermark.dll instead of watermark.so.Please always try something first!Regards,Manfred
10 Jul 2014 by godspeed123
Hi ThereI am trying to understand the pts value in an audio encoded packet in ffmpeg.I checked my timebase to be 1/44100and some pts values : 70754080000, 70759090000, back to back packet pts values.I dont know how to convert that to real time. I would imagine it having...
11 Jul 2014 by KarstenK
read the avformat.h there stands:/* AVPacket.pts, AVPacket.dts and AVPacket.duration timing information will be * set if known. They may also be unset (i.e. AV_NOPTS_VALUE for * pts/dts, 0 for duration) if the stream does not provide them. The timing * information will be in...
17 Jun 2014 by godspeed123
Hi ThereI am looking for some code that will allow me to to convert PM audio to AAC. I have written an attempt at it but I keep getting error -22 when trying to do the econding. Code is written below. Any help would be greatly appreciated!while( res = av_read_frame( pFormatCtx,...
17 Jun 2014 by KarstenK
you have better chances by searching ffmpeg contacts direct.Looks like here is some sample code available.
17 Jun 2014 by Sergey Alexandrovich Kryukov
I have one specific advice for you: build the utility ffmpeg.exe and give it the command-line arguments likeffmpeg -i someInputFile.wav outputFile.aacRun it under the debugger and see what happens. This is a great library and utility, but it's very big and have some legacy "noise" in it, due...
5 Nov 2023 by V. Subhash
A simple fix for excessively bright video and low-volume audio
23 Jul 2014 by SoSoLue
I got some question, in my code,this project will get video stream from camera,and encoder with ffmpeg lib and x264,then both save in a .mp4 file, upload to rtmp server.now, when I stop get stream and encode,VS2012 show the memory leak, but it cant locate the memory leak code.can...
16 Aug 2018 by Member 13948830
I am working on a small project that needs to use ffmpeg to pull out some video from the main video. I have called the following within a command prompt and get my 8 second video named correctly in the folder: ffmpeg -ss 00:47:25 -t 8 -i C:\\Personal\\TestData\\MainVideo.mp4 -vcodec copy...
16 Aug 2018 by Member 13948830
This is what I did to finally get it to work var processStartInfo = new ProcessStartInfo(@"C:\FFmpeg\bin\ffmpeg.exe"); processStartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; ...
9 Nov 2017 by arunavachowdhury
This is a simple code to create ffmpeg log output in a file instead of console. But this code doesn't create an output log file wherein the same arrangements when used in command prompt it works. Can anybody help in this? what more needs to be done to get the output in the log file? Regards...
8 Nov 2017 by Richard MacCutchan
A quick check with your debugger would show you that your parameters are wrong as you have unescaped backslashes in your strings. So the code: string fullPath = "d:"; string fileName= "wildlife.wmv"; string pathfile = "D:"; process.StartInfo.Arguments = "-i \"" +...
9 Nov 2017 by arunavachowdhury
Tried with the above code but its not working. When we run ffmpeg with the same code we need to remove the final "\" after ffmpeglog.log to generate the log. When I am using " -i \"d:\\wildlife.wmv 2> \"D:\\ffmpeglog.log\"" The log is not generating but cannot remove the "\" from the string...
3 May 2018 by Hitesh Rohilla
I am not a pro in FFMPEG but since working on it on non-frequent bases I tried to search for the solution but didn't get one However, I get one for RTSP FFMPEG -rtsp_transport tcp -i "rtsp://://" -f mpegts -codec:v mpeg1video -b:v 800k -r 30 - But my streaming is...
3 Jun 2013 by Hitesh Rohilla
I am working on a video processing project and using ffmpeg for watermarking. I achieve exactly what i want but the problem is that the process is very very slow.I am using a Intel Smart 2nd gen family Core-i5 Processor with 4GB RAM on a 32 bit operating system Microsoft Windows-8 on a...
9 Jun 2016 by Member 11549235
Hi, I'm working on a FFMPEg Project and trying to write a file with a stream. But when I call avformat_write_header it always throws an errr. Here's the code:AVCodecContext *codecctx; AVFormatContext *fmtctx; fmt=av_guess_format(NULL,filename,NULL); if(!fmt) printf("Das Format kann...
8 Jun 2016 by Jochen Arndt
Like Richard I do not know ffmpeg well. But the documentation for avformat_write_header[^] states for the first parameter:Quote:Media file handle, must be allocated with avformat_alloc_context(). Its oformat field must be set to the desired output format; Its pb field must be set to an...
9 Jun 2016 by Member 11549235
The Problem is i forgot to call avio_open. Now I'm trying to add a png Image to the stream, but don't know how to convert it to an useable Frame. Can you give me some hints?
16 Mar 2014 by godspeed123
Hi ThereI have a h264 encoded stream in ffmpeg, but i want to transfer it out via RTSP, RTP/UDP, I know FFMPEG has the capability but I dont know where to start. I there a C++ tutorial showing this, or some sample code to start with?Thanks in advance!
20 Apr 2014 by godspeed123
Hi ThereI have used ffmpeg to compress raw data to h264. Few questions, when the image is compressed is the PPS/SPS going to be at the front of each compressed frame? I see that there is a 0001 in front of the data, is there some way of passing the frame to a h264 dump application to...
20 Sep 2018 by paunescuionica
I cannot visualize a H264/MP4 stream generated by ffmpeg in Chrome, IE, Edge. It works only in Firefox. My testing environment is Windows 10, all updates done, all browsers up to date. What I have tried: I have a source MJPEG stream, which I need to transcode to H264/MP4 and show it in...
16 Jul 2014 by Vlad Budeac
var player = new WindowsMediaPlayer();var clip = player.newMedia(file.FullName);lblLenght_.Text = (TimeSpan.FromSeconds(clip.duration)).ToString(); ShellFile shellFile = ShellFile.FromFilePath(file.FullName);lblFPS_.Text = (shellFile.Properties.System.Video.FrameRate.Value /...
16 Jul 2014 by Sergey Alexandrovich Kryukov
Do on simple step, look not at FFMPeg application, but at FFProbe. You can always download its source code and see what it does. Then, you can either start FFProbe as a separate process with appropriate command-line parameters, redirect its output stream StandardOutput (and StandardError) and...
26 Oct 2017 by Graeme_Grant
You want to "capture" the output? This should answer your question: Capturing console output from a .NET application (C#) - Stack Overflow[^]
26 Oct 2017 by hsafavi
I want to catch devices using ffmpeg.exe. i used Process class and related ffmpeg command but no success What I have tried: i used following code but the output is nothing!! i think it happens because the process exited as soon as process.start() executed. how can i do that? static void...
1 Feb 2024 by El Bunda7
I had the same issue. I was redirecting the standard output, but FFmpeg outputs text messages to the standard error. static void Main(string[] args) { ProcessStartInfo startInfo = new ProcessStartInfo(); ...
18 Dec 2015 by Member 11324668
Hi i have a simple question, i have window service that run in specific interval.Now i have one issue when user upload a big file and during same time window service run and convert that file to mp4 using ffmpeg but original video is not uploaded completely. therefor converted video does not...
18 Dec 2015 by Jochen Arndt
Your FTP server should know which files are actually being uploaded.A good implemented server would also lock the file even for reading while the upload is in progress. Then your service might detect the new file but will be not be able to open it.If there is no read lock, there should...
25 Jul 2013 by hbbiao
looking for advice on how to learn directshow and ffmpeg.i have compiled some projects available on the internet ,but i still can't quite understand ,especially how to syncronize audio and video ,is timestamp contained in the file container like avi, mpeg,or included somewhere else ,because i...
18 May 2019 by son0nline
How can sound be recorded programmatically in Windows into mp3? What I have tried: Nothing - this is an old question that deserve an answer for the rest of the Code Project community.
18 May 2019 by Michael Haephrati
I would start here[^] and follow the guidelines.
19 Jun 2020 by Jo Aqra
I'm trying stream live audio to a wide range of clients in a web browser. My current solution : Dotnet core 3.1 console application -receive the audio data over UDP -trimming the first 28 bytes of each received packet -and send the processed...
10 May 2021 by Member 15192080
Hi everyone, I'm trying to convert with ffmpeg-python every frame of a video in a numpy array that could work with opencv What I have tried: Here my code: for i in (frames): out, _ = ( ffmpeg ...
30 Jul 2015 by Atom Scott
First, I'm fairly new to see sharp so I'm looking for a thorough and easy to understand answer.How do I make a C# win form program that breaks a video down to frames, then puts those frames back together to make a video?I also want to be able to select which frames to extract by setting an...
30 Jul 2015 by CHill60
If you can't understand the code presented we are unlikely to be able to help you much in a Quick Answers Forum! However - your first link - you can put the code wherever you like. A button click event would be appropriate, amongst other options.The missing reference on your 2nd link is...
1 Sep 2021 by bazzabahuloo
Hi I have an AVPlayer written in Delphi using the FFMPEG libraries. This basically implements a video player as per FFPLAY but under Delphi. I want to add variable speed video playback to this player, which is easy on the video side as you...
2 Sep 2021 by bazzabahuloo
I managed to get this working for me by making a change in the stream reader thread for Audio when video is playing at anything other than normal speed. I am not sure this is the correct place, but it seems to work well at both high and low...
24 Aug 2014 by Member 10235977
I am trying to upload video files in an ASP.NET website using C#. I have downloaded ffmpeg library files from www.afterdawn.com/software/audio_video/convert_video/ffmpeg.cfm"and pasted it in a folder ffmpeg. my ffmpeg has a subfolder also named ffmpeg contaiing files ffmpeg.exe,...
24 Aug 2014 by Sergey Alexandrovich Kryukov
This approach can work, but you are not doing all appropriate steps. First of all, you need to formulate the question accurately. FFMpeg has nothing to deal with "uploading" (however, it can be very helpful for downloading files delivered through some streaming protocol, a tool which is hard to...
9 Oct 2014 by Member 10235977
I am trying to use ffmpeg to convert a video to mpg on my ASP.NET site (C#)My code is as follows:string videoname = name of video uploaded on site in folder Videos without extenstion; string videoext = extension of video //or example .mpg) //...
29 Aug 2016 by hansonzou
the particulars is i save a rtsp stream to ts file by ffmpeg per 10 second , it may last for a long time(more than 26.5hour), when it done, it will save a m3u8 file, after that, i use ffplay to play then m3u8 file, if i want to seek to 26.7hour , the play must be stoped. -----PTS (sec) =...
29 Aug 2016 by KarstenK
The only way I see is to split the files in parts with playtime less but roughly the 26.5 h and than compute the offset and seek the correct subfile.
26 Jun 2021 by Eric Stevens 2021
I've been referencing this article about how to create a custom IO-Context with FFmpeg, but he invoked the use of an IStream interface. I am simply just trying to use an std::ifstream object in order to create the Context and proceed with opening...
26 Jun 2021 by KarstenK
It looks like you missed some steps to create working code with not initializing your audio_file. It needs to be created before used. Maybe you read some ffmpeg tutorial to start. The ffmpeg is tricky so stick the documentation and working code...
26 Mar 2020 by Member 14129828
I tried to create a video from a sequence image using FFmpeg in c#. I wrote this code but I didn't get the output how to solve this problem...thanks What I have tried: public void Execute() { using (var...
26 Mar 2020 by Maciej Los
Please, take a look at answered question: Converting Images into Video using C#[^] You can also be interested in this project: GitHub - mmaitre314/PictureMovie: Create MP4 videos from JPG/PNG/GIF/BMP images[^] Other links:...
28 Feb 2014 by radnix
GreetingsI'm looking at an ffmpeg source code example at :http://svn.perian.org/ffmpeg/ffmpeg.c[^]In the code, I'm focusing on a method that writes the video frame.Here is that method:static void write_frame(AVFormatContext *s, AVPacket *pkt, AVCodecContext *avctx,...
4 Mar 2014 by radnix
Well, I did finally get it working and will post my particular solution here with the hope it may help others. Oh, almost forgot. If you have a suggestion for change to this code, please do:static void write_frame(AVFormatContext *s, AVPacket *pkt, AVCodecContext *avctx,...
5 Jun 2015 by Igor Oleynikov
AVPacket new_pkt = pkt;int a = av_bitstream_filter_filter(m_bsfDecoderContext, out_stream->codec, NULL, &new_pkt.data, &new_pkt.size, pkt.data, pkt.size, pkt.flags & AV_PKT_FLAG_KEY); av_free_packet(&pkt); pkt.data = new_pkt.data; pkt.size =...
26 Jul 2015 by parisonj
Hi,Does anyone have any good tips or practical experience on controlling the playback rate of video/audio streams?Using SetRate() doesn't seem to give me reliable (smooth) results, certainly above values of 2.0, and often locks up completely.Ideally, I need to typical rates of x1, x2,...