Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (36)

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

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

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (11402)

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

  • 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}...