Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (46)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

Sur d’autres sites (7927)

  • Create image with audio and concate to another video

    17 décembre 2019, par Milk_Dream

    Please help me understand ! I spent a lot of time... :( Thank you !

    I’m stuck with a problem. I have a stream with damaged video and normal audio. And 2nd video, continued, with normal video and audio. I want to attach a picture to the beginning of an undamaged video with normal audio from damaged video without re-encoding the normal video.

    I try this one :

    ffmpeg -hide_banner -loop 1 -framerate 50 -t 3478 -i image.jpg -t 3478 -i audio.mp3 -i video.mp4 -filter_complex "[0:0] [1:0] [2:0] [2:1] concat=n=2:v=1:a=1" output.mp4

    But it converts normal video.

    Mediainfo from normal video :

         Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.12.100
     Duration: 00:56:31.61, start: 0.000000, bitrate: 3726 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 3594 kb/s, 27.46 fps, 50 tbr, 50k tbn, 100 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
  • Ffmpeg won't copy excerpt of video correctly

    5 mai 2022, par JR Jr.

    I am using a DOS batch to automate and copy excerpts of various high definition videos (mkv's with more than 1GB each).
The script is very convenient and runs fast and fine, but Ffmpeg is not doing its job correctly (it seems Murphy's law is inexorably enthralled into technology, things never come easy, which is why I love and hate it).

    


    Anyway, to cut a long story short, each time the batch job runs, a code like below is executed (pardon me the indiscrete folder name, it's about the 90's TV show, it's not porn !).

    


    call "C:\ffmpeg\bin\ffmpeg.exe" -y -i "D:\100\Sexo\S01\SATC - S01E03 - Bay of Married Pigs.mkv" -ss 00:18:05 -to 00:19:15 -codec copy "002-SATC - S01E03 - Bay of Married Pigs-00_18_05-00_19_15.mp4"


    


    The problem is that the first 6 seconds or so of the resulting video has no video, only audio with a frozen image that only starts to move after about 6 seconds, which is a huge defect, not to mention very annoying (a big let down, after all my meticulous scripting work :(). And this happens for most of the files, except a few ones.

    


    Even though this is copying and changing the format from mkv to mp4, per another thread on this site (https://askubuntu.com/questions/396883/how-to-simply-convert-video-files-i-e-mkv-to-mp4), this is not re-encoding, so this is not the issue. Actually, the same problem occurs even if I don't change the format from mkv to mp4.

    


    Even though I foresee a "there's no way to fix this", let me ask : is there a way to fix this ? Hopefully there is a way.

    


  • How to overlay images sequence from pipe over a video stream with ffmpeg ?

    7 juin 2018, par Dotan Simha

    I’m trying to figure out an issue with ffmpeg.
    I have the following installation :
    - DeckLink Mini Recorder Card (for HDMI input)
    - DeckLink Mini Monitor Card (for HDMI output)

    I’ve successfully managed to take the HDMI input from the Decklink card and output is as-is to the output card with the following command :

    ffmpeg -f decklink -video_input hdmi -raw_format yuv422p10 -i "DeckLink Mini Recorder" -f decklink -pix_fmt uyvy422 "DeckLink Mini Monitor"

    I tried to add a complex-filter to add an overlay of an image, with the following command, and it works :

    ffmpeg -f decklink -video_input hdmi -raw_format yuv422p10 -i "DeckLink Mini Recorder" -i ./tools/bin/windows/2.png -y -filter_complex "[0:1][1:0]overlay=10:10" -f decklink -pix_fmt uyvy422 "DeckLink Mini Monitor"

    I’m getting a realtime feed from the decklink recorder, the image is added to the stream, and it outputs it to the output HDMI card. Everything seems to work.

    Now I tried to change the static image path to use stdin (pipe:0), and I have a tool that constantly streaming PNG images to stdout :

    ffmpeg -f decklink -video_input hdmi -raw_format yuv422p10 -i "DeckLink Mini Recorder" -i pipe:0 -y -filter_complex "[0:1][1:0]overlay=10:10" -f decklink -pix_fmt uyvy422 "DeckLink Mini Monitor"

    The result that i’m getting on the output HDMI card is a static image, of the first frame.
    The output of ffmpeg also changes now, and it looks like it stuck of the first-second of the stream :

    ```
    frame= 30 fps=7.4 q=-0.0 size=N/A time=00:00:01.00 bitrate=N/A speed=0.247x

    frames : 30,
    currentFps : 7,
    currentKbps : NaN,
    targetSize : NaN,
    timemark : ’00:00:01.00’

    ```

    It just remains on 00:00:01.00 and never changes.

    I tried to find the issue, and did the following :

    • Tried to stream Decklink Recorder -> static png file overlay -> Decklink Monitor = IS WORKS

    • Tried to stream static png file -> Decklink Monitor = IS WORKS

    • Tried to stream pipe:0 (PNG files) -> Decklink Monitor = IS WORKS

    • Tried to stream Decklink Recorder -> pipe:0 (PNG files overlay) -> RAW AVI file IS WORKS

    The only issue is with :
    - Tried to stream Decklink Recorder -> pipe:0 (PNG files) overlay -> Decklink Monitor DOES NOT WORK

    I suspect that Decklink output is more strict, and my pipe:0 with the PNG images is not stable, and the combination of both causes it to freeze.

    Any idea how to solve it ? :(

    Thanks !