Recherche avancée

Médias (91)

Autres articles (51)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (7998)

  • Why is FFProbe (using fluent-ffmpeg) returning incomplete and inaccurate metadata ?

    18 avril 2024, par volume one

    I am returning metadata about a file using ffprobe. The file can be found here.

    


    I am using fluent-ffmpeg in Node.js which shouldn't make any difference. Its just nicer to use than a command-line.

    


    The code goes like this :

    


    ffmpeg.ffprobe('https://devxxx001.s3.amazonaws.com/vertical-hd_720_1280_30fps.mp4'), function (err, metadata) {
 console.log(JSON.stringify(metadata));
});


    


    The metadata output I receive is this :

    


    {
  "streams": [
    {
      "index": 0,
      "codec_name": "h264",
      "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
      "profile": "High",
      "codec_type": "video",
      "codec_tag_string": "avc1",
      "codec_tag": "0x31637661",
      "width": 720,
      "height": 1280,
      "coded_width": 720,
      "coded_height": 1280,
      "closed_captions": 0,
      "film_grain": 0,
      "has_b_frames": 2,
      "sample_aspect_ratio": "N/A",
      "display_aspect_ratio": "N/A",
      "pix_fmt": "yuv420p",
      "level": 32,
      "color_range": "tv",
      "color_space": "bt709",
      "color_transfer": "bt709",
      "color_primaries": "bt709",
      "chroma_location": "left",
      "field_order": "progressive",
      "refs": 1,
      "is_avc": "true",
      "nal_length_size": 4,
      "id": "0x1",
      "r_frame_rate": "30/1",
      "avg_frame_rate": "30/1",
      "time_base": "1/30",
      "start_pts": 0,
      "start_time": 0,
      "duration_ts": 267,
      "duration": 8.9,
      "bit_rate": 2382497,
      "max_bit_rate": "N/A",
      "bits_per_raw_sample": 8,
      "nb_frames": 267,
      "nb_read_frames": "N/A",
      "nb_read_packets": "N/A",
      "extradata_size": 47,
      "tags": {
        "creation_time": "2020-05-19T10:09:46.000000Z",
        "language": "und",
        "handler_name": "L-SMASH Video Handler",
        "vendor_id": "[0][0][0][0]",
        "encoder": "AVC Coding"
      },
      "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,
        "captions": 0,
        "descriptions": 0,
        "metadata": 0,
        "dependent": 0,
        "still_image": 0
      }
    }
  ],
  "format": {
    "filename": "https:/devxxx001.s3.amazonaws.com/vertical-hd_720_1280_30fps.mp4",
    "nb_streams": 1,
    "nb_programs": 0,
    "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
    "format_long_name": "QuickTime / MOV",
    "start_time": 0,
    "duration": 8.9,
    "size": 2654719,
    "bit_rate": 2386264,
    "probe_score": 100,
    "tags": {
      "major_brand": "mp42",
      "minor_version": "0",
      "compatible_brands": "mp42mp41isomavc1",
      "creation_time": "2020-05-19T10:09:46.000000Z"
    }
  },
  "chapters": []
}


    


    I need to know the aspect ratio of the video so that I can display it properly but ffprobe is returning "N/A" :

    


     "sample_aspect_ratio": "N/A",
 "display_aspect_ratio": "N/A",


    


    In addition, if I want to know the video container format (mp4 in this case), it is showing multiple formats instead of just one :

    


     "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
 "format_long_name": "QuickTime / MOV",


    


    I believe it may be an issue with the ffprobe command but I am unable to pass it options like on the command-line. Even then I don't know what options need to be passed to get the correct metadata.

    


  • Set video's metadata by Python

    17 février 2023, par Anton Bohatov

    I need to upload the video to Google Photos. There is no way to set a date in request, only by metadata. I made a test by setting the date manually (windows, file options) and it works in Google Photos. So, I don't understand how to set it by Python. I found the needed value, but I can't set it.

    


    import ffmpeg

file_path = r"test.MP4"
vid = ffmpeg.probe(file_path)

vid['streams'][0]['tags']['creation_time']


    


    Result '2020-11-01T20:07:09.000000Z'

    


    I tried vid['streams'][0]['tags']['creation_time'] = '2015-11-01T20:07:09.000000Z'

    


    But nothing changes. Please help.

    


    Note that this is about the video file's metadata, NOT WINDOWS DATA

    


  • avfilter/vf_yadif : Fix handing of tiny images

    29 mai 2021, par Michael Niedermayer
    avfilter/vf_yadif : Fix handing of tiny images
    

    Fixes : out of array access
    Fixes : Ticket8240
    Fixes : CVE-2020-22021

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavfilter/vf_yadif.c