Recherche avancée

Médias (91)

Autres articles (42)

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

  • 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" ;

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

Sur d’autres sites (5310)

  • ffmpeg not working if run from py2app

    28 juin 2018, par dprogramz

    I’m trying to build a simple app that concats 2 mp4 files. It works fine if I run it from the command line, but if I run it from py2app app it doesn’t work. If I run the app from within the py2app in the console (eg ’dist/addTag.app/Contents/MacOS/addTag’), it works fine. It only doesn’t work if i run the app by double clicking on it. Any ideas ? code below

    #! /usr/bin/python
    import argparse
    import ffmpeg
    import os
    import shutil
    import sys
    from Tkinter import *
    import time

    fields = 'Input Video', 'Tag Video', 'Output Name'

    def fetch(entries, bu, lb, rt):
       bu['state'] = 'disabled'
       lb['text'] = 'working'
       rt.update()
       ffmpeg.concat(ffmpeg.input(entries[0][1].get()), ffmpeg.input(entries[1][1].get())).output(os.path.expanduser("~/desktop/")+entries[2][1].get()).run()
       bu['state'] = 'normal'
       lb['text'] = 'Ready'
       rt.update()


    def makeform(root, fields):
      entries = []
      for field in fields:
         row = Frame(root)
         lab = Label(row, width=15, text=field, anchor='w')
         ent = Entry(row)
         row.pack(side=TOP, fill=X, padx=5, pady=5)
         lab.pack(side=LEFT)
         ent.pack(side=RIGHT, expand=YES, fill=X)
         entries.append((field, ent))
      return entries

    if __name__ == '__main__':
      root = Tk()
      root.title("Video Maker")
      ents = makeform(root, fields)
      root.bind('<return>', (lambda event, e=ents: fetch(e)))
      label = Label(root, text="Ready")
      label.pack(side=LEFT)  
      b1 = Button(root, text='Make Video',
             command=(lambda e=ents: fetch(e, b1, label, root)))
      b1.pack(side=LEFT, padx=5, pady=5)
      b2 = Button(root, text='Quit', command=root.quit)
      b2.pack(side=LEFT, padx=5, pady=5)

      root.mainloop()
    </return>
  • Unrecognized option '-enable-libx264'. Error splitting the argument list : Option not found

    9 mars 2020, par DigM

    I’m trying to stream MP4 videos from my server to YouTube and so I installed FFMPEG version. When I then look at the configuration of FFMPEG, I am then presented with the following :

    ffmpeg version 3.3.6 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.9.2 (Debian 4.9.2-10)
     configuration: --enable-cross-compile --arch=i686 --target-os=linux --disable-yasm --disable-static --enable-shared --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libsoxr --enable-version3 --enable-nonfree --enable-openssl --disable-decoder=ac3 --disable-decoder=ac3_fixed --disable-decoder=eac3 --disable-decoder=dca --disable-decoder=truehd --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-encoder=dca --disable-decoder=hevc --disable-decoder=hevc_cuvid --disable-encoder=hevc_nvenc --disable-encoder=nvenc_hevc --extra-ldflags='-L/root/daily_build/64_05/4.4.1/LinkFS/usr/lib -L/root/daily_build/64_05/4.4.1/Model/TS-X72/build/RootFS/usr/local/medialibrary/lib -Wl,--rpath -Wl,/usr/local/medialibrary/lib' --extra-cflags='-I/root/daily_build/64_05/4.4.1/LinkFS/usr/include -I/root/daily_build/64_05/4.4.1/Model/TS-X72/build/RootFS/usr/local/medialibrary/include -D_GNU_SOURCE -DQNAP' --prefix=/root/daily_build/64_05/4.4.1/Model/TS-X72/build/RootFS/usr/local/medialibrary
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100

    However, when I then try

    ffmpeg ---enable-libx264

    I then get an error saying :

    Unrecognized option '--enable-libx264'.
    Error splitting the argument list: Option not found

    Do I need to change the configuaration of FFMPEG somehow or run another configuration option first or is there just something wrong with my call to enable libx264 ?

  • FFMPEG tpad and AF not working with incorrect duration

    9 octobre 2020, par Devin Dixon

    I am live streaming via rtmp with ffmpeg, and I have tpad and AF to add padding to the video and audio of a file.

    &#xA;

    My version of ffmpeg

    &#xA;

    ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers&#xA;built with gcc 8 (Debian 8.3.0-6)&#xA;configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs=&#x27;-lpthread -lm&#x27; --bindir=/root/bin --enable-libfdk-aac --enable-gpl --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libtheora --enable-openssl --enable-nonfree&#xA;libavutil      56. 31.100 / 56. 31.100&#xA;libavcodec     58. 54.100 / 58. 54.100&#xA;libavformat    58. 29.100 / 58. 29.100&#xA;libavdevice    58.  8.100 / 58.  8.100&#xA;libavfilter     7. 57.100 /  7. 57.100&#xA;libswscale      5.  5.100 /  5.  5.100&#xA;libswresample   3.  5.100 /  3.  5.100&#xA;libpostproc    55.  5.100 / 55.  5.100&#xA;

    &#xA;

    An example command :

    &#xA;

    ffmpeg  -re -i https://my-cdn.com/video.mp4 -filter_complex "tpad=start_duration=10:stop_duration=15" -af "adelay=10000|10000" -maxrate 2M -crf 24 -bufsize 6000k -c:v libx264 -preset superfast -tune zerolatency -strict -2 -c:a aac -ar 44100 -f flv rtmp://stream.example.com/live/some-channel-id&#xA;

    &#xA;

    Now it works for as intended for many of the video, except sometimes I will get :

    &#xA;

    [flv @ 0x559c59067700] Failed to update header with correct duration.170.4kbits/s speed=1.04x    &#xA;[flv @ 0x559c59067700] Failed to update header with correct filesize.&#xA;

    &#xA;

    When this happens the "tpad=start_duration=10:stop_duration=15" -af "adelay=10000|10000" are ignored and no longer take affect.

    &#xA;

    Has anyone else had this issue ? And do you now how to resolve it ?

    &#xA;

    Or during a conversion process(we've been converting mov to mp4), is there a way to ensure the file size and duration is correct ?

    &#xA;