Recherche avancée

Médias (91)

Autres articles (71)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (9624)

  • FFMPEG HLS video can't play

    4 mai 2019, par John Doe

    I’m using ffmpeg to convert mp4 video to HLS but just copy codec without re-encoding and a lot of video having problem when playing with JWPlayer

    enter image description here

    First i make a loop to find best segment duration from 15 down to 1, do it over again couple times (480p, 720p, 1080p)

    ffmpeg -i in.mp4 -codec copy -bsf:v h264_mp4toannexb -f hls -hls_list_size 0 -hls_time $second out.m3u8

    If largest segment length is smaller than 10MB then break loop and using single segment option

    ffmpeg -i in.mp4 -f hls -hls_time $second_return_from_loop -hls_list_size 0 -hls_flags single_file -codec copy -bsf:v h264_mp4toannexb out.m3u8

    Generate master playlist with info (bitrate, width x height) getting from ffprobe command

    ffprobe -i in.mp4 -v quiet -print_format json -show_format -show_streams

    Is there something wrong with my command because sometime video got freeze but sound still playing or break on seeking, this’s my first time working with ffmpeg, really appreciate your help

    UPDATED : It was error on my proxy streaming source code not ffmpeg

  • FFMPEG gets in never ending condition while live streaming on YouTube

    17 avril 2019, par Nayan Katkani

    I have been working in AS3 to stream 1080P video on YouTube and video gets start uploading and almost 4-5 minutes of the video has been uploaded successfully and afterwards YouTube shows that stream has been ended, but FFMPEG will never hits on "Exit" or any other method even after waiting for next 10 minutes.

    Below is the method I am using.

    public var _nativeProcessStartupInfo:NativeProcessStartupInfo;
    public var _processArgs:Vector.<string>;
    public var _process:NativeProcess;
    protected function StartVideo_clickHandler(event:MouseEvent):void
    {
       _nativeProcessStartupInfo.executable = File.applicationStorageDirectory.resolvePath("ffmpeg.exe Path");
       _processArgs.push('-re');
       _processArgs.push('-i');
       _processArgs.push(VideoPath);
       _processArgs.push('-vcodec');
       _processArgs.push('copy');
       _processArgs.push('-acodec');
       _processArgs.push('copy');
       _processArgs.push('-maxrate');
       _processArgs.push('4500k');
       _processArgs.push('-bufsize');
       _processArgs.push('9000k');
       _processArgs.push('-pix_fmt');
       _processArgs.push('yuv422p');
       _processArgs.push('-preset');
       _processArgs.push('fast');
       _processArgs.push('-ac');
       _processArgs.push('2');
       _processArgs.push('-r');
       _processArgs.push('30');                            
       _processArgs.push('-g');
       _processArgs.push('60');                            
       _processArgs.push('-ar');
       _processArgs.push('44100');
       _processArgs.push('-f');
       _processArgs.push('flv');                  
       _processArgs.push(streamurl+'/'+streamname);
       _nativeProcessStartupInfo.arguments = _processArgs;
       _process = new NativeProcess();
       _process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, onOutputData);
       _process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA, progress);
       _process.addEventListener(NativeProcessExitEvent.EXIT, onExit);
       _process.addEventListener(IOErrorEvent.STANDARD_OUTPUT_IO_ERROR, onIOErrorNativeProcess);
       _process.addEventListener(IOErrorEvent.STANDARD_ERROR_IO_ERROR, onIOErrorNativeProcess);
       _process.start(_nativeProcessStartupInfo);
    }
    public function onIOErrorNativeProcess(event:IOErrorEvent):void
    {
       trace(event.toString());
    }
    public function onOutputData(event:ProgressEvent):void
    {
       trace("Got: ", _process.standardOutput.readUTFBytes(_process.standardOutput.bytesAvailable));
    }
    public function progress(e:ProgressEvent):void
    {
       trace(e);
    }
    public function onExit(e:NativeProcessExitEvent):void
    {
       trace(e);
    }
    </string>

    I have tried with 720P video too by changing bit rate from 4500k to 2500k which is as per YouTube and it is working fine but with 1080P something not went as per expectation.

    Here are the video details :
    Resolution : 1920*1080
    Data Rate : 3220kbps
    FrameRate : 20
    Video Description

    Thanks in advance

  • Package not found - add libav to PKG_CONFIG_PATH environment variable

    19 mars 2019, par Brayton Larson

    I am attempting to build the Parrot SDK and when running the command it continuously fails due to multiple libav package variants not being found. Below is the error message.

    user@TheMysteriousMachine : /WORKING_DIRECTORY$ ./build.sh -p arsdk-native -t build-sdk -j
        [I] Starting task 'build-sdk'
        [I] In '/home/user/WORKING_DIRECTORY' :   ALCHEMY_TARGET_CONFIG_DIR="/home/user/WORKING_DIRECTORY/products/arsdk  /native/config" ALCHEMY_TARGET_OUT="/home/user/WORKING_DIRECTORY/out/arsdk-native" ALCHEMY_TARGET_PRODUCT="arsdk" ALCHEMY_TARGET_PRODUCT_VARIANT="native" ALCHEMY_TARGET_SCAN_ADD_DIRS=" /home/user/WORKING_DIRECTORY/packages" ALCHEMY_TARGET_SCAN_PRUNE_DIRS=" /home/user/WORKING_DIRECTORY" ALCHEMY_USE_COLORS="1" ALCHEMY_WORKSPACE_DIR="/home/user/WORKING_DIRECTORY" PARROT_BUILD_PROP_GROUP="drones" PARROT_BUILD_PROP_PRODUCT="arsdk" PARROT_BUILD_PROP_PROJECT="arsdk" PARROT_BUILD_PROP_UID="arsdk-native-20190316-1404-0.0.0" PARROT_BUILD_PROP_VARIANT="native" PARROT_BUILD_PROP_VERSION="0.0.0" /home/user/WORKING_DIRECTORY/build/alchemy/scripts/alchemake -j 8 all
        ----------------------------------------------------------------------
        + ALCHEMY_WORKSPACE_DIR = /home/user /WORKING_DIRECTORY
        + TARGET_PRODUCT = arsdk
        + TARGET_PRODUCT_VARIANT = native
        + TARGET_OS = linux
        + TARGET_OS_FLAVOUR = native
        + TARGET_LIBC = native
        + TARGET_ARCH = x64
        + TARGET_CPU = 
        + TARGET_OUT = /home/user/WORKING_DIRECTORY/out/arsdk-native
        + TARGET_CONFIG_DIR = /home/user/WORKING_DIRECTORY /products/arsdk/native/config
        + TARGET_CC_PATH = /usr/bin/cc
        + TARGET_CC_VERSION = 7
        ----------------------------------------------------------------------
        Scanning /home/user/WORKING_DIRECTORY/packages for makefiles...
        Found 44 makefiles
        Prebuilt module ncurses marked as overriden
        Prebuilt module ncurses marked as overriden
        Package libavcodec was not found in the pkg-config search path.
        Perhaps you should add the directory containing 
    libavcodec.pc&amp;apos;
       to the PKG_CONFIG_PATH environment variable
       No package &amp;apos;libavcodec&amp;apos; found
       Package libavformat was not found in the pkg-config search path.
       Perhaps you should add the directory containing

    libavformat.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libavformat' found
    Package libswscale was not found in the pkg-config search path.
    Perhaps you should add the directory containing

    libswscale.pc&amp;apos;
       to the PKG_CONFIG_PATH environment variable
       No package &amp;apos;libswscale&amp;apos; found
       Package libavutil was not found in the pkg-config search path.
       Perhaps you should add the directory containing

    libavutil.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libavutil' found
    Package libavcodec was not found in the pkg-config search path.
    Perhaps you should add the directory containing

    libavcodec.pc&amp;apos;
       to the PKG_CONFIG_PATH environment variable
       No package &amp;apos;libavcodec&amp;apos; found
       Package libavformat was not found in the pkg-config search path.
       Perhaps you should add the directory containing

    libavformat.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libavformat' found
    Package libswscale was not found in the pkg-config search path.
    Perhaps you should add the directory containing

    libswscale.pc&amp;apos;
       to the PKG_CONFIG_PATH environment variable
       No package &amp;apos;libswscale&amp;apos; found
       Package libavutil was not found in the pkg-config search path.
       Perhaps you should add the directory containing

    libavutil.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libavutil' found
    Found 96 modules
    Computing modules dependencies...
    Checking modules dependencies...
    /home/user/WORKING_DIRECTORY/build/alchemy/main.mk:360 : *** /home/user /WORKING_DIRECTORY/packages/libARDiscovery : module 'libARDiscovery' depends on unknown module 'avahi'. Stop.
    [E] Task 'build-sdk' failed (Command failed (returncode=2))

    As I understand it libav has been replaced by ffmpeg but the build should still be able to reference the packages as libav. I’ve tried adding different paths to PKG_CONFIG_PATH using `export PKG_CONFIG_PATH=...’ but with no success. It is possible I’m not adding the correct path, I used ’dpkg -L ffmpeg’ to locate the package. The output of that is :

    user@TheMysteriousMachine : $ dpkg -L ffmpeg
        /.
        /etc
        /etc/ffserver.conf
        /usr
        /usr/bin
        /usr/bin/ffmpeg
        /usr/bin/ffplay
        /usr/bin/ffprobe
        /usr/bin/ffserver
        /usr/bin/qt-faststart
        /usr/share
        /usr/share/doc
        /usr/share/doc/ffmpeg
        /usr/share/doc/ffmpeg/RELEASE_NOTES
        /usr/share/doc/ffmpeg/copyright
        /usr/share/ffmpeg
        /usr/share/ffmpeg/libvpx-1080p.ffpreset
        /usr/share/ffmpeg/libvpx-1080p50_60.ffpreset
        /usr/share/ffmpeg/libvpx-360p.ffpreset
        /usr/share/ffmpeg/libvpx-720p.ffpreset
        /usr/share/ffmpeg/libvpx-720p50_60.ffpreset
        /usr/share/lintian
        /usr/share/lintian/overrides
        /usr/share/lintian/overrides/ffmpeg
        /usr/share/man
        /usr/share/man/man1
        /usr/share/man/man1/ffmpeg-all.1.gz
        /usr/share/man/man1/ffmpeg-bitstream-filters.1.gz
        /usr/share/man/man1/ffmpeg-codecs.1.gz
        /usr/share/man/man1/ffmpeg-devices.1.gz
        /usr/share/man/man1/ffmpeg-filters.1.gz
        /usr/share/man/man1/ffmpeg-formats.1.gz
        /usr/share/man/man1/ffmpeg-protocols.1.gz
        /usr/share/man/man1/ffmpeg-resampler.1.gz
        /usr/share/man/man1/ffmpeg-scaler.1.gz
        /usr/share/man/man1/ffmpeg-utils.1.gz
        /usr/share/man/man1/ffmpeg.1.gz
        /usr/share/man/man1/ffplay-all.1.gz
        /usr/share/man/man1/ffplay.1.gz
        /usr/share/man/man1/ffprobe-all.1.gz
        /usr/share/man/man1/ffprobe.1.gz
        /usr/share/man/man1/ffserver-all.1.gz
        /usr/share/man/man1/ffserver.1.gz
        /usr/share/man/man1/qt-faststart.1.gz
        /usr/share/doc/ffmpeg/changelog.Debian.gz
        

    ...of which I can assume the useful part is ’/usr/bin’ which i added to my PKG_CONFIG_PATH and still the same error when building. I am running Ubuntu 18.04 LTS. I’m at a loss and have been grinding at this for the past 2 days, any help would be GREATLY appreciated. Thank you and I’m happy to provide more needed information. As a small request, I am pretty new to Linux so if you could include as many details in command line operations as possible it would help alot.