Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (85)

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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (11465)

  • FFMpeg - add background music

    22 août 2018, par jacky brown

    here is what i have :
    input1.avi - video that contain sounds.
    input2.avi - video that doesn’t contain sounds.
    music.mp3 - audio file.

    i want to add background music(music.mp3 file) to the video.

    C:\input1.avi -i C:\music.mp3 -shortest -c:v copy -c:a copy C:\output1.avi

    then output1.avi is the same as input1 - movie with sounds but without the background music (music.mp3)

    when i try to use the other file (video without sounds) :

    C:\input2.avi -i C:\music.mp3 -shortest -c:v copy -c:a copy C:\output2.avi

    then output2.avi is the same as input2 + it have the background music.

    so why input1 does not contain the background music ???
    and how can i decrease or increase the volume of music.mp3 file ?

    thanks.


    console output :

    C:\motionbee\ffmpeg\bin>ffmpeg -i C:\input.avi
    -i C:\music.mp3 -shortest -c:v copy -filter_
    complex "[0:a]aformat=fltp:44100:stereo[0a];[1]aformat=fltp:44100:stereo,volume=
    1.5[1a];[0a][1a]amix[a]" -map 0:v -map "[a]" -ac 2 C:\output1.avi
    ffmpeg version N-78949-g6f5048f Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
    ibilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopenc
    ore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --ena
    ble-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable
    -libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --ena
    ble-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx
    264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable
    -lzma --enable-decklink --enable-zlib
     libavutil      55. 19.100 / 55. 19.100
     libavcodec     57. 27.101 / 57. 27.101
     libavformat    57. 28.100 / 57. 28.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 39.100 /  6. 39.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, avi, from 'C:\input.avi':
     Metadata:
       encoder         : Lavf57.28.100
     Duration: 00:02:05.76, start: 0.000000, bitrate: 450 kb/s
       Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 720
    x480 [SAR 1:1 DAR 3:2], 440 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 k
    b/s
    [mp3 @ 00000000005c8020] Skipping 0 bytes of junk at 32370.
    Input #1, mp3, from 'C:\music.mp3':
     Metadata:
       title           : Broadcast News Package - News Intro
       artist          : After Effects News Template
     Duration: 00:01:57.89, start: 0.025057, bitrate: 194 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
       Metadata:
         encoder         : Lavc56.26
    File 'C:\output1.avi' already exists. Overwrite
    ? [y/N] y
    Output #0, avi, to 'C:\output1.avi':
     Metadata:
       ISFT            : Lavf57.28.100
       Stream #0:0: Video: mpeg4 (XVID / 0x44495658), yuv420p, 720x480 [SAR 1:1 DAR
    3:2], q=2-31, 440 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
       Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 44100 Hz, stereo
    , fltp (default)
       Metadata:
         encoder         : Lavc57.27.101 libmp3lame
    Stream mapping:
     Stream #0:1 (mp3) -> aformat
     Stream #1:0 (mp3) -> aformat
     Stream #0:0 -> #0:0 (copy)
     amix -> Stream #0:1 (libmp3lame)
    Press [q] to stop, [?] for help
    frame= 3118 fps=0.0 q=-1.0 Lsize=    6917kB time=00:02:05.76 bitrate= 450.6kbits
    /s speed= 867x
    video:6754kB audio:74kB subtitle:0kB other streams:0kB global headers:0kB muxing
    overhead: 1.307944%
  • FFMpeg - add background music

    20 mars 2016, par jacky brown

    here is what i have :
    input1.avi - video that contain sounds.
    input2.avi - video that doesn’t contain sounds.
    music.mp3 - audio file.

    i want to add background music(music.mp3 file) to the video.

    C:\input1.avi -i C:\music.mp3 -shortest -c:v copy -c:a copy C:\output1.avi

    then output1.avi is the same as input1 - movie with sounds but without the background music (music.mp3)

    when i try to use the other file (video without sounds) :

    C:\input2.avi -i C:\music.mp3 -shortest -c:v copy -c:a copy C:\output2.avi

    then output2.avi is the same as input2 + it have the background music.

    so why input1 does not contain the background music ???
    and how can i decrease or increase the volume of music.mp3 file ?

    thanks.


    console output :

    C:\motionbee\ffmpeg\bin>ffmpeg -i C:\input.avi
    -i C:\music.mp3 -shortest -c:v copy -filter_
    complex "[0:a]aformat=fltp:44100:stereo[0a];[1]aformat=fltp:44100:stereo,volume=
    1.5[1a];[0a][1a]amix[a]" -map 0:v -map "[a]" -ac 2 C:\output1.avi
    ffmpeg version N-78949-g6f5048f Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
    ibilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopenc
    ore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --ena
    ble-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable
    -libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --ena
    ble-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx
    264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable
    -lzma --enable-decklink --enable-zlib
     libavutil      55. 19.100 / 55. 19.100
     libavcodec     57. 27.101 / 57. 27.101
     libavformat    57. 28.100 / 57. 28.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 39.100 /  6. 39.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, avi, from 'C:\input.avi':
     Metadata:
       encoder         : Lavf57.28.100
     Duration: 00:02:05.76, start: 0.000000, bitrate: 450 kb/s
       Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 720
    x480 [SAR 1:1 DAR 3:2], 440 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 k
    b/s
    [mp3 @ 00000000005c8020] Skipping 0 bytes of junk at 32370.
    Input #1, mp3, from 'C:\music.mp3':
     Metadata:
       title           : Broadcast News Package - News Intro
       artist          : After Effects News Template
     Duration: 00:01:57.89, start: 0.025057, bitrate: 194 kb/s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
       Metadata:
         encoder         : Lavc56.26
    File 'C:\output1.avi' already exists. Overwrite
    ? [y/N] y
    Output #0, avi, to 'C:\output1.avi':
     Metadata:
       ISFT            : Lavf57.28.100
       Stream #0:0: Video: mpeg4 (XVID / 0x44495658), yuv420p, 720x480 [SAR 1:1 DAR
    3:2], q=2-31, 440 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
       Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 44100 Hz, stereo
    , fltp (default)
       Metadata:
         encoder         : Lavc57.27.101 libmp3lame
    Stream mapping:
     Stream #0:1 (mp3) -> aformat
     Stream #1:0 (mp3) -> aformat
     Stream #0:0 -> #0:0 (copy)
     amix -> Stream #0:1 (libmp3lame)
    Press [q] to stop, [?] for help
    frame= 3118 fps=0.0 q=-1.0 Lsize=    6917kB time=00:02:05.76 bitrate= 450.6kbits
    /s speed= 867x
    video:6754kB audio:74kB subtitle:0kB other streams:0kB global headers:0kB muxing
    overhead: 1.307944%
  • using ffmpeg in XCode : Operation not permitted

    23 octobre 2019, par NCrusher

    In an effort to try to get to the bottom of the problem I discussed here, I decided to try to get what I was doing closer to the example I borrowed from when writing my code, which is described here.

    So instead of formatting my filters in another methods, I tried to code them directly into the method to run the conversion. Unfortunately this results in a very repetitive method, because I have to handle the switch statement for the different conversion choices here as well.

    So this is what my method looks like now :

    func ffmpegConvert() {
       guard let launchPath = Bundle.main.path(forResource: "ffmpeg", ofType: "") else { return }
       do {
           let conversionChoice = conversionOptionsPopup.indexOfSelectedItem
           switch conversionChoice {
               case 1 :
                   let convertTask: Process = Process()
                   convertTask.launchPath = launchPath
                   convertTask.arguments = [
                       "-y",
                       "-i", "\(inputFilePath)",
                       "-c:a", "libmp3lame",
                       "-ac", "1",
                       "-ar", "22050",
                       "-q:a", "9",
                       "\(outputFilePath)"
                   ]
                   convertTask.standardInput = FileHandle.nullDevice
                   convertTask.launch()
                   convertTask.waitUntilExit()
               case 2 :
                   let convertTask: Process = Process()
                   convertTask.launchPath = launchPath
                   convertTask.arguments = [
                       "-y",
                       "-i", "\(inputFilePath)",
                       "-c:a", "libmp3lame",
                       "-ac", "2",
                       "-ar", "44100",
                       "-q:a", "5",
                       "\(outputFilePath)"
                   ]
                   convertTask.standardInput = FileHandle.nullDevice
                   convertTask.launch()
                   convertTask.waitUntilExit()
               case 3 :
                   let convertTask: Process = Process()
                   convertTask.launchPath = launchPath
                   convertTask.arguments = [
                       "-y",
                       "-i", "\(inputFilePath)",
                       "-c:a", "libmp3lame",
                       "-ac", "1",
                       "-ar", "22050",
                       "-b:a", "32k",
                       "\(outputFilePath)"
                   ]
                   convertTask.standardInput = FileHandle.nullDevice
                   convertTask.launch()
                   convertTask.waitUntilExit()
               case 4 :
                   let convertTask: Process = Process()
                   convertTask.launchPath = launchPath
                   convertTask.arguments = [
                       "-y",
                       "-i", "\(inputFilePath)",
                       "-c:a", "flac",
                       "\(outputFilePath)"
                   ]
                   convertTask.standardInput = FileHandle.nullDevice
                   convertTask.launch()
                   convertTask.waitUntilExit()
               default :
                   let convertTask: Process = Process()
                   convertTask.launchPath = launchPath
                   convertTask.arguments = [
                       "-y",
                       "-i", "\(inputFilePath)",
                       "-c", "copy",
                       "\(outputFilePath)"
                   ]
                   convertTask.standardInput = FileHandle.nullDevice
                   convertTask.launch()
                   convertTask.waitUntilExit()
           }
       }
    }

    The good news is : I didn’t get the same errors I was getting before.

    The bad news is : I got a different one. "Operation not permitted."

    I assume this has something to do with the permissions granted to processes running in XCode when testing them out. Is there a way to get around it ?

    My project is really dead in the water until I get the ffmpeg implementation worked out, because everything else I’m going to want it to do—such as rechaptering audiobooks and/or editing metadata—is going to rely upon ffmpeg as well. But I’ve only been doing this a few weeks and whatever is going on here is outside my ability to troubleshoot.

    EDIT : I managed to get around this by turning the sandbox option in the permissions file off. But I’m leaving this question up because I’m not at all sure that was the right thing to do.