Getting video dimension / resolution / width x height from ffmpeg

Use ffprobe Example 1: With keys / variable names ffprobe -v error -show_entries stream=width,height -of default=noprint_wrappers=1 input.mp4 width=1280 height=720 Example 2: Just width x height ffprobe -v error -select_streams v -show_entries stream=width,height -of csv=p=0:s=x input.m4v 1280×720 Example 3: JSON ffprobe -v error -select_streams v -show_entries stream=width,height -of json input.mkv { “programs”: [ ], “streams”: [ … Read more

How to merge videos by avconv?

mp4 files cannot be simply concatenated, as the “accepted” answer suggests. If you run that, and that alone, you’ll end up with output.mp4 having only the contents of file1.mp4. That said, what you’re looking to do in the original question can in fact be done, as long as you split original file into mpeg streams … Read more

How to compare/show the difference between 2 videos in ffmpeg?

Comparison of decoded data with MD5 hash You can use the FFmpeg MD5 muxer to show that the decoding results in the exact same output: Get MD5 hash of the video stream from your original input: $ ffmpeg -loglevel error -i original.vid -map 0:v -f md5 – MD5=5ee3ae1ee5feaf30618938290225f682 Convert to a lossless output: $ ffmpeg … Read more

Re-sampling H264 video to reduce frame rate while maintaining high image quality

A lot has changed since this posting in 2012. I am adding this answer for people like me who find this from the search engines. I had good luck with the following: ffmpeg -y -i source.mp4 -r 25 -s 160×90 -c:v libx264 -b:v 3M -strict -2 -movflags faststart destination.mp4 Here’s a short explanation on what … Read more

HTML5 Video Autoplay not working correctly

Chrome does not allow autoplay if the video is not muted. Try using this: <video width=”440px” loop=”true” autoplay=”autoplay” controls muted> <source src=”http://www.tuscorlloyds.com/CorporateVideo.mp4″ type=”video/mp4″ /> <source src=”http://www.tuscorlloyds.com/CorporateVideo.ogv” type=”video/ogv” /> <source src=”http://www.tuscorlloyds.com/CorporateVideo.webm” type=”video/webm” /> </video>

FFmpeg: How to convert vertical video with black sides, to video 16:9, with blurred background sides

I solved! ffmpeg -i input.mp4 -lavfi ‘[0:v]scale=ih*16/9:-1,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[bg][0:v]overlay=(W-w)/2:(H-h)/2,crop=h=iw*9/16’ -vb 800K output.webm Input: https://www.youtube.com/watch?v=17uHCHfgs60 Output: http://www.youtube.com/watch?v=CgZsDLfzrTs

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