Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (32)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (6789)

  • Revision 675ec943db : Fix including test file twice. The test file niklas_1280_720_30.yuv may be incl

    19 décembre 2014, par Frank Galligan

    Changed Paths :
     Modify /test/test-data.mk



    Fix including test file twice.

    The test file niklas_1280_720_30.yuv may be included twice.

    Change-Id : I44512073e9e430a8e10fbce5afd62041e0edea17

  • dnn : change .model file format to put layer number at the end of file

    29 août 2019, par Guo, Yejun
    dnn : change .model file format to put layer number at the end of file
    

    currently, the layer number is at the beginning of the .model file,
    so we have to scan twice in python script, the first scan to get the
    layer number. Only one scan needed after put the layer number at the
    end of .model file.

    Signed-off-by : Guo, Yejun <yejun.guo@intel.com>
    Signed-off-by : Pedro Arthur <bygrandao@gmail.com>

    • [DH] libavfilter/dnn/dnn_backend_native.c
    • [DH] tools/python/convert_from_tensorflow.py
  • ffmpeg filter_complex doesn't work with text file input

    5 avril 2023, par Martin

    I have a working ffmpeg command that takes 4 input files&#xA;https://file.io/DllNlkCqX6J6

    &#xA;

    (2 audio, 2 images) and then renders a .mkv video, using a filter_complex string which tells ffmpeg to concat the two audio files and make a slideshow for the two images.

    &#xA;

    The filter_complex string relies on the order of the input files.

    &#xA;

    For example : [0:a][1:a]concat=n=2:v=0:a=1[a] in filter_complex tells ffmpeg to take the index=0 input audio file, and the index=1 input audio file, and concat them.

    &#xA;

    Then, the the [2:v] part tells ffmpeg to take the index=2 image file (we start counting index at zero, so index=2 is really the 3rd file, which is '3.sidea.jpg')

    &#xA;

    ffmpeg &#xA;&#xA;-r 2 -i "C:\Users\martin\Documents\album\a1 - in the beginning.mp3" &#xA;-r 2 -i "C:\Users\martin\Documents\album\a2 - stratovarious.mp3" &#xA;-r 2 -i "C:\Users\martin\Documents\album\3 sidea.jpg" &#xA;-r 2 -i "C:\Users\martin\Documents\album\4 sideb.jpg" &#xA;&#xA;-filter_complex "[0:a][1:a]concat=n=2:v=0:a=1[a];[2:v]scale=w=1920:h=1920:force_original_aspect_ratio=decrease,pad=1920:1920:-1:-1:color=white,setsar=1,loop=309.95:309.95[v2];[3:v]scale=w=1920:h=1920:force_original_aspect_ratio=decrease,pad=1920:1920:-1:-1:color=white,setsar=1,loop=309.95:309.95[v3];[v2][v3]concat=n=2:v=1:a=0,pad=ceil(iw/2)*2:ceil(ih/2)*2[v]" &#xA;&#xA;-map [v] -map [a] -c:a pcm_s32le -c:v libx264 -bufsize 3M -crf 18 -pix_fmt yuv420p -tune stillimage -t 309.95 &#xA;"C:\Users\martin\Documents\album\working.mkv"&#xA;

    &#xA;

    This command works, but I use the same format for, say, 2k+ audio input files, I reach the terminal command line char limit. So I am trying to move my input files to a text file input_files.txt :

    &#xA;

    file &#x27;C:\Users\martin\Documents\album\a1 - in the beginning.mp3&#x27;&#xA;file &#x27;C:\Users\martin\Documents\album\a2 - stratovarious.mp3&#x27;&#xA;file &#x27;C:\Users\martin\Documents\album\3 sidea.jpg&#x27;&#xA;file &#x27;C:\Users\martin\Documents\album\4 sideb.jpg&#x27;&#xA;&#xA;

    &#xA;

    The same files, in the same order. But running my new command with this input_text.txt file :

    &#xA;

    ffmpeg &#xA;&#xA;-f concat -safe 0 -i input_files.txt&#xA;&#xA;-filter_complex "[0:a][1:a]concat=n=2:v=0:a=1[a];[2:v]scale=w=1920:h=1920:force_original_aspect_ratio=decrease,pad=1920:1920:-1:-1:color=white,setsar=1,loop=309.95:309.95[v2];[3:v]scale=w=1920:h=1920:force_original_aspect_ratio=decrease,pad=1920:1920:-1:-1:color=white,setsar=1,loop=309.95:309.95[v3];[v2][v3]concat=n=2:v=1:a=0,pad=ceil(iw/2)*2:ceil(ih/2)*2[v]" &#xA;&#xA;-map [v] -map [a] -c:a pcm_s32le -c:v libx264 -bufsize 3M -crf 18 -pix_fmt yuv420p -tune stillimage -t 309.95 &#xA;"C:\Users\martin\Documents\album\working.mkv"&#xA;

    &#xA;

    Results in an error about the filter_complex index numbers :

    &#xA;

    [mp3 @ 0000025d87057700] Estimating duration from bitrate, this may be inaccurate&#xA;Input #0, concat, from &#x27;input_files.txt&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: 320 kb/s&#xA;  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s&#xA;Invalid file index 1 in filtergraph description [0:a][1:a]concat=n=2:v=0:a=1[a];[2:v]scale=w=1920:h=1920:force_original_aspect_ratio=decrease,pad=1920:1920:-1:-1:color=white,setsar=1,loop=309.95:309.95[v2];[3:v]scale=w=1920:h=1920:force_original_aspect_ratio=decrease,pad=1920:1920:-1:-1:color=white,setsar=1,loop=309.95:309.95[v3];[v2][v3]concat=n=2:v=1:a=0,pad=ceil(iw/2)*2:ceil(ih/2)*2[v].&#xA;&#xA;

    &#xA;

    Almost like it's treating the -i input_files.txt as its own index=0 file. I've tried different fixes but no luck.

    &#xA;

    How can I use my filter_complex string with a text file as the source of my ffmpeg command file inputs ?

    &#xA;