====== FFMPEG ====== ===== Obtenir des infos sur une vidéo ===== ==== Avec FFMPEG ==== ffmpeg -i "mavideo.mov" -hide_banner résultat : Guessed Channel Layout for Input Stream #0.1 : mono Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'videotest.mov': Metadata: creation_time : 2005-01-27 10:47:57 comment : KONICA MINOLTA DIGITAL CAMERA comment-eng : KONICA MINOLTA DIGITAL CAMERA Duration: 00:00:12.27, start: 0.000000, bitrate: 2541 kb/s Stream #0:0(eng): Video: mjpeg (jpeg / 0x6765706A), yuvj422p(pc, bt470bg/unknown/unknown), 320x240, 2373 kb/s, 15 fps, 15 tbr, 600 tbn, 600 tbc (default) Metadata: creation_time : 2005-01-27 10:47:57 encoder : Photo - JPEG Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 7875 Hz, 1 channels, s16, 126 kb/s (default) Metadata: creation_time : 2005-01-27 10:47:57 At least one output file must be specified ==== Avec FFPROBE ==== ffprobe -i "mavideo.mp4" -show_streams -show_format -print_format json -hide_banner Résultat : { Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'videotest.mov': Metadata: creation_time : 2005-01-27T10:47:57.000000Z original_format : Digital Camera original_format-eng: Digital Camera comment : KONICA MINOLTA DIGITAL CAMERA comment-eng : KONICA MINOLTA DIGITAL CAMERA Duration: 00:00:12.27, start: 0.000000, bitrate: 2541 kb/s Stream #0:0(eng): Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj422p(pc, bt470bg/unknown/unknown), 320x240, 2373 kb/s, 15 fps, 15 tbr, 600 tbn, 600 tbc (default) Metadata: creation_time : 2005-01-27T10:47:57.000000Z encoder : Photo - JPEG Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 7875 Hz, 1 channels, s16, 126 kb/s (default) Metadata: creation_time : 2005-01-27T10:47:57.000000Z "streams": [ { "index": 0, "codec_name": "mjpeg", "codec_long_name": "Motion JPEG", "profile": "Baseline", "codec_type": "video", "codec_time_base": "1/15", "codec_tag_string": "jpeg", "codec_tag": "0x6765706a", "width": 320, "height": 240, "coded_width": 320, "coded_height": 240, "closed_captions": 0, "has_b_frames": 0, "pix_fmt": "yuvj422p", "level": -99, "color_range": "pc", "color_space": "bt470bg", "chroma_location": "center", "refs": 1, "r_frame_rate": "15/1", "avg_frame_rate": "15/1", "time_base": "1/600", "start_pts": 0, "start_time": "0.000000", "duration_ts": 7360, "duration": "12.266667", "bit_rate": "2373453", "bits_per_raw_sample": "8", "nb_frames": "184", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0, "timed_thumbnails": 0 }, "tags": { "creation_time": "2005-01-27T10:47:57.000000Z", "language": "eng", "encoder": "Photo - JPEG" } }, { "index": 1, "codec_name": "pcm_s16be", "codec_long_name": "PCM signed 16-bit big-endian", "codec_type": "audio", "codec_time_base": "1/7875", "codec_tag_string": "twos", "codec_tag": "0x736f7774", "sample_fmt": "s16", "sample_rate": "7875", "channels": 1, "bits_per_sample": 16, "r_frame_rate": "0/0", "avg_frame_rate": "0/0", "time_base": "1/7875", "start_pts": 0, "start_time": "0.000000", "duration_ts": 96600, "duration": "12.266667", "bit_rate": "126000", "nb_frames": "96600", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0, "timed_thumbnails": 0 }, "tags": { "creation_time": "2005-01-27T10:47:57.000000Z", "language": "eng" } } ], "format": { "filename": "videotest.mov", "nb_streams": 2, "nb_programs": 0, "format_name": "mov,mp4,m4a,3gp,3g2,mj2", "format_long_name": "QuickTime / MOV", "start_time": "0.000000", "duration": "12.266667", "size": "3897036", "bit_rate": "2541545", "probe_score": 100, "tags": { "creation_time": "2005-01-27T10:47:57.000000Z", "original_format": "Digital Camera", "original_format-eng": "Digital Camera", "comment": "KONICA MINOLTA DIGITAL CAMERA ", "comment-eng": "KONICA MINOLTA DIGITAL CAMERA " } } } ===== Sources & Ressources ===== ==== Vidéos ==== * [[https://www.youtube.com/watch?v=xJQBnrJXyv4|Download HLS Streaming Video with PowerShell and FFMPEG]]