Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
How to install ffmpeg in Xampp ?
10 juin 2016, par Don DonlleiHow do I install ffmpeg on Xampp?
I tried this but it did not work Install FFMPEG on XAMPP
Use: PHP Version 5.6.15, Windows 10, 64bits
-
SDL_AddTimer and threading, clearing timer queue
10 juin 2016, par William SeemannI'm writing a media player based on FFmpeg and I have a design issue. My code calls a function to render video frames at irregular intervals using SDL's SDL_AddTimer function. My problem is this, if I want to perform garbage collection when one video ends (or playback is stopped) and another starts, how can I ensure that I have no more timers in the queue or in the middle of execution as to avoid accessing an object that suddenly has been freed.
-
How to flush buffer data to disk when using FFmpeg to write a mp4 file ?
9 juin 2016, par SeanI am using FFmpeg to write a mp4 file, I grab bitmap images from remote IP camera and encode it by h.264, the media container is mp4 file, no problem to generate the MP4 file if I only record several minutes, the problem is FFmpeg never flushs buffer data to disk when I call method "av_interleaved_write_frame"(all encoded data in memory, never free them), only when I call method "avio_close(oc->pb);", it will flush all encoded data to disk, I tried to call method "avcodec_flush_buffers" every time after calling "av_interleaved_write_frame", but no effect. I am newbie to FFmpeg, if you are familiar with FFmpeg, please help me.
thanks in advance.
Sean
-
What is the correct way to pass cookies by ffmpeg ?
9 juin 2016, par Don DonlleiI'm trying to use ffmpeg to download a video from a list M3U8. But I'm having trouble passing cookie, I need to spend two cookie values which would be the right way to do this? with -headers or -cookie
I tried this
ffmpeg -cookies "cookiesent1=value1; path=/4947858-manifest.ism/; domain=example.com;"'\r\n' "cookiesent2=value2; path=/; domain=example.com;" -i "https://example.com/list.m3u8" -c copy -bsf:a aac_adtstoasc video.ts
But not properly work the only thing is that returns
Trailing options were found on the commandline. Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Use -h to get full help or, even better, run 'man ffmpeg'
-
ffmpeg issue when recording screen+microphone+(music from file)
9 juin 2016, par Taras NikulinI'm trying to record using this command:
ffmpeg -f avfoundation -pix_fmt nv12 -i "1:0" -r 30 -i monoSound.aac -filter_complex amerge=inputs=2 -vcodec h264 -qscale:v 0 -acodec aac -ab 128k -ac 1 -ar 44100 -async 30 outScreen.mp4
I get such error:
The following filters could not choose their formats: Parsed_amerge_0 Consider inserting the (a)format filter near their input or output. Error configuring complex filters. Input/output error
If i rewove this "-async 30", then no errors appear in terminal. But on final video sound will disappear after couple seconds.