Recherche avancée

Médias (91)

Autres articles (70)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (4901)

  • ffmpeg strftime no effect on windows

    18 mai 2020, par Ben

    I'm trying to auto mark the output file with timestamps with ffmpeg. Here's my test cmd :

    



    .\ffmpeg.exe -y -loglevel 99 -i test.mp3 -strftime 1 %Y.ogg


    



    I expected a file named 2020.ogg, however only got %Y.ogg. In another word, output filename is not processed by strftime(). I'm using powershell so there should be no relation with cmd's %% escaping.

    



    Here's the output : https://pastebin.com/LUVh2kFA I'm using static builds from https://ffmpeg.zeranoe.com (Thanks Zeranoe !) I confirmed that the problem exists in v4.2.2 and git-20200515. Is there any chance to fix it or am I doing it wrong ?

    


  • ffmpeg conversion from MOV to mp4 - how to conserve creation date

    13 juin 2020, par jacobacci

    Windows 10 1909, latest updates.

    



    I am helping a friend move his photos and videos from one Apple ID to another.
I have downloaded all items to my PC using iCloud for PC. I then proceeded to re-upload all the photos to the new Apple ID.
2'000 of the videos are MOV, which I cannot upload to iCloud. I seem to need to convert them to mp4 in order to upload them.

    



    I have converted all of the MOVs to mp4 using the following batch

    



    FOR /F "tokens=*" %%G IN ('dir /b *.MOV') DO ffmpeg -i "%%G" -f mp4 -vcodec copy -acodec mp3 "%%~nG.mp4"


    



    This worked fine and I managed to upload the (now) mp4's to iCloud. Unfortunately all the mp4's now carry yesterday's date as creation date. In iCloud (and on the iPad) all the videos are now displayed with a creation date of 12.6.2020 and it is impossible to find a particular video. Also the context to the photos is lost.

    



    Question :

    



      

    • Is there any way to (batch) convert 2'000 MOV to mp4 while preserving the creation date ?
    • 


    • alternatively : is there any way to upload the original MOV files to iCloud ?
    • 


    


  • 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.