Recherche avancée

Médias (91)

Autres articles (17)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

Sur d’autres sites (4059)

  • MPD doesnt load ffmpeg as decoder

    10 août 2022, par dmSherazi

    I am using openwrt 21.2.3 and mpd on it. I have compile mpd full and libffmpeg full as well as ffmpeg-full packages.
But my mpd wont load ffmpeg as decoder. Also tried to force it by adding decoder { plugin “ffmpeg” enabled “no” }” line to /etc/mpd.conf

    


    below is my mpd.conf

    


    log_file "syslog"

bind_to_address "127.0.0.1"
bind_to_address "192.168.1.16"

input {
    plugin          "curl"
}

audio_output {
    type            "alsa"
    name            "sun4icodec"
    device          "plug:dmix"
    mixer_control   "Power Amplifier"
}

decoder {
     plugin  "ffmpeg"
     enabled  "yes"
}


    


    the mpd —version output is as follows

    


    Music Player Daemon 0.21.26 (v21.02.3)
Copyright 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright 2008-2018 Max Kellermann <max.kellermann@gmail.com>
This is free software; see the source for copying conditions.  There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Database plugins:
 simple proxy upnp

Storage plugins:
 local curl


Decoders plugins:
 [mad] mp3 mp2
 [vorbis] ogg oga
 [oggflac] ogg oga
 [flac] flac
 [opus] opus ogg oga
 [faad] aac
 [pcm]

Filters:


Tag plugins:
 id3tag

Output plugins:
 shout null fifo pipe alsa pulse httpd recorder

Encoder plugins:
 null opus wave flac

Input plugins:
 file alsa curl mms

Playlist plugins:
 extm3u m3u pls xspf asx rss soundcloud flac cue embcue

Protocols:
 file:// alsa:// http:// https:// mms:// mmsh:// mmst:// mmsu://

Other features:
 epoll iconv inotify ipv6 tcp un


    


    ideally it should have something like this

    


    
Decoders plugins:
 [dsdiff] dff
 [dsf] dsf
 [ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 adx afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg opus psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tak tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav webm wma wmv wsaud wsvga wv wve
 [pcm]

Filters:




    


    here are logs from mpd deamon

    


    Output of ffmpeg command

    


    
Mon Jul 25 09:40:30 2022 daemon.err mpd[1969]: exception: Error in /etc/mpd.conf line 17; Unknown tokens after '{'
Mon Jul 25 09:44:23 2022 daemon.debug mpd: vorbis: Xiph.Org libVorbis 1.3.7
Mon Jul 25 09:44:23 2022 daemon.debug mpd: opus: libopus 1.3.1-fixed
Mon Jul 25 09:44:23 2022 daemon.debug mpd: curl: version 7.82.0
Mon Jul 25 09:44:23 2022 daemon.debug mpd: curl: with mbedTLS/2.16.12


    


    ffmpeg version 4.3.3 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 8.4.0 (OpenWrt GCC 8.4.0 r16554-1d4dea6d4f)
  configuration: --enable-cross-compile --cross-prefix=arm-openwrt-linux-muslgnueabi- --arch=arm --cpu=cortex-a7 --target-os=linux --prefix=/usr --pkg-config=pkg-config --enable-shared --enable-static --enable-pthreads --enable-zlib --disable-doc --disable-debug --disable-lzma --disable-vaapi --disable-vdpau --disable-outdevs --disable-runtime-cpudetect --enable-lto --enable-vfp --enable-neon --enable-vfp --disable-x86asm --enable-hardcoded-tables --enable-gpl --enable-version3 --enable-nonfree --disable-swscale --disable-everything --enable-encoder=ac3 --enable-encoder=jpegls --enable-encoder=mpeg1video --enable-encoder=mpeg2video --enable-encoder=pcm_s16be --enable-encoder=pcm_s16le --enable-encoder=png --enable-encoder=vorbis --enable-encoder=zlib --enable-decoder=aac --enable-decoder=ac3 --enable-decoder=alac --enable-decoder=amrnb --enable-decoder=amrwb --enable-decoder=ape --enable-decoder=flac --enable-decoder=jpegls --enable-decoder=mp2 --enable-decoder=mp3 --enable-decoder=mpeg1video --enable-decoder=mpeg2video --enable-decoder=mpeg4 --enable-decoder=mpegvideo --enable-decoder=mpc7 --enable-decoder=mpc8 --enable-decoder=pcm_s16be --enable-decoder=pcm_s16le --enable-decoder=png --enable-decoder=vorbis --enable-decoder=wavpack --enable-decoder=wmav1 --enable-decoder=wmav2 --enable-decoder=zlib --enable-muxer=ac3 --enable-muxer=mp3 --enable-muxer=mp4 --enable-muxer=mpeg1video --enable-muxer=mpeg2video --enable-muxer=mpegts --enable-muxer=ogg --enable-muxer=rtp --enable-demuxer=aac --enable-demuxer=ac3 --enable-demuxer=amr --enable-demuxer=ape --enable-demuxer=avi --enable-demuxer=flac --enable-demuxer=matroska --enable-demuxer=mov --enable-demuxer=mp3 --enable-demuxer=mpegps --enable-demuxer=mpegts --enable-demuxer=mpegvideo --enable-demuxer=mpc --enable-demuxer=mpc8 --enable-demuxer=ogg --enable-demuxer=rm --enable-demuxer=rtsp --enable-demuxer=rtp --enable-demuxer=sdp --enable-demuxer=wav --enable-demuxer=wv --enable-parser=aac --enable-parser=flac --enable-parser=ac3 --enable-parser=mpegaudio --enable-parser=mpeg4video --enable-parser=mpegvideo --enable-protocol=file --enable-protocol=http --enable-protocol=icecast --enable-protocol=pipe --enable-protocol=rtp --enable-protocol=tcp --enable-protocol=udp --enable-decoder=adpcm_ima_wav --enable-decoder=adpcm_ima_qt --enable-decoder=adpcm_ms --enable-libfdk-aac --enable-encoder=libfdk_aac --enable-libmp3lame --enable-encoder=libmp3lame --enable-libopus --enable-decoder=libopus --enable-encoder=libopus --enable-libshine --enable-encoder=libshine --disable-postproc
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswresample   3.  7.100 /  3.  7.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...


    


  • flient-ffmpeg getting error as "ffmpeg exited with code 1 : pipe:0 : Invalid data found when processing input"

    6 avril 2023, par Abhishek Rawal

    I am trying to create API where i need to get uploaded video and create thumbnail from that video. But conditions are :

    


      

    • Video should not store on local disk
    • 


    • Once thumbnail is create it should not store on local disk, instead it should directly uploaded to AWS s3 bucket.
    • 


    


    Following is the code i am trying with :

    


    

    

    const ffmpeg = require('fluent-ffmpeg');
const stream = require('stream');

router.post('/thumbnail', upload.any(), (req, res) => {
  const videoBuffer = req.files[0].buffer;
  
  let readableVideoBuffer = new stream.PassThrough();
    readableVideoBuffer.write(videoBuffer);
    readableVideoBuffer.end()
    
  let bufferStream = new stream.PassThrough();
  
  ffmpeg(readableVideoBuffer)
    .on('filenames', function(filenames) {
      console.log('Will generate ' + filenames.join(', '))
    })
    .on('end', function() {
      console.log('Screenshots taken');
    })
    .on('error', (err) => {
      console.log(err);
    })
    .screenshots({
      count: 4,
      size: '100x100',
      timestamps: ['00:00:01.000'],
    })
    .writeToStream(bufferStream, { end: true });  /* while using this statement i am getting error */
    
    const buffers = [];
    bufferStream.on('data', function (buf) {
      buffers.push(buf);
    });
    bufferStream.on('end', function () {
      const outputBuffer = Buffer.concat(buffers);
      // use s3 bucket code here
      console.log('outputBuffer===========>', outputBuffer)
    });
})

    


    


    



    so while calling this API my app is crashing and i am getting error as :

    


    


    Error : ffmpeg exited with code 1 : pipe:0 : Invalid data found when
processing input

    


    


    Blockquote

    


    If i am not using this statement :

    


    


    .writeToStream(bufferStream, end : true ) ;

    


    


    then able to save file but in local disk, which is not required in my case.

    


    Please help me to understand what is wrong in this code, how i can resolve it.
Any type of help is appreciated.

    


  • ffmpeg_kit_flutter commands work on some devices but not on some other devices

    5 août 2023, par eashhh

    I have been trying to create videos from a series of images with similar formats using the ffmpeg_kit_flutter package. While using the package, I have encountered an issue where the video generation works on certain devices but not on my Android device (Android 10). Below are the code snippets I have been using for the video generation process.

    


    I have invoked the videoCreator() function in the following manner.

    


     Future<void> videoCreator() async {&#xA;    if (await Permission.storage.request().isGranted) {&#xA;      print(&#x27;generation initiated&#x27;);&#xA;      outputPath = File(&#x27;/storage/emulated/0/Download/output123.mp4&#x27;).path;&#xA;      String commandToExecute = &#x27;-framerate ${framerate.toInt()} -i &#x27;&#xA;          &#x27;\&#x27;$videoDirectory/%d.jpeg\&#x27;&#x27;&#xA;          &#x27; -q:v 1 -y $outputPath&#x27;;&#xA;      print(&#x27;$commandToExecute&#x27;);&#xA;      await FFmpegKit.execute(commandToExecute).then((session) async {&#xA;      final returnCode = await session.getReturnCode();&#xA;&#xA;</void>

    &#xA;

    The output from debug console is as follows :

    &#xA;

    I/flutter ( 5871): generation initiated&#xA;I/flutter ( 5871): -framerate 12 -i &#x27;/data/user/0/com.example.test_project/app_flutter/1/%d.jpeg&#x27; -q:v 1 -y /storage/emulated/0/Download/output123.mp4&#xA;I/flutter ( 5871): Loading ffmpeg-kit-flutter.&#xA;D/ffmpeg-kit-flutter( 5871): FFmpegKitFlutterPlugin com.arthenica.ffmpegkit.flutter.FFmpegKitFlutterPlugin@8324d61 started listening to events on io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation@50da4a8.&#xA;

    &#xA;

    And also to determine whether the video generation was successful or not, the code checks the return code obtained from the session. If the return code indicates success (using the ReturnCode.isSuccess() method), it prints "Success !" to the console else prints "Failure !" wrt to the following conditions given :

    &#xA;

    &#xA;        if (ReturnCode.isSuccess(returnCode)) {&#xA;          print("Success!");&#xA;          setState(() {&#xA;            processing = false;&#xA;            status = true;&#xA;          });&#xA;        } else if (ReturnCode.isCancel(returnCode)) {&#xA;          print("Cancelled!");&#xA;          setState(() {&#xA;            processing = false;&#xA;            status = false;&#xA;          });&#xA;        } else {&#xA;          print("Failure!");&#xA;          print(await session.getFailStackTrace());&#xA;          print("Failure!");&#xA;          print(await session.getOutput());&#xA;          setState(() {&#xA;            processing = false;&#xA;            status = false;&#xA;          });&#xA;        }&#xA;

    &#xA;

    But I continue to receive "Failure !" messages in the debug console.

    &#xA;

    I/flutter ( 5871): Failure!&#xA;I/flutter ( 5871): LightThemeSet&#xA;I/flutter ( 5871): null&#xA;I/flutter ( 5871): Failure!&#xA;

    &#xA;

    I attempted the following approaches to resolve the issue :

    &#xA;

      &#xA;
    1. Tried changing the output path for the generated video.

      &#xA;

    2. &#xA;

    3. Tried updating the required storage permissions in the AndroidManifest.xml file. Currently the permissions include the standard READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions used for the older android versions and the MANAGE_EXTERNAL_STORAGE permission used for newer versions

      &#xA;

    4. &#xA;

    5. Tested the app on various Android emulators with different configurations where it worked properly.

      &#xA;

    6. &#xA;

    &#xA;

    Any sort of help would be appreciated !&#xA;Warm regards

    &#xA;