Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (35)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (5055)

  • Convert AVStream PTS value to real time in seconds

    15 janvier 2015, par Kamlesh

    The below code snippet gets the PTS value of different frames from a video file

    AVStream *stream = avctx->streams[avpkt.stream_index];
    if ( 0 > ( err = avcodec_decode_video2 ( stream->codec, frame, &got_frame, &avpkt ) && got_frame ) )
    {
       int64_t pts = av_frame_get_best_effort_timestamp ( frame );
       pts = av_rescale_q ( pts,  stream->time_base, AV_TIME_BASE_Q );        
    }

    The PTS value that it returns are given below.

    • 66733
    • 100100
    • 133467

    Confusion is on the time format of the above values, whether they are in milliseconds or microseconds.
    Is there any other way to get a real time PTS values of the frames, as these will be required for subtitle rendering

  • Problems getting real width and height of videos

    1er mai 2022, par Eduardo

    I'm having a problem when I upload videos. The thing is that I record my videos with my cellphone in vertical way and when I download them to my computer or pass them through whatsapp they still look vertical, I can still watch them in vertical way as I recorded them, but when I try to upload them on my website using PHP and FFMPEG I always get horizontal resolutions.

    


    I use this command to get the width of my videos :

    


    $width = $video_attributes['width'] ;

    


    The variable $video_attributes is an array that comes from a FFMPEG function that returns an array with the data related to the video.

    


    Somebody could help me out with some ideas about what I'm doing wrong ?

    


    I need to get the vertical resolution so my videos will be displayed in vertical containers in my website.

    


    Thanks in advance :)

    


  • How to use hardware accelearation with ffmpeg

    25 avril 2014, par ixSci

    I need to have ffmpeg decode my video(e.g. h264) using hardware acceleration. I’m using the usual way of decoding frames : read packet -> decode frame. And I’d like to have ffmpeg speed up decoding. So I’ve built it with --enable-vaapi and --enable-hwaccel=h264. But I don’t really know what should I do next. I’ve tried to use avcodec_find_decoder_by_name("h264_vaapi") but it returns nullptr.
    Anyway, I might want to use others API and not just VA API. How one is supposed to speed up ffmpeg decoding ?

    P.S. I didn’t find any examples on Internet which uses ffmpeg with hwaccel.