Recherche avancée

Médias (91)

Autres articles (89)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (8044)

  • Revision 118606 : Version 1.4.0. - Nouveauté la plus visible : petite refacto du menu de ...

    13 novembre 2019, par Charles Razack — Log

    Version 1.4.0.
    - Nouveauté la plus visible : petite refacto du menu de langues → Noms des langues en entier au lieu des codes (fr, en...), liens affichés sous formes de boutons plus grands et centrés pour être bien visibles, ajout d’un label. Petite amélioration pour éviter qu’il y ait un saut lorsque le menu passe en sticky.
    - Configuration : les formulaires sur lesquels activer le script sont tous regroupés dans une même clé formulaires.
    - Configuration : ajout d’une option pour ajouter des sélecteurs dans le paramètre root (exemple complètement au hasard : .formulaire_editer_noisette).
    - Ajout d’un pipeline multilang_parametres pour permettre aux plugins de changer les paramètres passés au script d’init. Cas le plus courant : ajouter des formulaires à prendre en compte par le script.
    - Refactorisation du script d’init afin qu’il soit plus lisible et maintenable : séparation du javascript et du php. Au passage, correction d’un bug rigolo qui faisait que quand on décochait tous les items dans la config, le script devenait actif sur *tous* les formulaires : recherche, login, etc.

  • How to reduce file size of a video without loosing quality using an ffmpeg command ? [closed]

    11 mars 2024, par Shadab Mehdi

    I have received a video that is Full HD 1920 x 1080 and is nearly 62 GB. I know something is off here. I have seen similar videos under 3-4 GB.

    


    I tried to reduce the size by running the following command

    


    ffmpeg -i MyVideo.mpg -vcodec libx265 -crf 28 Compressed.mp4


    


    But it produced horrible out-of-sync audio. The video quality was OK.

    


    Here is a dump of ffprobe video output for better understanding.

    


    ffprobe -v quiet -print_format json -show_format -show_streams -print_format json MyVideo.mpg


    


    The output of the above command produces this response

    


    {
  "streams": [
    {
      "index": 0,
      "codec_name": "mpeg2video",
      "codec_long_name": "MPEG-2 video",
      "profile": "Main",
      "codec_type": "video",
      "codec_tag_string": "[0][0][0][0]",
      "codec_tag": "0x0000",
      "width": 1920,
      "height": 1080,
      "coded_width": 0,
      "coded_height": 0,
      "closed_captions": 0,
      "film_grain": 0,
      "has_b_frames": 1,
      "sample_aspect_ratio": "1:1",
      "display_aspect_ratio": "16:9",
      "pix_fmt": "yuv420p",
      "level": 4,
      "color_range": "tv",
      "chroma_location": "left",
      "field_order": "progressive",
      "refs": 1,
      "id": "0x1e0",
      "r_frame_rate": "25/1",
      "avg_frame_rate": "25/1",
      "time_base": "1/90000",
      "start_pts": 22503,
      "start_time": "0.250033",
      "duration_ts": 643863600,
      "duration": "7154.040000",
      "extradata_size": 150,
      "disposition": {
        "default": 0,
        "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,
        "non_diegetic": 0,
        "captions": 0,
        "descriptions": 0,
        "metadata": 0,
        "dependent": 0,
        "still_image": 0
      },
      "side_data_list": [
        {
          "side_data_type": "CPB properties",
          "max_bitrate": 80000000,
          "min_bitrate": 0,
          "avg_bitrate": 0,
          "buffer_size": 9781248,
          "vbv_delay": -1
        }
      ]
    },
    {
      "index": 1,
      "codec_name": "mp2",
      "codec_long_name": "MP2 (MPEG audio layer 2)",
      "codec_type": "audio",
      "codec_tag_string": "[0][0][0][0]",
      "codec_tag": "0x0000",
      "sample_fmt": "s16p",
      "sample_rate": "48000",
      "channels": 2,
      "channel_layout": "stereo",
      "bits_per_sample": 0,
      "initial_padding": 0,
      "id": "0x1c0",
      "r_frame_rate": "0/0",
      "avg_frame_rate": "0/0",
      "time_base": "1/90000",
      "start_pts": 15303,
      "start_time": "0.170033",
      "duration_ts": 643870080,
      "duration": "7154.112000",
      "bit_rate": "384000",
      "disposition": {
        "default": 0,
        "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,
        "non_diegetic": 0,
        "captions": 0,
        "descriptions": 0,
        "metadata": 0,
        "dependent": 0,
        "still_image": 0
      }
    }
  ],
  "format": {
    "filename": "MyVideo.mpg",
    "nb_streams": 2,
    "nb_programs": 0,
    "format_name": "mpeg",
    "format_long_name": "MPEG-PS (MPEG-2 Program Stream)",
    "start_time": "0.170033",
    "duration": "7154.120000",
    "size": "62752258052",
    "bit_rate": "70171881",
    "probe_score": 26
  }
}


    


  • ffmpeg/ffprobe different outputs for file input and binary data input

    6 juin 2020, par SMBH

    What I have done :

    



    video_file = 'Y001BAQ9k3SU-140.mp4'
with open(video_file, 'rb') as fid:
    binary_data = fid.read()

vinfo = ffprobe_binary(binary_data)['video']
vinfo2 = skvideo.io.ffprobe(video_file)['video']
print(vinfo)
print(vinfo2)
exit()


    



    The ffprobe_binary is just a piped version of ffprobe :

    



    command = ['ffprobe', "-v", "error", "-show_streams", "-print_format", "xml", "-i", "pipe:"]


    



    The vinfo and vinfo2 are different :

    



    OrderedDict([('@index', '0'), ('@codec_name', 'h264'), ('@codec_long_name', 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10'), ('@codec_type', 'video'), ('@codec_time_base', '1001/60000'), ('@codec_tag_string', 'avc1'), ('@codec_tag', '0x31637661'), ('@width', '1280'), ('@height', '720'), ('@coded_width', '1280'), ('@coded_height', '720'), ('@has_b_frames', '0'), ('@sample_aspect_ratio', '1:1'), ('@display_aspect_ratio', '16:9'), ('@level', '-99'), ('@chroma_location', 'left'), ('@refs', '1'), ('@is_avc', 'true'), ('@nal_length_size', '4'), ('@r_frame_rate', '30000/1001'), ('@avg_frame_rate', '30000/1001'), ('@time_base', '1/90000'), ('@duration_ts', '1012050'), ('@duration', '11.245000'), ('@bit_rate', '1041887'), ('@nb_frames', '337'), ('disposition', OrderedDict([('@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')])), ('tag', [OrderedDict([('@key', 'language'), ('@value', 'und')]), OrderedDict([('@key', 'handler_name'), ('@value', 'ISO Media file produced by Google Inc. Created on: 12/09/2017.')])])])


    



    OrderedDict([('@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', '1001/60000'), ('@codec_tag_string', 'avc1'), ('@codec_tag', '0x31637661'), ('@width', '1280'), ('@height', '720'), ('@coded_width', '1280'), ('@coded_height', '720'), ('@has_b_frames', '1'), ('@sample_aspect_ratio', '1:1'), ('@display_aspect_ratio', '16:9'), ('@pix_fmt', 'yuv420p'), ('@level', '31'), ('@color_range', 'tv'), ('@color_space', 'bt709'), ('@color_transfer', 'bt709'), ('@color_primaries', 'bt709'), ('@chroma_location', 'left'), ('@refs', '1'), ('@is_avc', 'true'), ('@nal_length_size', '4'), ('@r_frame_rate', '30000/1001'), ('@avg_frame_rate', '30000/1001'), ('@time_base', '1/90000'), ('@start_pts', '3780'), ('@start_time', '0.042000'), ('@duration_ts', '1015830'), ('@duration', '11.287000'), ('@bit_rate', '1041887'), ('@bits_per_raw_sample', '8'), ('@nb_frames', '337'), ('disposition', OrderedDict([('@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')])), ('tag', [OrderedDict([('@key', 'language'), ('@value', 'und')]), OrderedDict([('@key', 'handler_name'), ('@value', 'ISO Media file produced by Google Inc. Created on: 12/09/2017.')])])])


    



    What matters the most for me is that piped ffprobe lost the pix_fmt info and the duration info is also not consistent.

    



    However, if I resave the binary_data to mp4 format. Then it still can produce the same output.

    



    Anyone know how to avoid this ?