Recherche avancée

Médias (91)

Autres articles (2)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (1499)

  • Installation of FFMPEG for Python in WIndows

    15 janvier 2017, par user3587175

    I’m trying to use this python video converter and I couldn’t even run the test. I read in the manual that I had to install FFMPEG separately so I did (I created the folder in C :\, the enviroment variable "path" and tested it and worked) but still doesn’t work.

    When I run the command :

    python setup.py test

    I get this :

    Traceback (most recent call last):
     File "setup.py", line 51, in <module>
       packages=['converter'],
     File "C:\Python27\lib\distutils\core.py", line 151, in setup
       dist.run_commands()
     File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
       self.run_command(cmd)
     File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
       cmd_obj.run()
     File "setup.py", line 20, in run
       raise Exception('tests failed')
    Exception: tests failed
    </module>

    When I run this example code :

    from converter import Converter
    c = Converter()

    info = c.probe('test1.ogg')

    conv = c.convert('test1.ogg', '/tmp/output.mkv', {
       'format': 'mkv',
       'audio': {
           'codec': 'mp3',
           'samplerate': 11025,
           'channels': 2
       },
       'video': {
           'codec': 'h264',
           'width': 720,
           'height': 400,
           'fps': 15
       }})

    for timecode in conv:
       print "Converting (%f) ...\r" % timecode

    I get this :

    Traceback (most recent call last):
     File "C:\Users\USER\worspace_pyth\cosa\prueba1.py", line 3, in <module>
       c=Converter()
     File "C:\Python27\converter\__init__.py", line 27, in __init__
       ffprobe_path=ffprobe_path)
     File "C:\Python27\converter\ffmpeg.py", line 345, in __init__
       raise FFMpegError("ffmpeg binary not found: " + self.ffmpeg_path)
    converter.ffmpeg.FFMpegError: ffmpeg binary not found: ffmpeg
    </module>

    I can’t understand what else I need to do for this to work. Thanks for your help.

  • java.lang.UnsatifiedLinkError : no jniavutil in java.library.path using JavaCV FFmpegFrameGrabber

    31 mars 2015, par Noah Lutz

    I’m writing a program that is using JavaCV to grab frames from a stream. Its trying to use FFmpegFrameGrabber to capture the frames but when I try to run it, I get an UnsatisfiedLinkError.

    Here is the code :

    FrameGrabber frameGrabber;
       try{
           frameGrabber = new FFmpegFrameGrabber("http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8");
           frameGrabber.start();

           while(true){
               video.addFrame(new Frame(frameGrabber.grab()));
               System.out.println(video.getLength());
           }
       }catch(Exception e){
           e.printStackTrace();
       }

    And here is the stack trace :

    Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: no jniavutil in java.library.path
       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
       at java.lang.Runtime.loadLibrary0(Runtime.java:870)
       at java.lang.System.loadLibrary(System.java:1119)
       at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:535)
       at org.bytedeco.javacpp.Loader.load(Loader.java:410)
       at org.bytedeco.javacpp.Loader.load(Loader.java:353)
       at org.bytedeco.javacpp.avutil.<clinit>(avutil.java:10)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:344)
       at org.bytedeco.javacpp.Loader.load(Loader.java:385)
       at org.bytedeco.javacpp.Loader.load(Loader.java:353)
       at org.bytedeco.javacpp.avcodec.<clinit>(avcodec.java:12)
       at org.bytedeco.javacv.FFmpegFrameGrabber.<clinit>(FFmpegFrameGrabber.java:103)
       at com.noahlutz.gopro.GoProDVR.run(GoProDVR.java:23)
       at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.UnsatisfiedLinkError: /private/var/folders/4q/tw0nqgpn4cv2q7yr052_szh00000gn/T/javacpp104085411945039/libjniavutil.dylib: dlopen(/private/var/folders/4q/tw0nqgpn4cv2q7yr052_szh00000gn/T/javacpp104085411945039/libjniavutil.dylib, 1): Library not loaded: @rpath/libavutil.52.dylib
     Referenced from: /private/var/folders/4q/tw0nqgpn4cv2q7yr052_szh00000gn/T/javacpp104085411945039/libjniavutil.dylib
     Reason: no suitable image found.  Did find:
       /private/var/folders/4q/tw0nqgpn4cv2q7yr052_szh00000gn/T/javacpp104085411945039/./libavutil.52.dylib: malformed mach-o image: load command #16 length (0) too small in /private/var/folders/4q/tw0nqgpn4cv2q7yr052_szh00000gn/T/javacpp104085411945039/./libavutil.52.dylib
       at java.lang.ClassLoader$NativeLibrary.load(Native Method)
       at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1814)
       at java.lang.Runtime.load0(Runtime.java:809)
       at java.lang.System.load(System.java:1083)
       at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:524)
       ... 11 more

    Process finished with exit code 0
    </clinit></clinit></clinit>

    I have both OpenCV and FFmpeg installed and I followed the instructions for the manual installation of JavaCV on their github page.

    Thanks for your help.

  • PHP exec() and backslash \

    17 mars 2015, par Tio

    I’m trying to run the following command on exec :

    ffmpeg -y -i video.mp4 \
    -ss 1067 -i video.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -t 32 tmp/cuts/6.ts \
    -ss 1215 -i video.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -t 32 tmp/cuts/7.ts

    If i copy this command and run it on a shell everything works great, the video is cutted, perfect.

    However running trough php exec, ffmpeg returns the following error :

    [NULL @ 052a0060] Unable to find a suitable output format for '\'
    \: Invalid argument

    Even if i copy paste the command like this :

    &lt;?php
       $command = 'ffmpeg -y -i video.mp4 \
            -ss 1067 -i video.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -t 32 tmp/cuts/6.ts \
            -ss 1215 -i video.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -t 32 tmp/cuts/7.ts';

       echo $command.chr(10);

       $return = 0;
       $output = array();
       exec($command, $output, $return);

    ?>

    Am I missing something ? I’ve tried escapeshellcmd, escapeshellarg, even double backslashes to escape the backslash, and nothing.

    This happens both in windows and Unix, errors are exactly the same.

    Any idea on what’s going on with this ?