Recherche avancée

Médias (91)

Autres articles (96)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

Sur d’autres sites (12272)

  • Getting ffmpeg to work on a nodejs server : Error : ffmpeg exited with code 1 : Output #0, wav, to 'output.wav'

    14 mai 2023, par Djaenike

    I need to convert an m4a buffer stream to a wav buffer stream. I'm trying to accomplish this through ffmpeg-static and fluent-ffmpeg on a nodejs backend. I'm using multer to process the buffer stream coming from the client, then pass it through a convertM4AToWAV, which

    


    Here is the code I'm using to establish ffmpeg and convert the buffer stream.

    


    const ffmpeg = require('fluent-ffmpeg');
const ffmpegStatic = require('ffmpeg-static');
ffmpeg.setFfmpegPath(ffmpegStatic);

...more code here for the api route...

const convertM4AToWAV = async (m4aBuffer) => {
  console.log(`buffer in: ${m4aBuffer}`);
  try {
    const wavBuffer = await ffmpeg(m4aBuffer)
      .toFormat('wav')
      .on('start', (command) => console.log('FFmpeg command:', command))
      .on('end', () => {
        console.log('Conversion complete.');
      })
      .save('output.wav');
    return wavBuffer;
  } catch (error) {
    console.error('Error converting audio buffer stream to wav:', error);
    throw error;
  }
};


    


    And here is the error message I'm seeing :

    


    //I can see the buffer come in
buffer in: ↑ftyp3gp4isom3gp4☺mdat????????.....
//I can see the command
FFmpeg command: ffmpeg -y -f wav output.wav
//Error message thrown
Error transcribing audio: Error: 13 INTERNAL: Request message serialization failure: invalid encoding
    at callErrorFromStatus
...file directory jibberish...
code: 13,
  details: 'Request message serialization failure: invalid encoding',
  metadata: Metadata { internalRepr: Map(0) {}, options: {} },
  note: 'Exception occurred in retry method that was not classified as transient'
}
error - uncaughtException: Error: ffmpeg exited with code 1: Output #0, wav, to 'output.wav':
Output file #0 does not contain any stream


    


    Any thoughts why this error is thrown ? My gut is telling me it's because I haven't configured ffmpeg correctly on the server.

    


  • ffmpeg stream offset command (-itsoffset) not working

    12 juillet 2013, par jen

    I would really appreciate if someone could give some pointers regarding the use of itsoffset with ffmpeg. I have read a number of posts on this subject, some of them explain very clearly how to re-synchronize audio and video with -itsoffset, but I haven't been able to make it work.
    My avi file is encoded with ffmpeg, in two passes, using the following command for the second pass :

    ffmpeg -i whole-vts_01.avs -pass 2 -y -vcodec libxvid -vtag XVID -b:v 1300K -g 240 -trellis 2 -mbd rd -flags +mv4+aic -acodec ac3 -ac 2 -ar 48000 -b:a 128k output.avi

    For whatever reason, I end up with a 1 sec delay in the video (or the audio is 1 sec early). It doesn't happen too often but I see it from time to time.
    Among other attempts, I have tried the following :

    (1) ffmpeg -i output.avi -itsoffset 00:00:01.0 -i output.avi -vcodec copy -acodec copy -map 0:0 -map 1:1 output-resynched.avi
    (2) ffmpeg -i output.avi -itsoffset 00:00:01.0 -i output.ac3 -vcodec copy -acodec copy -map 0:0 -map 1:0 output-resynched2.avi
    (3) ffmpeg -itsoffset -00:00:01.00 -i output.avi output-resynched8.avi
    (4) ffmpeg -i output.avi -itsoffset -1.0 -i output.avi -vcodec copy -acodec copy -map 0:1 -map 1:0 output-resynched13.avi

    Here are the results :

    1. Audio garbled and only 5m 35 s long vs. 1h 41m.
    2. (Output.ac3 is audio component of output.avi) Video and audio
      identical to original, offset didn't work
    3. Audio did get shifted, but original encoding parameters replaced with default ones (as expected).
    4. Audio garbled and only 9m 56s long vs. 1h 41m.

    I see that many people explain, and apparently use the process described above, but it doesn't seem to be working for me. Am I missing something obvious ? I would very much like to be able to use -itsoffset as it is cleaner than my workaround solution.

    FWIW, here is a different, and longer way of obtaining the desired result :

    First create a shifted video only file using -ss :

    ffmpeg -i output.avi -ss 1.0 -vcodec copy -an oupput_videoshifted.avi

    Then extract the audio :

    ffmpeg -i output.avi -vn -acodec copy outputaudioonly.ac3

    And finally remux both components :

    ffmpeg -i output_videoshifted.avi -i output_audioonly.ac3 -vcodec copy -acodec copy -map 0:0 -map 1:0 output-resynched14.avi

    The process works, is fast enough, but I would really prefer to use the one pass -itsoffset solution.

  • Using Python script to cut long videos into chunks in FFMPEG

    23 février 2016, par Michael Hamilton

    Starting off by saying I’m not a programmer, but I really need the application this Python script I found says it can do.

    Auto-Splitting Script by Antarctic Nest of Icephoenix

    Basically I have a directory of long .MP4s that need to be cut into equal parts based on a total running time of 3 hours 15 minutes. For example, I would have an 8 hour video that needs to be cut into smaller parts each under 3:15:00.

    We’ve been manually crating FFMPEG codes to do this, but I found the Python script above that seems like it will do what we are needing. The issue is that I have no Python experience. I don’t know where in the script to enter in the folder path with the videos, or where to specify my codecs, or where to tell the program that the max time for each video chunk is 3:15:00.

    I’m on a 64-bit windows system working in command prompt

    Here’s what I have done :

    • Installed python 3
    • downloaded the script
    • I can click on the script to see the cmd window flash to indicate it’s running
    • I enter "C :\Python34\python.exe V :\ffmpeg\ffmpeg-split.py" into cmd
    • output is

      File "V :\ffmpeg\ffmpeg-split.py", line 16
      print "Split length can’t be 0"

       SyntaxError: Missing parentheses in call to 'print'

    I have no idea where to go from here. It seems like the script is loading properly, but I haven’t entered my variables. Any help with where to put the information would be appreciated.

    Here is the FFMPEG code we usually use :

    ffmpeg -i V :\ffmpeg\88518_63c392af.mp4 -vcodec libx264 -acodec copy -vf fps=fps=30000/1001 -ss 00:05:01.000 -t 02:43:49.000 V :\events\88518.mp4

    The ffmpeg codes we use :

    -i is a .mp4

    -vcodec h.264 codec

    -acodec should be “copy” or can be “libvo_aacenc”

    -vf fps=30000/1000 a forced fps of 29.97

    -ss is start time (we would use this to manually cut into parts along with -t)

    -t is duration (we would calculate the duration for each part as the total run time divided by the equal time under 3:15:00 be it two, three, or four parts)

    Thank you a million dollars