Recherche avancée

Médias (0)

Mot : - Tags -/masques

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (98)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (13327)

  • Get Total number of frames and FPS faster than with OpenCV library in C++

    20 juillet 2018, par daniels_pa

    I need to check which video can be analyzed and which cannot given the total number of frames in a video and the fps of the video. I created a c++ program to do the checking. Analyzing each video is not an option since analyzing is time consuming.

    I used the OpenCV library for starters :

       cv::VideoCapture vid_to_analyze;
       vid_to_analyze.open( me_vid.vid_path.string() );
       me_vid.total_frames= static_cast<int>(vid_to_analyze.get(CV_CAP_PROP_FRAME_COUNT));
       me_vid.fps=vid_to_analyze.get(CV_CAP_PROP_FPS);

       if (!vid_to_analyze.isOpened())
       {
           std::cout &lt;&lt; "Skipping vid: "&lt;&lt; me_vid.vid_path.string()&lt;&lt;", couldn't open it" &lt;&lt; std::endl;
       }
       if (me_vid.fps != me_vid.fps || me_vid.fps &lt;= 0)
       {
           std::cout &lt;&lt; "For video " &lt;&lt; me_vid.vid_path.string() &lt;&lt; std::endl;
           std::cout &lt;&lt; "FPS of the video file cannot be determined, assuming 30"&lt;&lt; std::endl;
           me_vid.fps = 30;
       }

       vid_to_analyze.release();
    </int>

    However when debugging it becomes painfully slow (the program is faster running without the debugger attached but still very slow given the number of videos it needs to cover). I think that has something to do with 4 threads being created and deleted each time a video is opened (released).

    How to get total number of frames and fps in a faster manner ( without actually creating 4 threads !!) if i am not interested in actually grabbing frames from the video just the number of frames and fps.

    Is there a way to use ffmpeg library from c++, would that be faster and where to start ?

    EDIT : Valgrind seems to agree since (Ir=)91.66% of time spend in the vid_to_analyze.open phase

  • How do I set total file duration generating a piped mp4 with ffmpeg ?

    9 avril 2021, par Mikhail Novikov

    My task is to generate (by piping, so that a file can be played at the same time with generation) an mp4 file which is a part of a larger file, with the result looking like a static file link, being seekable before it fully loads (i.e. supporting range headers).

    &#xA;

    Here is how I do it now :

    &#xA;

    ffmpeg -ss $1 -i teststream_hls1_replay.mp4 -t $2 -timecode $3 \&#xA;       -codec copy -movflags frag_keyframe&#x2B;faststart -f mp4 pipe:1&#xA;

    &#xA;

    Result is OK (video starts from the right point) except the player does not see the total duration of a file so a controlbar looks weird, and seeking isn't possible properly, just because the controlbar jumps all the time.

    &#xA;

    How do I indicate to ffmpeg that it has to set moov atom to contain right duration ?

    &#xA;

    Basically the question boils down to : how do I force set some arbitrary duration of file in a moov atom, when I am generating a fragmented mp4 ? ffmpeg will not get know how long will it be, so explainably it can't do it itself, but I know... is there a command line parameters to specify a 'forced duration' ?

    &#xA;

  • ffmpeg - how can I scale the video while perserving the total frames in it ?

    14 juin 2018, par choz

    I have a video with a size of 515 x 755, that I would like to resize proportionally to 206 x 302 (so, factor is 2.5).

    In this video, I have the total of 588 frames, and I use ffmpeg to scale it, with this command.

    ffmpeg -i video.mp4 -vf scale=206:-1 xRotation_206.mp4

    And I use this to check how many frames are there in the video, based on this answer.

    ffmpeg -i video.mp4 -map 0:v:0 -c copy -f null - 2>&amp;1 | awk '/frame=/ {print $2}'

    The original video frames is good (588 frames). But, after resizing with the command above, my converted video now has 604 frames.

    The question is, how can I resize the video by preserving the total frames in it ? It doesn’t really have to be ffmpeg approach, and any suggestion is appreciated.

    Here’s the sample video that I use : Link