Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (15)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (4376)

  • how to run "3gp, FLV, avi" video format in AVPLAYER or MPMoviePlayerViewController in iOS ?

    8 mai 2015, par Jenifer

    I need to play 3gp, FLV, avi Video file format in my application.
    I had searched lot about it.

    Got some library like "FFmpeg" Library. But could not find any sample code for it.

    Any other ways for it are also appreciated.

    Does any body have done it before ?

    I am even not sure that if it is possible or not in iOS.

    Please give me solution for it.

    UPDATE :

    I tried one 3gp Video in my AVquePlaye but it is not play in my code,

    While i use same Video in WhatsApp in my iPhone, Surprisingly video is playing there.

  • Piping to ffmpeg fails - "pipe: : Not enough space"

    23 avril 2015, par Classiest Medic

    I’m attempting to write a script that can download a file from a webserver to memory, pipe it directly to the ffprobe module of ffmpeg, and return the file’s details as determined by ffprobe. This is what I currently have :

    import requests
    from io import BytesIO
    from subprocess import Popen, PIPE

    def get_file(url):
       r = requests.get(url)
       file = BytesIO(r.content).seek(0)
       return file

    def get_info(file):
       p = Popen(["ffprobe", "-i", "-"], stdin=file, stdout=PIPE, stderr=PIPE)
       output = p.communicate()[1].decode("utf8")
       return output

    Here is a comparison between outputs for a file loaded with open() :

    ffprobe version N-66931-gbbd8c85 Copyright (c) 2007-2014 the FFmpeg developers
     built on Oct 17 2014 01:05:12 with gcc 4.9.1 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      54. 10.100 / 54. 10.100
     libavcodec     56.  8.100 / 56.  8.100
     libavformat    56.  9.100 / 56.  9.100
     libavdevice    56.  1.100 / 56.  1.100
     libavfilter     5.  1.106 /  5.  1.106
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mp3, from 'pipe:':
     Metadata:
       title           : Test File
     Duration: N/A, start: 0.000000, bitrate: 320 kb/s
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
       Metadata:
         title           : Test File

    ... and a file downloaded with get_file() :

    ffprobe version N-66931-gbbd8c85 Copyright (c) 2007-2014 the FFmpeg developers
     built on Oct 17 2014 01:05:12 with gcc 4.9.1 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      54. 10.100 / 54. 10.100
     libavcodec     56.  8.100 / 56.  8.100
     libavformat    56.  9.100 / 56.  9.100
     libavdevice    56.  1.100 / 56.  1.100
     libavfilter     5.  1.106 /  5.  1.106
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    pipe:: Not enough space

    At first, this appears like an issue with insufficient memory, but the files I’m working with are small (<10MB), so I don’t think that’s the issue. Apparently, though, I’m doing something wrong... could anyone give me any suggestions as to why piping would fail in this instance ?

  • FFMPEG gives "Error opening Filters" error

    18 juin 2015, par liberation

    I am trying to compress a file and store it in MongoDB via GridFS. I am compressing it using a node module called stream-transponder which uses ffmpeg to compress it. My code looks like this

    bodyParser.process('video/*', function(stream, req, next) {
       var busboy = new Busboy({ headers : req.headers });
       var fileId = new mongo.ObjectId();
       var writestream = gfs.createWriteStream({
               filename: (fileId.toString()) + ".mp4",
               _id : fileId,
               mode : "w",
               content_type  : "video/mp4"
       });
       new Transcoder(stream)
           .videoCodec('h264')
           .videoBitrate(800 * 1000)
           .fps(25)
           .aspectRatio(1.7777777)
           .audioCodec('aac')
           .sampleRate(44100)
           .channels(2)
           .audioBitrate(128 * 1000)
           .format('mp4')
       .on('finish', function () {
           req.custom = fileId;
           console.log(fileId);
           next();
       }).stream().pipe(writestream);

    });

    The ffmpeg command line call that stream-transcoder makes looks like this :

    ffmpeg -i - -vcodec h264 -b:v 800000 -r 25 -aspect 1.7777777 -acodec aac -ar 44100 -ac 2 -ab 128000 -f avi pipe:1

    sometime’s the command looks like this

    ffmpeg -i - -vf scale=min(trunc(320/hsub)*hsub\,trunc(a*240/hsub)*hsub):min(trunc(240/vsub)*vsub\,trunc(320/a/vsub)*vsub) -vcodec h264 -b:v 800000 -r 25 -acodec libfaac -ar 44100 -ac 2 -ab 128000 -f mp4 -movflags frag_keyframe+faststart pipe:1

    eventhough I am uploading the same exact file I uploaded when I got the former command. They both give the same error (Opening Filters error).

    I tried running encoding a file straight from the terminal with this command :

    ffmpeg -i VIDEO0077.mp4 -c:v h264 -preset slow -crf 22 -c:a copy output2.mp4

    and it worked like a charm. I am not sure what’s causing the Error Opening Filters error.