Recherche avancée

Médias (1)

Mot : - Tags -/punk

Autres articles (54)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (6021)

  • Can VLC's method for estimating the duration of a video be reproduced by the means of ffmpeg ?

    28 février, par archie

    This may seem to duplicate previous questions but it does not, as far as I can tell.

    


    I have a bash script for indexing images and videos to a thumbnails database. A user of my script complained that some videos of hers are skipped over with an error message "corrupted metadata" even though VLC can play them smoothly. These are about 10 videos out of some 15 thousand, but I'd like to solve the problem.

    


    I will focus on a single video from the bunch. File name : "Paper_and_discussion_M492.mkv", actual duration 02:03:47 (hh:mm:ss). The duration and bitrate fields in the video metadata are missing.

    


    ffmpeg  -hide_banner -i "Paper_and_discussion_M492.mkv" 2> ffmpeg_data.txt


    


    gives the following output :

    


      Input #0, matroska,webm, from 'Paper_and_discussion_M492.mkv':
  Metadata:
    COMPATIBLE_BRANDS: isomiso2avc1mp41
    MAJOR_BRAND     : isom
    MINOR_VERSION   : 512
    ENCODER         : Lavf58.76.100
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: hevc (Main), yuv420p(tv, progressive), 854x480 [SAR 1280:1281 DAR 16:9], 24 fps, 24 tbr, 1k tbn, 24 tbc (default)
    Metadata:
      HANDLER_NAME    : VideoHandler
      VENDOR_ID       : [0][0][0][0]
      ENCODER         : Lavc58.134.100 libx265
  Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp (default)
    Metadata:
      HANDLER_NAME    : SoundHandler
      VENDOR_ID       : [0][0][0][0]
      ENCODER         : Lavc58.134.100 libvorbis
At least one output file must be specified


    


    Therefore, as expected,

    


    ffprobe -i <file> -show_entries format=duration -v quiet -of csv="p=0"&#xA;</file>

    &#xA;

    returns "N/A".

    &#xA;

    Decoding the whole file does work :

    &#xA;

    ffprobe -show_entries stream=r_frame_rate,nb_read_frames -select_streams v -count_frames -of compact=p=0:nk=1 -v 0 "Paper_and_discussion_M492.mkv"&#xA;

    &#xA;

    but it obviously takes a lot of time, especially for a > 2 hours video.

    &#xA;

    The "faster answer" proposed by LSerni in https://superuser.com/questions/1179000/ffmpeg-get-duration-of-video-file-without-meta-data should give an estimate of duration based on bitrate ; but bitrate is also "N/A" in the incriminated file(s). Their command-line solution based on ffmpeg ends with an error "division by zero".

    &#xA;

    However, if I open the file with VLC, it plays ok and VLC immediately shows the duration of the file as 02:03:47. I have checked that duration is precise. Search and jump are also very fast : if I skip 1 hr, playback promptly resumes at the right time.

    &#xA;

    So, a doubt is gnawing at me : How does VLC succeed where I consistently fail ? It must have a way for recovering data that I might also be able to use to produce a correct estimate of duration.

    &#xA;

    My question is : is it possible to reproduce VLC's method (or equivalent) by means of ffmpeg ?

    &#xA;

  • What does profile means in an aac encoded audio

    22 avril 2020, par Ananta Prodhan

    I am trying to concat two video files with ffmpeg concat demuxer for most of the part it works just fine !&#xA;But when I try to concat videos which has two different audio profile with same codec, it concats with the resulting video having weird sound problem. And when re-encoding the resulting video it will spit out a lots of error related to audio.

    &#xA;&#xA;

    Here is ffprobe output for some audio stream from different video files&#xA;Video 1

    &#xA;&#xA;

    [STREAM]&#xA;index=1&#xA;codec_name=aac&#xA;codec_long_name=unknown&#xA;profile=4&#xA;codec_type=audio&#xA;codec_time_base=1/48000&#xA;codec_tag_string=[0][0][0][0]&#xA;codec_tag=0x0000&#xA;sample_fmt=fltp&#xA;...&#xA;[/STREAM]&#xA;

    &#xA;&#xA;

    Video 2

    &#xA;&#xA;

    [STREAM]&#xA;index=1&#xA;codec_name=aac&#xA;codec_long_name=unknown&#xA;profile=1&#xA;codec_type=audio&#xA;codec_time_base=1/48000&#xA;codec_tag_string=[0][0][0][0]&#xA;codec_tag=0x0000&#xA;sample_fmt=fltp&#xA;...&#xA;[/STREAM]&#xA;

    &#xA;&#xA;

    Video 3

    &#xA;&#xA;

    [STREAM]&#xA;index=1&#xA;codec_name=aac&#xA;codec_long_name=unknown&#xA;profile=28&#xA;codec_type=audio&#xA;codec_time_base=1/48000&#xA;codec_tag_string=[0][0][0][0]&#xA;codec_tag=0x0000&#xA;sample_fmt=fltp&#xA;...&#xA;[/STREAM]&#xA;

    &#xA;&#xA;

    Look the different profile= values.I was able to reproduce 28 and 1 but was failed for 4

    &#xA;&#xA;

    28 = he_aac_v2 1 = ffmpeg default

    &#xA;&#xA;

    So what I want to know the most is, &#xA;What does these different values mean for aac ? &#xA;And how to reproduce them with any aac encode ?

    &#xA;

  • Revision c46fca7193705da4a42d855b75c31d428bdfa3e4 : afficher l’email dans la liste des auteurs, c’est plus informatif que le ...

    5 octobre 2010, par Cerdic — Log

    afficher l’email dans la liste des auteurs, c’est plus informatif que le site rarement utilise du coup le lien sur la messagerie avec son picto n’est present qu’en cas de messagerie active. Evacuation de code mort autour de l’activation de la messagerie, ce qui montre qu’il n’est plus possible (...)