Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (53)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (13209)

  • 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
https://file.io/DllNlkCqX6J6

    


    (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.

    


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

    


    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.

    


    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')

    


    ffmpeg 

-r 2 -i "C:\Users\martin\Documents\album\a1 - in the beginning.mp3" 
-r 2 -i "C:\Users\martin\Documents\album\a2 - stratovarious.mp3" 
-r 2 -i "C:\Users\martin\Documents\album\3 sidea.jpg" 
-r 2 -i "C:\Users\martin\Documents\album\4 sideb.jpg" 

-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]" 

-map [v] -map [a] -c:a pcm_s32le -c:v libx264 -bufsize 3M -crf 18 -pix_fmt yuv420p -tune stillimage -t 309.95 
"C:\Users\martin\Documents\album\working.mkv"


    


    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 :

    


    file 'C:\Users\martin\Documents\album\a1 - in the beginning.mp3'
file 'C:\Users\martin\Documents\album\a2 - stratovarious.mp3'
file 'C:\Users\martin\Documents\album\3 sidea.jpg'
file 'C:\Users\martin\Documents\album\4 sideb.jpg'



    


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

    


    ffmpeg 

-f concat -safe 0 -i input_files.txt

-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]" 

-map [v] -map [a] -c:a pcm_s32le -c:v libx264 -bufsize 3M -crf 18 -pix_fmt yuv420p -tune stillimage -t 309.95 
"C:\Users\martin\Documents\album\working.mkv"


    


    Results in an error about the filter_complex index numbers :

    


    [mp3 @ 0000025d87057700] Estimating duration from bitrate, this may be inaccurate
Input #0, concat, from 'input_files.txt':
  Duration: N/A, start: 0.000000, bitrate: 320 kb/s
  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
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].



    


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

    


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

    


  • FFmpeg end of filter semicolon being ignored when evaluating chained filters

    21 janvier 2020, par Peter Lockhart

    I’m new to FFmepg so please forgive me if the terminology is wrong.

    I would like to add text and audio to an existing video file. I’m chaining together 2 drawTexts, then in a different filter, I want to merge audio tracks of the original source video and some background music.

    ffmpeg -i sourceNoText.mp4 -i backgroundMusic.mp3 -filter_complex "drawtext=enable='between(t,0,3.5)':fontfile=burbank.ttf:text='Your name - PETER':fontsize=90:x=(w-text_w)/2:y=(h-th-(h/10)-20):fontcolor='White', drawtext=enable='between(t,11.5,14.75)':fontfile=burbank.ttf:text='You couldn't have done it without Peter':fontcolor='White':fontsize=90:x=(w-text_w)/2:y=(h-th-(h/10)-20);[0:a][1:a]amerge,pan=stero:c0code>

    My understanding is filters are separated by a semicolon, yet when I try to do the audio merging, that portion of the command is being interpreted in the drawtext filter.

    [drawtext @ 0000020fe395bec0] Cannot find color 'c0code>

    Running without the audio filter works well, so I don’t believe there to be a syntax error. What am I missing ? Specifying an input and output stream for the drawText chain still produces the same problem.

    I’m using ffmpeg version 4.2.1.

    Thanks in advance.

  • Update README.md

    14 novembre 2017, par murilolobato
    Update README.md
    

    Minor fixes to spelling, to make it better to read and understand.