Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (33)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (6261)

  • Not best results for [screen capture] streaming with ffmpeg js

    13 mai 2021, par Nikola Lukic

    Platform : Windows 10
Ffmpeg version 4.4-full_build-www.gyan.dev

    


    This app works fine on macos.

    


    node websocket-relay.js supersecret 8081 8082

http-server --host=https://localhost --port 8080

ffmpeg -f  gdigrab  -i desktop -framerate 30 -video_size 640x480 -f mpegts -codec:v mpeg2video -s 640x480 -rtbufsize 100M -b:v 1000k -bf 0 http://localhost:8081/supersecret


    


    Logs :

    


    frame= 5515 fps= 20 q=31.0 size=    8302kB time=00:04:36.20 
frame= 5526 fps= 20 q=31.0 size=    8317kB time=00:04:36.77 
frame= 5537 fps= 20 q=31.0 size=    8331kB time=00:04:37.31 
frame= 5548 fps= 20 q=24.8 size=    8346kB time=00:04:37.87 
frame= 5558 fps= 20 q=31.0 size=    8352kB time=00:04:38.37 
frame= 5569 fps= 20 q=31.0 size=    8368kB time=00:04:38.91 
frame= 5579 fps= 20 q=31.0 size=    8382kB time=00:04:39.41 
frame= 5590 fps= 20 q=31.0 size=    8397kB time=00:04:39.97 
frame= 5600 fps= 20 q=31.0 size=    8411kB time=00:04:40.48 


    


    Finally in my browser i got something like that :

    


    enter image description here

    


    Any suggestion !
I am new for ffmpeg topic...

    


  • fluent-ffmpeg add multiple languages from method dynamically nodejs

    18 février 2021, par AmitKumar

    I am trying to add multiple languages and subtitles to a video dynamically. but I am not able to find any solution, I found many results for the command line.

    


    I want to call this command script from my nodejs method

    


    ffmpeg -i captain-marvel-trailer.mp4 -i tamil.mp3 -i telugu.mp3 -i hindi.mp3 -map 1 -map 2 -map 3 -metadata:s:a:0 language=eng -metadata:s:a:1 language=tam -metadata:s:a:2 language=tel -metadata:s:a:3 language=hin -codec copy multilanguage.mp4


    


    Here is my codes :

    


    lodash.each(payloadData.languages,function(language){
    let start = 0;
    let max = payloadData.languages.length;
    while (start < max) {
        // fname = `${path.resolve(`contents/hindi.mp3`)} -map 1 -metadata:s:a:0 language=hin -codec copy ${finalVideoPath}`
        // ffmpeg().input(fname)        
        start += 1;
    }
})
    
ffmpeg('./sample.mov')
    .withOutputFormat('.mp4')
    .size('1920x1080')
    .on("end", function (stdout, stderr) {  

    })
}).on("error", function (err) {
    console.log("an error happened: " + err.message);
}).save(finalVideoPath)


    


  • Can't write packet with unknown timestamp av_interleaved_write_frame() : Invalid argument

    28 mai 2024, par jagvetinte

    I'm trying to convert a .ts file with this output to mkv :

    


    ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with Apple clang version 12.0.0 (clang-1200.0.32.27)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_4 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[mp3float @ 0x7fbd6282b200] Header missing
[mpegts @ 0x7fbd62809000] PES packet size mismatch
[mpegts @ 0x7fbd62809000] Packet corrupt (stream = 2, dts = 7125804577).
[mpegts @ 0x7fbd62809000] PES packet size mismatch
[mpegts @ 0x7fbd62809000] Packet corrupt (stream = 2, dts = 7125804577).
[mpegts @ 0x7fbd62809000] PES packet size mismatch
[mpegts @ 0x7fbd62809000] Packet corrupt (stream = 1, dts = 7125790091).
Input #0, mpegts, from '/Users/"User"/Downloads/input.ts':
  Duration: 02:11:32.82, start: 71283.837456, bitrate: 17149 kb/s
  Program 1 
    Stream #0:0[0x1004]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 2.08 tbr, 90k tbn, 100 tbc
    Stream #0:1[0x1104](swe): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 256 kb/s
    Stream #0:2[0x704](swe): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 640 kb/s


    


    To do that I'm using this command :

    


    ffmpeg -i input.ts -c copy output.mkv


    


    But the conversion fails with this error :

    


    Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x7fb8c1808200] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[matroska @ 0x7fb8c1808200] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
[matroska @ 0x7fb8c1808200] Can't write packet with unknown timestamp
Error writing trailer of output.mkv: Invalid argument
frame=   27 fps=0.0 q=-1.0 Lsize=      74kB time=00:00:00.85 bitrate= 705.5kbits/s speed=  99x    
video:1092kB audio:35kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!


    


    What should I do in order to fix this ? I've already tried to add -fflags +genpts in the beginning but it fails anyway.

    


    EDIT : I did solve it by using MKVToolNix instead.