Recherche avancée

Médias (0)

Mot : - Tags -/configuration

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

Autres articles (10)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Les thèmes de MediaSpip

    4 juin 2013

    3 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
    Thèmes MediaSPIP
    3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)

Sur d’autres sites (4536)

  • ffmpeg implicitly shifts video and audio

    2 mars 2020, par ynn

    I separated a .mkv file with audio and video into two files by the following command.

    ffmpeg -i input.mkv -vn -codec copy out.wav #extract audio
    ffmpeg -i input.mkv -an -codec copy out.mkv #extract video

    And I just merge them into one .mkv file :

    ffmpeg -i out.mkv -i out.wav -codec copy final.mkv #this behaves quite strangely

    I thought the initial input input.mkv and the final output final.mkv should be exactly the same, but, in final.mkv, the video and the audio was shifted by about five seconds. Using ffprobe, I found the cause was the video part (out.mkv) was trimmed off by the length (i.e. five seconds) for no reason.

    What’s happening here ? How can I avoid this strange shift ?


    Detailed Explanation :

    Hereafter I use this sample input called input.mkv. First, extract video and audio from it.

    $ ffmpeg -i input.mkv -vn -codec copy out.wav
    $ ffmpeg -i input.mkv -an -codec copy out.mkv

    Next, check the duration of them.

    $ ffprobe -i out.wav 2>&1 | grep Duration
     Duration: 00:00:18.88, bitrate: 1536 kb/s
    $ ffprobe -i out.mkv 2>&1 | grep Duration
     Duration: 00:00:18.87, start: 0.000000, bitrate: 1877 kb/s

    Then combine them.

    $ ffmpeg -i out.mkv -i out.wav -codec copy final.mkv

    Finally, check the duration of streams.

    $ ffprobe -i final.mkv
    Input #0, matroska,webm, from 'final.mkv':
     Metadata:
       ENCODER         : Lavf58.29.100
     Duration: 00:00:18.88, start: 0.000000, bitrate: 3414 kb/s
       Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 900x586 [SAR 1:1 DAR 450:293], 30.30 fps, 30.30 tbr, 1k tbn, 60 tbc (default)
       Metadata:
         DURATION        : 00:00:18.866000000
       Stream #0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
       Metadata:
         DURATION        : 00:00:18.880000000

    Strangely, duration of the video stream has been trimmed off from 18.8700 to 18.8660, though the length of the audio stream is not touched at all.

    It seems the longer the video is, the bigger part is trimmed. (In my case of a one hour video, no less than five seconds were trimmed off.)


    Version Information :

    ~ $ ffmpeg -version
    ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
    built with gcc 9.2.1 (Arch Linux 9.2.1+20200130-2) 20200130
    configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
    libavutil      56. 31.100 / 56. 31.100
    libavcodec     58. 54.100 / 58. 54.100
    libavformat    58. 29.100 / 58. 29.100
    libavdevice    58.  8.100 / 58.  8.100
    libavfilter     7. 57.100 /  7. 57.100
    libswscale      5.  5.100 /  5.  5.100
    libswresample   3.  5.100 /  3.  5.100
    libpostproc    55.  5.100 / 55.  5.100
  • Anomalie #2751 : conflit d’url propres

    5 juillet 2012, par Alexandre C

    Après nouveau test, oui ça marche. Au final ne rajoutait pas les suffixes id. Re-confirmer les réglages de "configuration d’url" en admin a réglé le problème. Désolé pour le bruit.

  • Encode to h265 with ffmpeg in batch

    20 septembre 2022, par Ricardo

    I have several Movies/Animes in Full HD and encoded in h264 (current market standard), and I need to perform the Encode to h265 of all these files (separated by folder and subfolders) to save space, which is the proper way to execute in batch (.bat file) ; below current code :

    


    for %%f in (*.mkv, *.mp4) do (
    ffmpeg -i "%%a" -c:a copy -c:v libx265 -vtag hvc1 lossless=1 -preset veryslow "Out\%%~na.mkv"
)


    


    In order to have the best compression of the final file and better image quality (which is visually identical to the current h264 file)

    


    Obs1 : I have both animations and movies and series with real people, can the "ffmpeg" configuration be different for each type ?

    


    Obs2 : In most files have multiple audio and video tracks and multiple subtitles, it is necessary that all audio, video and subtitles remain in the final files.