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

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

Merge video and audio with ffmpeg. Loop the video while audio is not over

If you want to merge new Audio with video repeat video until the audio finishes, you can try this: ffmpeg -stream_loop -1 -i input.mp4 -i input.mp3 -shortest -map 0:v:0 -map 1:a:0 -y out.mp4 Using -stream_loop -1 means infinite loop input.mp4, -shortest means finish encoding when the shortest input stream ends. Here the shortest input stream … Read more

ffmpeg concat produces DTS out of order errors

All videos for FFMPEG concatenate should have matching encoding, fps and so on, otherwise you’ll get unexpected results. I guess, it’s hard to get by without re-encoding if your videos come from different sources. I had to look though lots of solutions, the working ones would suggest converting your videos to the same intermediate format … Read more

How to get h264 video info?

I’ve found out that the best way for this is using FFprobe with -show_streams parameter. It shows both h.264 profile and B-frames usage for video streams of the movie. ffprobe -show_streams -i “file.mp4” [STREAM] index=0 codec_name=h264 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 profile=High codec_type=video codec_time_base=1001/48000 codec_tag_string=avc1 codec_tag=0x31637661 width=1920 height=1080 has_b_frames=0 sample_aspect_ratio=0:1 … Read more

Howto merge two avi files using ffmpeg?

You should look into the concat demux and concat protocol that was added in ffmpeg 1.1. Assuming the codecs are the same you create a file (example mylist.txt): file ‘/path/here/file1.avi’ file ‘/path/here/file2.avi’ file ‘/path/here/file3.avi’ Then pass that file to ffmpeg ffmpeg -f concat -i mylist.txt -c copy video_draft.avi You can use this command to make … Read more

Using FFMPEG: How to do a Scene Change Detection? with timecode?

Combining the scene filter (for detecting scene changes) and the showinfo filter should achieve what you want: ffmpeg -i input.flv \ -filter:v “select=”gt(scene,0.4)”,showinfo” \ -f null \ – 2> ffout This command extracts all frames that differ from the previous frame by more than (gt) 0.4 (on a scale from 0 to 1). For these … Read more

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