Recherche avancée

Médias (1)

Mot : - Tags -/publishing

Autres articles (86)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

Sur d’autres sites (8133)

  • I don't know the time unit to use for av_dict_set to set a timeout

    16 juin, par ICYMYM

    I am confused. I am using the av_dict_set function to set a time-out, but when I searched for information about av_dict_set, the time unit seems to be different. I don't know how to set it now. Can anyone help ?

    



    I found some code like the following :

    



    pFormatCtx = avformat_alloc_context();

av_dict_set(&opts, "rtsp_transport", "tcp", 0);
//av_dict_set(&opts, "timeout", "5000000", 0);
if(strncmp(stream_url, "rtmp:", sizeof("rtmp:")) == 0){
    av_dict_set(&opts, "timeout", "6", 0); // in secs
}
else if(strncmp(stream_url, "http:", sizeof("http:")) == 0){
    av_dict_set(&opts, "timeout", "6000", 0); // in ms
}

if(avformat_open_input(&pFormatCtx, stream_url, NULL, &opts)!=0)
{
  return 1;
}


    



    Maybe it should set the time unit according to the different protocols (http or rtsp).

    



    Is the code above right ?

    


  • lavc/hevc : Don't parse NAL unit for a dummy buffer

    30 mars 2018, par Haihao Xiang
    lavc/hevc : Don't parse NAL unit for a dummy buffer
    

    hevc parser mistakenly reports the following message if a dummy buffer
    is padded for EOF

    [hevc @ 0x559b63848610] missing picture in access unit

    Signed-off-by : Haihao Xiang <haihao.xiang@intel.com>
    Reviewed-by : Steven Liu <lq@chinaffmpeg.org>
    Reviewed-by : "Li, Zhong" <zhong.li@intel.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/hevc_parser.c
  • FFmpeg : Invalid NAL unit size after Concat filter

    12 juin 2019, par green_hat

    I am trying to concatenate 3 videos using Concat filter.
    The videos are :

    Video1

    Duration : 00:00:05.34, start : 0.000000, bitrate : 45584 kb/s
    Stream #0:0(eng) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 45653 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)

    Video2

    Duration : 01:12:18.67, start : 0.000000, bitrate : 730 kb/s
    Stream #0:0(und) : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 704x352 [SAR 457:704 DAR 457:352], 599 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)

    Video3

    Duration : 00:00:10.02, start : 0.000000, bitrate : 25827 kb/s
    Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25812 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)

    The ffmpeg command that I use is :

    ffmpeg -i video1.mp4 -i video2.mp4 -i video3.mp4 -filter_complex
    "[0:v]scale=1920:1080:force_original_aspect_ratio=1,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setdar=16/9[v0];
    [1:v]scale=1920:1080:force_original_aspect_ratio=1,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setdar=16/9[v1];
    [2:v]scale=1920:1080:force_original_aspect_ratio=1,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setdar=16/9[v2];
    [v0][0:a][v1][1:a][v2][2:a] concat=n=3:v=1:a=1[v][a]"
    -map "[v]" -map "[a]" output.mp4
    (I have tried also with force_original_aspect_ratio=decrease)

    However I get the following error

    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55b7422ea700] stream 1, offset 0xbac62: partial files dup=2 drop=0 speed=0.989x
    [h264 @ 0x55b742be9a20] Invalid NAL unit size (110724 > 17746).
    [h264 @ 0x55b742be9a20] Error splitting the input into NAL units.
    video3.mp4: Invalid data found when processing input
    video3.mp4: Invalid data found when processing input
    Last message repeated 2 times
    Error while decoding stream #2:0: Invalid data found when processing input
    video3.mp4: Invalid data found when processing input
    Last message repeated 1 times

    and the output.mp4 is only video1+video2.

    BUT ! If I use a sample of video2.mp4 (for example the first 10 minutes of it), the ffmpeg command runs successfully till the end, generating the expected output (video1+video2+video3).

    Do you know why do I get this error and how could I cope with it ?

    UPDATE :
    My command works perfectly with a downgraded version of FFmpeg. Maybe there is a bug in the newest one ?