Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (81)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (13667)

  • Use Matroska document version 2 for WebM files if possible.

    12 mai 2014, par Carl Eugen Hoyos
    Use Matroska document version 2 for WebM files if possible.
    

    Google’s plugin for the Internet Explorer refuses to play
    files with another document version.

    Fixes ticket #3583.

    • [DH] libavformat/matroskaenc.c
  • imc : convert to lavu/tx, remove NIH iMDCT and replace with a standard one

    5 novembre 2022, par Lynne
    imc : convert to lavu/tx, remove NIH iMDCT and replace with a standard one
    
    • [DH] configure
    • [DH] libavcodec/imc.c
    • [DH] tests/fate/audio.mak
  • Transcode a video with FFMPEG C API gives error : Could not get pixel format for color format 'yuvj420p' range 'pc'

    20 septembre 2024, par Yuukino

    I am trying to transcode a video with the FFMPEG C API but am getting this error :

    


    [h264_videotoolbox @ 0x7faf92306800] Could not get pixel format for color format 'yuvj420p' range 'pc'.
[h264_videotoolbox @ 0x7faf92306800] Error: Cannot convert format 12 color_range 2: -22


    


    I am creating the encoder as follows by copying the codec parameters from the input stream to the newly created encoder :

    


    AVStream *input_stream = input_format_context->streams[0];
AVCodec *codec = avcodec_find_encoder(input_stream->codecpar->codec_id);

// Create the encoder context
AVCodecContext *encode_context = avcodec_alloc_context3(codec);

// Copy the codec parameters from the input stream to the new encoder context
avcodec_parameters_to_context(encode_context, input_stream->codecpar)

// Open the encoder context
avcodec_open2(encode_context, codec, NULL)

// ...

// Decode a frame from the input file
avcodec_send_packet(decode_context, packet);
avcodec_receive_frame(decode_context, decoded_frame);

// ...

// Re-encode the frame
avcodec_send_frame(encode_context, decoded_frame);


    


    The avcodec_send_frame causes the above mentioned error.

    


    What am I doing wrong here ?

    


    I tried not copying the parameters and instead manually setting them manually :

    


    encode_context->bit_rate = 40000;
encode_context->pix_fmt = AV_PIX_FMT_YUV420P;
encode_context->time_base = input_stream->time_base;
encode_context->width = input_stream->codecpar->width;
encode_context->height = input_stream->codecpar->height;
encode_context->sample_aspect_ratio = input_stream->codecpar->sample_aspect_ratio;
if (codec->id == AV_CODEC_ID_H264)
    av_opt_set(encode_context->priv_data, "preset", "slow", 0);


    


    But unfortunately this gives the same error.

    


    To give some background about what I am trying to achieve with this :

    


    I am trying to cut a video that only has a keyframe every 4 seconds. So I want to re-encode the parts between the cut-in time and the first keyframe and then just remux every packet after.