Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (58)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • 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

  • 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

Sur d’autres sites (15688)

  • How do I reverse a video in ffmpeg ?

    19 avril 2023, par Will Beeson

    - Full Error :

    


    Stream specifier 's1:v' in filtergraph description [0]split=2:outputs=2[s0][s1] ;[s1:v]reverse[s2] ;[s0][s2]concat=a=0:n=2:v=1[s3] matches no streams.

    


    - Formatted Error

    


      

    • [0]split=2:outputs=2[s0][s1] ;
    • 


    • [s1:v]reverse[s2] ;
    • 


    • [s0][s2]concat=a=0:n=2:v=1[s3]
    • 


    


    - Code :

    


    instances = (
    ffmpeg
    .input(self.video_file)
    .filter_multi_output(filter_name="split", outputs=2)
)
ordered_edits = []
for i in range(2):
    if i%2 == 0:
        ordered_edits.append(
            instances[i]
        )
    else:
        ordered_edits.append(
            instances[i].video.filter(filter_name="reverse")
        )
(
    ffmpeg
    .concat(*ordered_edits, a=0, v=1)
    .output('done/output.mp4')
    .run(overwrite_output=True))


    


    Looking at the error code, it seems like s1:v should be a valid reference. The only thing I can think of is that there is an issue saving an exclusive video input into a nonspecified output. The files don't actually have any audio, I just want the video.

    


    I'm lost, please help ffmpeg experts of the world !

    


  • FFMPEG - How to setup volume when merging two audio streams

    6 octobre 2014, par N3sh

    I just recently entered the magic and scary world of FFMPEG and, although I found quite a lot of guides online, I need help for my current problem.

    I am merging only audio files and I would like to be able to select their volume.

    Here is my current code for merging 2 files :

    ffmpeg -i test\audio00.mp3 -i test\audio01.mp3 -filter_complex amerge
    -c:a libmp3lame -q:a 0 test\output_overlay.mp3

    I tried the following code, extracted from another answer here on SO (the User was also handling video), but it doesn’t work for me :

    ffmpeg -i test\audio00.mp3 -i test\audio01.mp3 -filter_complex "[0:a]volume=0.9[a1];  
    [1:a]volume=0.781250[a2]; [a1][a2]amerge,pan=stereo:c0code>

    I got this error :

    [AVFilterGraph @ 030fa8c0] The following filters could not choose their formats:
    Parsed_amerge_2 Consider inserting the (a)format filter near their input or output.

    Is there a simple way to change the volume for the two streams (even for just the second one, it’s the background music) with FFMPEG ?

    P.S. Also, is it possible to have some sort of ’preview’ before actually rendering the file ?

  • ffmpeg : Dynamically set output duration based on sliding text width

    18 janvier 2016, par John Whiteman

    I need to create a smooth ’news ticker’ on a low powered android device. Unfortunately this is impossible at runtime using HTML or native code as there is always some stutter or glitch.

    I’ve created a solution that gives me a smooth result by encoding an mp4 for each message and displaying one video after the other. This is the code I’m using :

    ffmpeg -f lavfi -i color=c=black:s=1280x100 -vf "drawtext=BebasNeue.otf:fontsize=60:fontcolor=white:y=h-line_h-30:x=-(4*n)+1280:text='Hello world'" -t 10 output.mp4

    Problem :
    I need to set the video’s duration dynamically so that the video stops when the text has completed it’s journey from right to left. The messages will be of varying lengths and I need each message to scroll at a constant speed (ie. an mp4 with a longer message would have a longer duration).

    Is this possible via an expression ? If not is there some clever way I can calculate this outside of ffmpeg and pass it to the ’-t’ (duration) parameter ?

    ** Edit **
    To calculate outside of ffmpeg I can do a calculation like video_width + text_width / video_fps (ie. 1280 + 262 / 25) to give me the duration. So now I’m just looking to see if this is possible within the ffmpeg command line itself. t

    Many thanks