Recherche avancée

Médias (91)

Autres articles (55)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

Sur d’autres sites (4281)

  • ffmpeg : Extracted wav from mp4 video does not have equal duration as the original video

    26 juillet 2021, par John Smith

    I have a mp4 video that is 0.92 seconds, and I am trying to extract the audio of the video to a wav format. I have tried several commands (I have provided a list of some of the commands that I have tried), however, the resulting wav does not have the same duration as the original video (the resulting wav often has a duration of 0.96 seconds instead of 0.92 seconds). Ensuring that the video and audio are synchronous is crucial for what I am doing (the videos are typically videos of a person speaking, and it is important that the speech (audio) is in-sync with the mouth movements of the speaker).

    


    I find it odd that, by extracting audio from a video, the duration changes, even despite what is happening under the hood for the conversion (in terms of codecs used, etc).

    


    Some of the commands that I've tried include :

    


    ffmpeg -i <input /> -c copy -map 0:a -sample_rate 16000 <output>&#xA;&#xA;ffmpeg -i <input /> -async  1 -f wav <output>&#xA;&#xA;ffmpeg -i <input /> -vn -acodec copy <output>&#xA;&#xA;ffmpeg -i <input /> -ac 2 -f wav <output>&#xA;</output></output></output></output>

    &#xA;

    Any insight would be highly appreciated.&#xA;Thanks !

    &#xA;

    Edit Output of the command ffmpeg -ignore_editlist true -i 00026.mp4 output.wav

    &#xA;

    ffmpeg version 2021-02-28-git-85ab9deb98-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 10.2.0 (Rev6, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-lib&#xA;snappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --en&#xA;able-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --e&#xA;nable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --&#xA;enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwben&#xA;c --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --en&#xA;able-libsoxr --enable-chromaprint&#xA;  libavutil      56. 66.100 / 56. 66.100&#xA;  libavcodec     58.126.100 / 58.126.100&#xA;  libavformat    58. 68.100 / 58. 68.100&#xA;  libavdevice    58. 12.100 / 58. 12.100&#xA;  libavfilter     7.107.100 /  7.107.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;  libpostproc    55.  8.100 / 55.  8.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;00026.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2mp41&#xA;    encoder         : Lavf57.37.101&#xA;  Duration: 00:00:00.98, start: 0.000000, bitrate: 599 kb/s&#xA;  Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 160x160 [SAR 1:1 DAR 1:1], 556 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 65 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;Stream mapping:&#xA;  Stream #0:1 -> #0:0 (aac (native) -> pcm_s16le (native))&#xA;Press [q] to stop, [?] for help&#xA;Output #0, wav, to &#x27;output.wav&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2mp41&#xA;    ISFT            : Lavf58.68.100&#xA;  Stream #0:0(und): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : SoundHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc58.126.100 pcm_s16le&#xA;size=      32kB time=00:00:00.96 bitrate= 273.7kbits/s speed= 212x&#xA;video:0kB audio:32kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.238037%&#xA;

    &#xA;

  • ffmpeg complex filter pip loop not working

    4 août 2021, par Dzseti

    I am using an ffmpeg complex filter to :

    &#xA;

      &#xA;
    1. turn a number of images into a slideshow
    2. &#xA;

    3. scale the slideshow to 1/6th of its original size
    4. &#xA;

    5. loop the slideshow infinitely
    6. &#xA;

    7. set the looping slideshow as a picture-in-picture over another looping video
    8. &#xA;

    &#xA;

    then add audio from another file which determines the maximum length of the final video.

    &#xA;

    Everything is working except step 3.

    &#xA;

    Here is my code (broken down into individual lines) :

    &#xA;

    ffmpeg -y &#xA;-loop 1 -t 5.5 -i /uploads/2021/07/slide04-scaled.jpg &#xA;-loop 1 -t 5.5 -i /uploads/2021/07/Slide05-scaled.jpg &#xA;-loop 1 -t 5.5 -i /uploads/2021/07/Slide06-scaled.jpg &#xA;-i /slowwmo-videos/intro.mp4 &#xA;-i /uploads/2021/07/busy_bees_01.mp3 &#xA;-filter_complex &#xA;"&#xA;[1]fade=d=0.5:t=in:alpha=1,setpts=PTS-STARTPTS&#x2B;5/TB[a1];&#xA;[2]fade=d=0.5:t=in:alpha=1,setpts=PTS-STARTPTS&#x2B;10/TB[a2];&#xA;[0][a1]overlay[b2];&#xA;[b2][a2]overlay[slides];&#xA;[slides]loop=loop=-1,scale=iw/6:ih/6,format=yuv420p,fps=fps=25[pip];&#xA;[3][pip]overlay=W-w-100:200[v]&#xA;" &#xA;-map [v]:v:0 -map 4:a:0 -vcodec libx264 -profile:v main -video_track_timescale 25000 -pix_fmt yuv420p -s 1280x720 -acodec aac -af aresample=44100 -shortest /slowwmo-videos/busy_bees/7494.ts&#xA;

    &#xA;

  • flutter-ffmpeg error on mixing audio and picture - Unable to find a suitable output format for 'ffmpeg

    18 juillet 2021, par tylyo

    I'm trying to mix an audio and a picture in order to have a video with the same length of the Audio and as content an image sequence of the source picture.

    &#xA;

    I tried using the flutter-ffmpeg plugin with the command :

    &#xA;

    ffmpeg command: ffmpeg -loop 1 -i &#x27;/data/user/0/com.attiliopatania.apshare/cache/file_picker/20210402_112326.jpg&#x27; -i &#x27;/data/user/0/com.attiliopatania.apshare/cache/file_picker/Voice001.m4a&#x27; -c:v mpeg4 -tune stillimage -c:a copy -shortest /data/user/0/com.attiliopatania.apshare/app_flutter/out.mp4&#xA;

    &#xA;

    some context :

    &#xA;

    I did the same test with ffmpeg on my pc and it worked as expected. I liked it.

    &#xA;

    I did some test and I tried to write a file on the same path where the out file should be and It worked as expected : file created

    &#xA;

    Running the same command through flutter plugin I experienced an error I'm reporting below

    &#xA;

    ...&#xA;I/flutter (14564): Finished splitting the commandline.&#xA;I/flutter (14564): Opening an input file: /data/user/0/com.attiliopatania.apshare/cache/file_picker/Voice001.m4a.&#xA;I/flutter (14564): [NULL @ 0x731deba400] Opening &#x27;/data/user/0/com.attiliopatania.apshare/cache/file_picker/Voice001.m4a&#x27; for reading&#xA;I/flutter (14564): [file @ 0x72f6059a40] Setting default whitelist &#x27;file,crypto,data&#x27;&#xA;I/flutter (14564): [mov,mp4,m4a,3gp,3g2,mj2 @ 0x731deba400] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100&#xA;I/flutter (14564): [mov,mp4,m4a,3gp,3g2,mj2 @ 0x731deba400] ISO: File Type Major Brand: 3gp4&#xA;I/flutter (14564): [mov,mp4,m4a,3gp,3g2,mj2 @ 0x731deba400] Unknown dref type 0x206c7275 size 12&#xA;I/flutter (14564): [mov,mp4,m4a,3gp,3g2,mj2 @ 0x731deba400] Before avformat_find_stream_info() pos: 112552 bytes read:65747 seeks:1 nb_streams:1&#xA;I/flutter (14564): [mov,mp4,m4a,3gp,3g2,mj2 @ 0x731deba400] All info found&#xA;I/flutter (14564): [mov,mp4,m4a,3gp,3g2,mj2 @ 0x731deba400] After avformat_find_stream_info() pos: 403 bytes read:98515 seeks:2 frames:1&#xA;I/flutter (14564): Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/data/user/0/com.attiliopatania.apshare/cache/file_picker/Voice001.m4a&#x27;:&#xA;I/flutter (14564):   Metadata:&#xA;I/flutter (14564):     major_brand     :&#xA;I/flutter (14564): 3gp4&#xA;I/flutter (14564):&#xA;I/flutter (14564):     minor_version   :&#xA;I/flutter (14564): 0&#xA;I/flutter (14564):&#xA;I/flutter (14564):     compatible_brands:&#xA;I/flutter (14564): isom3gp4&#xA;I/flutter (14564):&#xA;I/flutter (14564):     creation_time   :&#xA;I/flutter (14564): 2021-03-06T16:02:37.000000Z&#xA;I/flutter (14564):&#xA;I/flutter (14564):     com.android.version:&#xA;I/flutter (14564): 10&#xA;I/flutter (14564):&#xA;I/flutter (14564):   Duration:&#xA;I/flutter (14564): 00:00:04.97&#xA;I/flutter (14564): , start:&#xA;I/flutter (14564): 0.000000&#xA;I/flutter (14564): , bitrate:&#xA;I/flutter (14564): 181 kb/s&#xA;I/flutter (14564):&#xA;I/flutter (14564):     Stream #1:0&#xA;I/flutter (14564): (eng)&#xA;I/flutter (14564): , 1, 1/44100&#xA;I/flutter (14564): : Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 128 kb/s&#xA;I/flutter (14564):  (default)&#xA;I/flutter (14564):&#xA;I/flutter (14564): ffmpeg out 1&#xA;I/flutter (14564):     Metadata:&#xA;I/flutter (14564):       creation_time   :&#xA;I/flutter (14564): 2021-03-06T16:02:37.000000Z&#xA;I/flutter (14564):&#xA;I/flutter (14564):       handler_name    :&#xA;I/flutter (14564): SoundHandle&#xA;I/flutter (14564):&#xA;I/flutter (14564): Successfully opened the file.&#xA;I/flutter (14564): Parsing a group of options: output url ffmpeg.&#xA;I/flutter (14564): Successfully parsed a group of options.&#xA;I/flutter (14564): Opening an output file: ffmpeg.&#xA;I/flutter (14564): [NULL @ 0x7306b86c00] Unable to find a suitable output format for &#x27;ffmpeg&#x27;&#xA;I/flutter (14564): ffmpeg: Invalid argument&#xA;

    &#xA;