Recherche avancée

Médias (91)

Autres articles (90)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (12515)

  • ffmpeg probesize and analyzeduration flags

    7 mai 2014, par Xerphiel

    Could someone explain to me in simple terms what these flags/options do ?

    Running "ffmpeg -h full | grep probesize/analyzeduration" yields the following documentation :

    -probesize         <int>        .D.... set probing size (from 32 to INT_MAX) (default 5e+06)
    -analyzeduration   <int>        .D.... specify how many microseconds are analyzed to probe the input (from 0 to INT_MAX) (default 5e+06)
    </int></int>

    This is beyond my understanding, so am hoping for a simpler explanation.

    All the discussions on this subject I’ve found via googling do not describe the basic function of the options.

    Any help is appreciated.

    Thank you.

  • Wrong video duration when trying to make screen capture with libav\ffmpeg

    16 juin 2023, par Ларионов Фёдор

    I am performing screen capture using libav/c++ with the gdbigrab InputFormat and saving the transcoded video with h.264 to an .mp4 container. Despite doing all the necessary conversions from pts/dts frames and packets, the final video has an issue with its duration. When playing the video, it stops a few seconds before the end and rewinds back to the end.

    &#xA;

    To diagnose the problem, I used FFprobe to examine the recorded video stream and found the following issues :

    &#xA;

    ffprobe my_video.mp4 -show_streams

    &#xA;

    Provides the following information :

    &#xA;

    time_base=1/12800&#xA;start_pts=28096&#xA;start_time=2.195000&#xA;duration_ts=38945&#xA;duration=3.042578&#xA;

    &#xA;

    Although I tracked the frame and burst timestamps while recording, starting at zero and ending at the expected pts for the number of frames recorded, I tried to set the start and end time of the stream manually. I observed this problem with different time_base and different video durations, do some minor and major fixes that does not affected this issue. Interestingly, the start time always has the same offset, and the expected/specified video duration in the code is close to the sum of the duration of the video stream and its start time. What am I missing ?

    &#xA;

    &#xA;

    UPDATE :

    &#xA;

    &#xA;

    There is the source of problem :

    &#xA;

    [mov,mp4,m4a,3gp,3g2,mj2 @ 000002a69f15b380] Processing st: 0, edit list 0 - media time: -1, duration: 27059&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000002a69f15b380] Processing st: 0, edit list 1 - media time: 0, duration: 38912 &#xA;

    &#xA;

    which i get by that command ffmpeg -hide_banner -y -v 9 -loglevel 99 -i sc_test.mp4

    &#xA;

    The question is where this edits happend.

    &#xA;

  • Change keyframe interval losslessly to produce mpeg-dash content

    25 mars 2023, par Eeel

    I have a case where i have a mkv file encoded to a 2.5 GB file with x264/CRF settings, in this file group of pictures are not of equal duration (i.e 2,4 or 6 seconds ...).

    &#xA;

    Now i want to create a mpeg-dash version of the file by extracting the video track to mp4 and set the keyframe interval to 2sec losslessly preserving size (minus other audio and subtitle tracks)

    &#xA;

    What i already have that work :

    &#xA;

    Fix keyframe to 2s with x264 :

    &#xA;

    -codec:v libx264 -force_key_frames &#x27;expr:gte(t,n_forced*2)&#x27; -movflags faststart&#xA;

    &#xA;

    But it require also encoding settings that change the quality :

    &#xA;

    -b:v 3500k -maxrate 6000k -bufsize 3500k&#xA;

    &#xA;

    In this case i don't need to change the quality from CRF encoding, just change keyframe interval and set faststart flag.

    &#xA;

    note :&#xA;I have detailed bitrate informations about the file obtained by parsing output of ffprobe : average, min and max bitrate in kb/s.&#xA;Please avoid solution using -crf 0, mpeg-dash files are later crypted using MP4Box that crash with CRF encoded files.

    &#xA;

    How can i do this using ffmpeg ?

    &#xA;

    Edit :

    &#xA;

    Sorry my question is not clear, i'm fine with re-encode, i want to preserve quality as much as possible.

    &#xA;

    Using a little more than source mean bitrate for the -b:v parameter the resulting file size is almost same as source, metric test results are not as good i expect :

    &#xA;

    PSNR 41.03 (expected 44&#x2B;)&#xA;VMAF 76.32 (expected 92&#x2B;)&#xA;

    &#xA;

    Is my bitrate approch good ? Is there anything i can try to improve metric results ?

    &#xA;