Recherche avancée

Médias (91)

Autres articles (85)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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 (4936)

  • ffmpeg concat converts multiple videos to chipmunk version with half the video silence

    27 mai 2020, par inselmensch

    i try to concat multiple videos to one video and add an background music to it.

    



    for some reason the background music is perfectly added to the output video but the audio of each part of the output is speed up to a chipmunk version of the video itself. this results in an output video of 7 minutes with about 5 minutes of silence since everything is so fast that all the audio finishes after about 2 minutes.

    



    my command is :

    



    ffmpeg -safe 0 -i videolist.ffconcat -i bg_loop.mp3 -y -filter_complex "[1:0]volume=0.3[a1];[0:a][a1]amix=inputs=2" -vcodec libx264 -r 25 -filter:v scale=w=1920:h=1080 -map 0:v:0 output.mp4

    



    i tried to remove the background music (since i wasn't able to loop it through the video i thought maybe that's the issue) and still.. all the audio of the video clips is still speed up resulting in chaotic audio at the beginning and silence at the end.

    



    my video list looks like this :

    



    ffconcat version 1.0
file intro.mp4
file clip-x.mp4
file clip-y.mp4
file clip-x.mp4
file clip-y.mp4
[... and so on]


    



    i hope somebody can tell me what i'm doing wrong here (and maybe how to adjust my command to loop the background music through all the clips)

    



    i googled a bit and found the adjustment of my command to add amix=inputs=2:duration=first but that doesn't do the trick and if i add duration=shortest or duration=longest nothing changes the output audio

    


  • keep input name in ffmpeg ?

    27 janvier 2023, par Wahyu Septiaji

    can someone help me to keep original name in input as output

    


    For example, i have a "Video.mp4" i need to convert it in mp3 as "Video.mp3"

    


    but i cant find it how to do it !

    


    i try
ffmpeg -i video.mp4 -b:a 192K -vn music.mp3

    


    but the output file is "music.mp3" and i dont want it

    


    soo i try ffmpeg -i A.mp4 -b:a 192K -vn *.mp3

    


    and it gives error like :

    


    *.mp3: Invalid argument


    


    pls help me :(

    


  • Cannot stream properly on YouTube using ffmpeg with Python

    1er mars 2018, par Francesco

    I have a few problems related to sending ffmpeg stream to YouTube.
    1. If I comment out "time.sleep(sleep_time)" the stream goes 3x fast(basing on what ?) ;
    2. If I uncomment the ’-r’ args the stream lags ;
    3. If I don’t add the background music the stream doesn’t start on YouTube, the problem persists if I uncomment the ’-an’ args.
    4. When the background music ends the stream stops working on YouTube.

    frame = cv2.imread('STATIC_IMAGE.jpg')
    fps = 25
    sleepTime = 1 / fps

    height, width, channels = frame.shape

    command = [
       'ffmpeg',

       #OpenCV image.
       #'-re',
       #'-threads', '0',
       '-f', 'rawvideo', #image2pipe
       '-vcodec','rawvideo',
       '-s', str(width) + 'x' + str(height),
       '-pixel_format', 'bgr24',
       #'-r', str(fps),
       #'-an',
       '-i', '-',

       #Background music
       #'-stream_loop', '-1',
       #'-re',
       #'-r', str(fps),
       '-i', 'music.mp3',

       #Output (actual stream)
       #'-r', str(fps),
       #'-crf', '25',
       #'-g', '39',
       #'-g', '2',
       #'-ac', '2',
       #'-c:a', 'aac',
       #'-b:a', '128k',
       #'-ar', '44100',
       #'-an',
       #'-b:v', '300k',
       #'-c:v', 'libx264',
       #'-bufsize', '600k',
       #'-maxrate', '300k',
       #'-qmin', '32',
       #'-qmax', '64',
       #'-vcodec', 'libx264',
       #'-pixel_format', 'yuv420p',
       '-vcodec', 'h264',
       '-pixel_format', 'h264',
       '-f', 'flv',
       'rtmp://a.rtmp.youtube.com/live2/STREAM_KEY'
    ]

    import subprocess as sp
    proc = sp.Popen(command, stdin=sp.PIPE, shell=False)

    while True:
       proc.stdin.write(frame.tostring())

       time.sleep(sleepTime)

    Any idea of why these problems happen ?
    May the "while True" be the problem ?