How can I get the resolution (width and height) for a video file from a linux command line?

Use ffprobe (part of FFmpeg toolkit) example: ffprobe -v quiet -print_format json -show_format -show_streams ~/Movies/big_buck_bunny_720p_5mb.mp4 output: { “streams”: [ { “index”: 0, “codec_name”: “h264”, “codec_long_name”: “H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10”, “profile”: “Main”, “codec_type”: “video”, “codec_time_base”: “1/50”, “codec_tag_string”: “avc1”, “codec_tag”: “0x31637661”, “width”: 1280, “height”: 720, “coded_width”: 1280, “coded_height”: 720, “has_b_frames”: 0, … Read more

HTML5 element on Android

I’ve just done some experimentation with this, and from what I can tell you need three things: You must not use the type attribute when calling the video. You must manually call video.play() The video must be encoded to some quite strict parameters; using the iPhone setting on Handbrake with the ‘Web Optimized’ button checked … Read more

Solid FFmpeg wrapper for C#/.NET

This is a wrapper of my own: https://github.com/AydinAdn/MediaToolkit MediaToolkit can: Convert video files into various other video formats. Perform video transcoding tasks. Options configurable: Bit rate, Frame rate, Resolution / size, Aspect ratio, Duration of video Perform audio transcoding tasks. Options configurable: Audio sample rate Convert video to physical formats using FILM, PAL or NTSC … Read more

How to add transparent watermark in center of a video with ffmpeg?

Examples to add a watermark / logo image on video using the overlay filter. Centered ffmpeg -i input.mp4 -i logo.png -filter_complex “overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2” -codec:a copy output.mp4 or with the shortened overlay options: overlay=(W-w)/2:(H-h)/2 Top left This is the easy one because the default, if you provide no options to overlay, is to place the image in … Read more

HTML5 – How to stream large .mp4 files?

Ensure that the moov (metadata) is before the mdat (audio/video data). This is also called “fast start” or “web optimized”. For example, Handbrake has a “Web Optimized” checkbox, and ffmpeg and avconv have the output option -movflags faststart. Ensure that your web server is reporting the correct Content-Type (video/mp4). Ensure that your web server is … Read more

Play local (hard-drive) video file with HTML5 video tag?

It is possible to play a local video file. <input type=”file” accept=”video/*”/> <video controls autoplay></video> When a file is selected via the input element: ‘change’ event is fired Get the first File object from the input.files FileList Make an object URL that points to the File object Set the object URL to the video.src property … Read more

Download content video from video stream with a path of .TS or .m3u8 file through actual code so i can make chrome extension [closed]

Easy youtube-dl example on macOS (in the command line Terminal; Windows supported too): # List variants (resolutions/bitrates) $ youtube-dl -F https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8 [generic] f08e80da-bf1d-4e3d-8899-f0f6155f6efa: Requesting header [generic] f08e80da-bf1d-4e3d-8899-f0f6155f6efa: Downloading m3u8 information [info] Available formats for f08e80da-bf1d-4e3d-8899-f0f6155f6efa: format code extension resolution note audio-English_stereo mp4 audio only [en] 628 mp4 320×180 628k , avc1.42c00d, video only 928 mp4 … Read more

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