Recherche avancée

Médias (91)

Autres articles (72)

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

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (6110)

  • Using `grab_frame` with `FFMpegFileWriter` Yields Error in the Figure Argument to Subprocess

    7 juillet 2024, par GPU Programmer

    I want to generate an MP4 file using frames produced by a rather complicated simulation. If I have to watch the movie as a side affect of generating it I will not complain too much, but would rather not "show" anything on the screen. The overhead of making the movie is trivial compared to the simulations, so I care much more about clean simple code than about performance.

    


    It seemed natural to use grab_frame with FFMpegFileWriter. The following code seemed right.

    


    fig, ax = plot.subplots(figsize=(6.5, 6.5))

assert(animation.FFMpegFileWriter().isAvailable())
writer = animation.FFMpegFileWriter(fig)
writer.setup(fig, "test1.mp4",224)

with writer.saving(fig,"test1.mp4", dpi=224):
    for i in range(len(frameSeg)):
        PlotFrame(i)
        writer.grab_frame()

# writer.finish()

print("done")


    


    It runs, but yeilds the following error

    


    


    [image2 demuxer @ 0000021fab8c1000] Unable to parse option value "Figure(650x650)" as video rate
[image2 demuxer @ 0000021fab8c1000] Error setting option framerate to value Figure(650x650).
[in#0 @ 0000021fab8c1e00] Error opening input : Invalid argument
Error opening input file ... AppData\Local\Temp\tmpe19ci2wz\tmp%07d.png.
Error opening input files : Invalid argument

    


    


    


    subprocess.CalledProcessError : Command '['ffmpeg', '-framerate', 'Figure(650x650)', '-i', 'F :\Users\Kenne.DESKTOP-BT6VROU\AppData\Local\Temp\tmpe19ci2wz\tmp%07d.png', '-loglevel', 'error', '-vcodec', 'h264', '-pix_fmt', 'yuv420p', '-y', 'test1.mp4']' returned non-zero exit status 4294967274.

    


    


    Did I miss something in setup, is it an installation problem, or is it a bug ?

    


    By the way using FFMpegWRiter with FuncAnimation works ...

    


  • Unknown OS 'msys_nt-6.1'. using Mingw on win7 64bit

    9 janvier 2016, par user63898

    I try to compile FFmpeg from source using MSYS2 and MIngW I’m using win7 64 bit .
    using .

    $ ./configure --enable-shared

    I’m getting this error :

    Unknown OS 'msys_nt-6.1'.

    If you think configure made a mistake, make sure you are using the latest
    version from Git.  If the latest version fails, report the problem to the
    ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "config.log" produced by configure as this will help
    solve the problem.

    looking in to config.log
    i see ( the end of the log ) :

    gcc -std=c99 -Wall -O3 -c -o /tmp/ffconf.fnJeLuIu.o /tmp/ffconf.e8DJYGJM.c
    check_code cc  int test[2*(sizeof(void *) > 4) - 1]
    check_cc
    BEGIN /tmp/ffconf.e8DJYGJM.c
       1   int main(void) { int test[2*(sizeof(void *) > 4) - 1]; return 0; }
    END /tmp/ffconf.e8DJYGJM.c
    gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c99 -c -o /tmp/ffconf.fnJeLuIu.o /tmp/ffconf.e8DJYGJM.c
    G:/msys64/tmp/ffconf.e8DJYGJM.c: In function 'main':
    G:/msys64/tmp/ffconf.e8DJYGJM.c:1:22: error: size of array 'test' is negative
    int main(void) { int test[2*(sizeof(void *) > 4) - 1]; return 0; }
                         ^
    check_cpp_condition stddef.h defined(__x86_64__)
    check_cpp
    BEGIN /tmp/ffconf.e8DJYGJM.c
       1   #include
       2   #if !(defined(__x86_64__))
       3   #error "unsatisfied condition: defined(__x86_64__)"
       4   #endif
    END /tmp/ffconf.e8DJYGJM.c
    gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c99 -E -o /tmp/ffconf.fnJeLuIu.o /tmp/ffconf.e8DJYGJM.c
    G:/msys64/tmp/ffconf.e8DJYGJM.c:3:2: error: #error "unsatisfied condition: defined(__x86_64__)"
    #error "unsatisfied condition: defined(__x86_64__)"
     ^
    Unknown OS 'msys_nt-6.1'.

    what did i miss ? what did i do wrong ?
    Thanks

  • Unknown OS 'msys_nt-6.1'. using Mingw on win7 64bit

    6 juillet 2018, par user63898

    I try to compile FFmpeg from source using MSYS2 and MIngW I’m using win7 64 bit .
    using .

    $ ./configure --enable-shared

    I’m getting this error :

    Unknown OS 'msys_nt-6.1'.

    If you think configure made a mistake, make sure you are using the latest
    version from Git.  If the latest version fails, report the problem to the
    ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "config.log" produced by configure as this will help
    solve the problem.

    looking in to config.log
    i see ( the end of the log ) :

    gcc -std=c99 -Wall -O3 -c -o /tmp/ffconf.fnJeLuIu.o /tmp/ffconf.e8DJYGJM.c
    check_code cc  int test[2*(sizeof(void *) > 4) - 1]
    check_cc
    BEGIN /tmp/ffconf.e8DJYGJM.c
       1   int main(void) { int test[2*(sizeof(void *) > 4) - 1]; return 0; }
    END /tmp/ffconf.e8DJYGJM.c
    gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c99 -c -o /tmp/ffconf.fnJeLuIu.o /tmp/ffconf.e8DJYGJM.c
    G:/msys64/tmp/ffconf.e8DJYGJM.c: In function 'main':
    G:/msys64/tmp/ffconf.e8DJYGJM.c:1:22: error: size of array 'test' is negative
    int main(void) { int test[2*(sizeof(void *) > 4) - 1]; return 0; }
                         ^
    check_cpp_condition stddef.h defined(__x86_64__)
    check_cpp
    BEGIN /tmp/ffconf.e8DJYGJM.c
       1   #include
       2   #if !(defined(__x86_64__))
       3   #error "unsatisfied condition: defined(__x86_64__)"
       4   #endif
    END /tmp/ffconf.e8DJYGJM.c
    gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c99 -E -o /tmp/ffconf.fnJeLuIu.o /tmp/ffconf.e8DJYGJM.c
    G:/msys64/tmp/ffconf.e8DJYGJM.c:3:2: error: #error "unsatisfied condition: defined(__x86_64__)"
    #error "unsatisfied condition: defined(__x86_64__)"
     ^
    Unknown OS 'msys_nt-6.1'.

    what did i miss ? what did i do wrong ?
    Thanks