Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (24)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

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

Sur d’autres sites (3744)

  • How can i parse strings as the inputs to subprocess.Popen ?

    26 juillet 2013, par rash

    Here I tried to cut first and second 30sec long video file from "path/connect.flv" to the files output1.flv and output2.flv. It works. I able to concatenate these two files to form a new file "final.flv" of 60sec long. So this works and i am getting the outputs output1.flv [30sec], output2.flv[30sec] and final.flv[1min].

    Here is the python code :

    import subprocess

    ffmpeg_command1 = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:00", "-t", "00:00:30", "/home/xincoz/test/output1.flv"]

    ffmpeg_command2 = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:30", "-t", "00:00:30", "/home/xincoz/test/output2.flv"]

    ffmpeg_command3 = ["mencoder", "-forceidx", "-ovc", "copy", "-oac", "pcm", "-o", "/home/xincoz/test/final.flv", "/home/xincoz/test/output1.flv", "/home/xincoz/test/output2.flv"]

    subprocess.call(ffmpeg_command1)

    subprocess.call(ffmpeg_command2)

    subprocess.Popen(ffmpeg_command3)

    But what i really want is to concatenate two strings out1 and out2 and concatinate these two to a file instead of concatenating "/home/xincoz/test/output1.flv" and "/home/xincoz/test/output2.flv". So how can i parse string out1 and out2 as the inputs to mencoder ? Please edit my code to achieve the result.

    import subprocess,os

    ffmpeg_command = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:00", "-t", "00:00:30","-f", "flv", "pipe:1"]

    p = subprocess.Popen(ffmpeg_command,stdout=subprocess.PIPE)

    out1, err = p.communicate()

    ffmpeg_command1 = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:30", "-t", "00:00:30","-f", "flv", "pipe:1"]

    p1 = subprocess.Popen(ffmpeg_command1,stdout=subprocess.PIPE)

    out2, err1 = p1.communicate()

    ffmpeg_command2 = ["mencoder", "-forceidx", "-ovc", "copy", "-oac", "pcm", "-o", "/home/xincoz/test/final.flv", out1, out2 ]

    p2=subprocess.Popen(ffmpeg_command2)

    Please help me. Thanks a lot in advance.

  • Compile ffmpeg and x264 with —enable-shared

    20 août 2016, par John Allard

    I am trying to compile ffmpeg with shared-library support, because when I compiled it statically it ended up making huge libraries, like libavcodec.a with 75MB in size. Any programs that I compiled against libavcodec was at least 50MB in size. This only happens on my RaspberryPi though, if I do

    ls -lsth $(which ffmpeg)

    on my RPI3 I get

    15M -rwxr-xr-x 1 pi pi 15M Jul 29 21:49 /home/pi/camiocam/cam/binaries/bin//ffmpeg

    While if I do the same on my macbook I get this output

    488 -r-xr-xr-x  1 john  admin   242K Jul 26 19:34 /usr/local/Cellar/ffmpeg/3.1.1/bin/ffmpeg

    To get shared library support I did the following

    # download and install libx264
    cd ~/ffmpeg_build
    git clone git://git.videolan.org/x264.git
    cd x264
    PATH="$HOME/bin:$PATH" ./configure --host=arm-unknown-linux-gnueabi  --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-shared --disable-opencl
    # PATH="$HOME/bin:$PATH" make -j 8
    # PATH="$HOME/bin:$PATH" make install
    # ldconfig

    and ...

    # to install ffmpeg

    cd ~/ffmpeg_sources
    wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
    tar xjvf ffmpeg-snapshot.tar.bz2
    cd ffmpeg
    PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --arch=armel --target-os=linux --extra-cflags="-I$HOME/ffmpeg_build/include" --enable-pic  --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --enable-gpl --enable-libx264 --enable-nonfree --enable-shared
    PATH="$HOME/bin:$PATH" make -j 8

    Which gives this output

    License: nonfree and unredistributable
    Creating config.mak, config.h, and doc/config.texi...
    config.h is unchanged
    libavutil/avconfig.h is unchanged
    libavcodec/bsf_list.c is unchanged
    libavformat/protocol_list.c is unchanged
    CC      libavcodec/libx264.o
    POD     doc/ffprobe.pod
    POD     doc/ffmpeg-all.pod
    POD     doc/ffserver-all.pod
    POD     doc/ffmpeg.pod
    POD     doc/ffprobe-all.pod
    POD     doc/ffserver.pod
    MAN     doc/ffprobe.1
    MAN     doc/ffmpeg.1
    MAN     doc/ffserver.1
    MAN     doc/ffmpeg-all.1
    MAN     doc/ffprobe-all.1
    MAN     doc/ffserver-all.1
    GEN     libavcodec/libavcodec.ver
    LD      libavcodec/libavcodec.so.57
    AR      libavcodec/libavcodec.a
    LD      libavformat/libavformat.so.57
    LD      libavfilter/libavfilter.so.6
    LD      libavdevice/libavdevice.so.57
    library.mak:102: recipe for target 'libavdevice/libavdevice.so.57' failed
    make: *** [libavdevice/libavdevice.so.57] Killed
    make: *** Deleting file 'libavdevice/libavdevice.so.57'

    I’ve tried to add the --enable-pic flag to the ffmpeg configure command but that made no difference.

  • How can we use ffmpeg or fluent-ffmpeg with angular cli ?

    25 juillet 2019, par Nileshdeora1122

    How to use ffmpeg with angular2+ application ?

    im tring to use ffmpeg inside my angular application but it is throwing some error during importing ffmpeg in angular like this :

    // import * as ffmpeg from 'fluent-ffmpeg';

    but getting errors like this :

    ERROR in ./node_modules/fluent-ffmpeg/lib/ffprobe.js
    Module not found: Error: Can't resolve 'child_process' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/utils.js
    Module not found: Error: Can't resolve 'child_process' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/processor.js
    Module not found: Error: Can't resolve 'child_process' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/processor.js
    Module not found: Error: Can't resolve 'fs' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/capabilities.js
    Module not found: Error: Can't resolve 'fs' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/recipes.js
    Module not found: Error: Can't resolve 'fs' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/isexe/mode.js
    Module not found: Error: Can't resolve 'fs' in '/home/pfacode1/angularApplication/careerfable2/node_modules/isexe'
    ERROR in ./node_modules/isexe/windows.js
    Module not found: Error: Can't resolve 'fs' in '/home/pfacode1/angularApplication/careerfable2/node_modules/isexe'
    ERROR in ./node_modules/isexe/index.js
    Module not found: Error: Can't resolve 'fs' in '/home/pfacode1/angularApplication/careerfable2/node_modules/isexe'
    ERROR in ./node_modules/fluent-ffmpeg/lib/utils.js
    Module not found: Error: Can't resolve 'os' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/recipes.js
    Module not found: Error: Can't resolve 'path' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/processor.js
    Module not found: Error: Can't resolve 'path' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/capabilities.js
    Module not found: Error: Can't resolve 'path' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/fluent-ffmpeg.js
    Module not found: Error: Can't resolve 'path' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/options/misc.js
    Module not found: Error: Can't resolve 'path' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib/options'
    ERROR in ./node_modules/which/which.js
    Module not found: Error: Can't resolve 'path' in '/home/pfacode1/angularApplication/careerfable2/node_modules/which'
    ERROR in ./node_modules/fluent-ffmpeg/lib/recipes.js
    Module not found: Error: Can't resolve 'stream' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'