Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (106)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (12385)

  • FFmoeg : What does the source code do when input file is picture ?

    22 août 2022, par Eynnzerr

    As is known, in command lines, FFmpeg can receive pictures as input and output an encoded video, for example,

    


    ffmpeg -i ./pictures/%3d.png output.mp4


    


    Here I'm curious about what happened in source code, i.e. how FFmpeg reads the pictures and in what format it stores them. I think to get output video, input pictures should first be converted to AVFrame, but I have no idea how to do that. I tried to read the source code of ffmpeg, but it's too hard for me to figure out now.

    


    I'd appreciate any helpful advice to solve my question !

    


  • Request aid to translate from an old avconv code to ffmpeg

    27 septembre 2022, par Azankiew

    I am working on an old script which uses avconv to manipulate some videos. I wanted to ask help to convert the following code into ffmpeg as I aknowledged avconv is not supported anymore.

    


    The code is :

    


    subprocess.call('avconv -i %s -an -filter_complex "select=between(n\,%s\,%s),setpts=PTS-STARTPTS, crop=%s:%s:%s:%s, scale=-2:224" %s'%(
            input_video_folder+clip.video_name,
            clip.start_frame,
            clip.end_frame,
            crop_width,
            crop_height,
            crop_left_distance,
            crop_top_distance,
            video),
                        shell=True)


    


  • avcodec_encode_audio2 failing with error code -22 in C++ FFMPEG

    16 juin 2014, par Godspped

    I have the following code to encode an audio stream and everything seems to be working fine until I get to the avcodec_encode_audio2 function, I am failing with -22 error code, and I dont know what that error code means. I verified that pFrame and out_fmt_ctx are allocated. Does anyone have an idea of what the problem might be ?

    Thanks in advance !

    while( res = av_read_frame( pFormatCtx, &packet ) >=0 )
    {
      if ( packet.stream_index == audioStream )
      {
     avcodec_get_frame_defaults(pFrame);
         ret = avcodec_decode_audio4(dec_ctx, pFrame, &got_frame, &packet);

         if (ret < 0)
         {
        return ret;
     }

         /* Set frame pts */
         pFrame->pts = av_frame_get_best_effort_timestamp(pFrame);

         if (got_frame)
         {

            AVPacket audioEncodedPacket;
            av_init_packet(&audioEncodedPacket);


            ret = avcodec_encode_audio2(out_fmt_ctx->streams[0]->codec,
                                        &audioEncodedPacket,
                                        pFrame, &got_packet);

            if ( ret < 0 )
            {
               //THIS IS WHERE I AM GOING WITH ERROR -22
            }
         }
    ...... // more code
    }