Change keyframe interval

You’ll need to reencode. Set x264’s keyint parameter to 5*fps and disable scenecut. If your fps is 24 for example : ffmpeg -i <input> -vcodec libx264 -x264-params keyint=120:scenecut=0 -acodec copy out.mp4 This is obviously not optimal for quality but it’ll match your demand. Edited to change no-scenecut to scenecut=0, as per sigh-boy suggestion.

Getting realtime output from ffmpeg to be used in progress bar (PyQt4, stdout)

In this specific case for capturing ffmpeg’s status output (which goes to STDERR), this SO question solved it for me: FFMPEG and Pythons subprocess The trick is to add universal_newlines=True to the subprocess.Popen() call, because ffmpeg’s output is in fact unbuffered but comes with newline-characters. cmd = “ffmpeg -i in.mp4 -y out.avi” process = subprocess.Popen(cmd, … Read more

Pipe input in to ffmpeg stdin

ffmpeg has a special pipe flag that instructs the program to consume stdin. note that almost always the input format needs to be defined explicitly. example (output is in PCM signed 16-bit little-endian format): cat file.mp3 | ffmpeg -f mp3 -i pipe: -c:a pcm_s16le -f s16le pipe: pipe docs are here supported audio types are … Read more

How to download .m3u8 in once time

The correct way to concat multiple video files from m3u8 playlist is ffmpeg -i “http://example.com/chunklist.m3u8” -codec copy file.mp4 the m3u8 playlist can be on web or locally in directory it contains list of file paths relative to the playlist -codec copy to avoid encoding (which takes time) container type matters: *.mp4 is fine but it … Read more

How can I generate a video file directly from an FFmpeg filter with no actual input file?

It looks like the options have changed slightly in recent versions. To use the filter input sources, you have to: Set the input format to the libavfilter virtual device using: -f lavfi Set the filter input source using the -i flag (not -vf) Provide arguments as complete key-value pairs, like: color=color=red This works for ffplay, … Read more

How to get real time video stream from iphone camera and send it to server?

The way I’m doing it is to implement an AVCaptureSession, which has a delegate with a callback that’s run on every frame. That callback sends each frame over the network to the server, which has a custom setup to receive it. Here’s the flow: http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/03_MediaCapture.html#//apple_ref/doc/uid/TP40010188-CH5-SW2 And here’s some code: // make input device NSError *deviceError; … Read more

Best approach to get RTSP streaming into web browser from IP Camera?

Here is a blog entry, or tutorial if you will, that achieves something very similar. Their setup slightly different, but this is the summary: use ffmpeg to convert your input into mpeg1video: ffmpeg -i rtsp://whatever -f mpeg1video -b 800k -r 30 http://localhost:8082/yourpassword/640/480/ Install node.js with stream-server.js script from jsmpeg and ws ws WebSocket package. To … Read more

convert H264 video to raw YUV format

Yes you can, you just have to specific the pixel format. To get the whole list of the format: ffmpeg -pix_fmts | grep -i pixel_format_name For example if you want to save the 1st video track of an mp4 file as a yuv420p (p means planar) file: ffmpeg -i video.mp4 -c:v rawvideo -pix_fmt yuv420p out.yuv

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)