Recherche avancée

Médias (1)

Mot : - Tags -/géodiversité

Autres articles (41)

  • 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

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (7533)

  • ffmpeg on Ubuntu-Linux - Cross-compile fails

    3 janvier 2018, par A.b.t.13

    (First of all i would like to sorry for any grammar mistakes, and to mention that I’m pretty much new to Linux :))
    I’m having a really hard time trying to compile all the files related to the ’ffmpeg’ command-line tool in my Ubuntu-16.04 environment.

    I’ve download the ffmpeg files from this link - http://www.ffmpeg.org/
    extracted the files, and installed it by the instruction that supplied in the INSTALL.md file inside the folder.

    The process went well, but when i tried to run by this example :

    ffmpeg -i band_8k8k_3dv_projection.mp4 -filter_complex "[0:v]split=13[pr1][pr2][pr3][pr4][pr5][pr6][pr7][pr8][pr9][pr10][pr11][pr12][pr13] ;[pr1]crop=2048:2048:0:0[crp1] ;[pr2]crop=2048:2048:2048:0[crp2] ;[pr3]crop=2048:2048:4096:0[crp3] ;[pr4]crop=2048:2048:0:2048[crp4] ;[pr5]crop=2048:2048:2048:2048[crp5] ;[pr6]crop=2048:2048:4096:2048[crp6] ;[pr7]crop=2048:2048:0:4096[crp7] ;[pr8]crop=2048:2048:2048:4096[crp8] ;[pr9]crop=2048:2048:4096:4096[crp9] ;[pr10]crop=2048:2048:0:6144[crp10] ;[pr11]crop=2048:2048:2048:6144[crp11] ;[pr12]crop=2048:2048:4096:6144[crp12] ;[pr13]scale=6144:h=8192[pr13s] ;[pr13s][crp1]overlay=4096:0[ov1] ;[ov1][crp2]overlay=0:0[ov2] ;[ov2][crp3]overlay=4096:2048[ov3] ;[ov3][crp4]overlay=2048:2048[ov4] ;[ov4][crp5]overlay=2048:0[ov5] ;[ov5][crp6]overlay=0:2048[ov6] ;[ov6][crp7]overlay=4096:4096[ov7] ;[ov7][crp8]overlay=0:4096[ov8] ;[ov8][crp9]overlay=4096:6144[ov9] ;[ov9][crp10]overlay=2048:6144[ov10] ;[ov10][crp11]overlay=2048:4096[ov11] ;[ov11][crp12]overlay=0:6144[first] ;[first]split=22[prj1][prj2][prj3][prj4][prj5][prj6][prj7][prj8][prj9][prj10][prj11][prj12][prj13][prj14][prj15][prj16][prj17][prj18][prj19][prj20][prj21][prj22] ;[prj1]crop=1034:1034:0:0,pad=iw*2:ih[pd1] ; [prj2]crop=1034:1034:0:0[cp1] ; [pd1][cp1]overlay=w, scale=1504:h=464,setsar=1/1[crop1] ;[prj3]crop=1034:1034:0:0,pad=iw*2:ih[pd2] ; [prj4]crop=1034:1034:0:0[cp2] ; [pd2][cp2]overlay=w, scale=1504:h=464,setsar=1/1[crop2] ;[prj5]crop=1034:1034:0:0,pad=iw*2:ih[pd3] ; [prj6]crop=1034:1034:0:0[cp3] ; [pd3][cp3]overlay=w, scale=1504:h=464,setsar=1/1[crop3] ;[prj7]crop=1034:1034:0:0,pad=iw*2:ih[pd4] ; [prj8]crop=1034:1034:0:4096[cp4] ; [pd4][cp4]overlay=w, scale=1504:h=464,setsar=1/1[crop4] ;[prj9]crop=1034:1034:1014:0,pad=iw*2:ih[pd5] ; [prj10]crop=1034:1034:1014:4096[cp5] ; [pd5][cp5]overlay=w, scale=1504:h=464,setsar=1/1[crop5] ;[prj11]crop=1034:1034:2048:0,pad=iw*2:ih[pd6] ; [prj12]crop=1034:1034:2048:4096[cp6] ; [pd6][cp6]overlay=w, scale=1504:h=464,setsar=1/1[crop6] ;[prj13]crop=1034:1034:3062:0,pad=iw*2:ih[pd7] ; [prj14]crop=1034:1034:3062:4096[cp7] ; [pd7][cp7]overlay=w, scale=1504:h=464,setsar=1/1[crop7] ;[prj15]crop=1034:1034:4096:0,pad=iw*2:ih[pd8] ; [prj16]crop=1034:1034:4096:4096[cp8] ; [pd8][cp8]overlay=w, scale=1504:h=464,setsar=1/1[crop8] ;[prj17]crop=1034:1034:5110:0,pad=iw*2:ih[pd9] ; [prj18]crop=1034:1034:5110:4096[cp9] ; [pd9][cp9]overlay=w, scale=1504:h=464,setsar=1/1[crop9] ;[prj19]crop=1034:1034:0:1014,pad=iw*2:ih[pd10] ; [prj20]crop=1034:1034:0:5110[cp10] ; [pd10][cp10]overlay=w, scale=1504:h=464,setsar=1/1[crop10] ;[prj21]crop=1034:1034:1014:1014,pad=iw*2:ih[pd11] ; [prj22]crop=1034:1034:1014:5110[cp11] ; [pd11][cp11]overlay=w, scale=1504:h=464,setsar=1/1[crop11] ;[crop1]pad=iw:480*11,split=2[paded1][paded1a] ;[paded1][crop2]overlay=0:480*1[paded2] ;[paded2][crop3]overlay=0:480*2[paded3] ;[paded3][crop4]overlay=0:480*3[paded4] ;[paded4][crop5]overlay=0:480*4[paded5] ;[paded5][crop6]overlay=0:480*5[paded6] ;[paded6][crop7]overlay=0:480*6[paded7] ;[paded7][crop8]overlay=0:480*7[paded8] ;[paded8][crop9]overlay=0:480*8[paded9] ;[paded9][crop10]overlay=0:480*9[paded10] ;[paded10][crop11]overlay=0:480*10[out_no_black0] ;[paded1a]crop=1504:480,split=3[black0][black1][black2] ;[out_no_black0][black0]overlay=0:480*0[out_no_black1] ;[out_no_black1][black1]overlay=0:480*1[out_no_black2] ;[out_no_black2][black2]overlay=0:480*2[out_no_black3] ;[out_no_black3]crop=in_w:in_h" -preset slow -r 30 -pix_fmt yuv420p -movflags +faststart -coder 1 -cmp chroma -me_range 48 -me_method umh -subq 9 -refs 6 -b_strategy 2 -bf 16 -flags +loop+mv4+cgop -flags2 +local_header -forced-idr 1 -threads 0 -c:v libx264 -profile:v high -level 5.1 -x264opts "keyint=30:no-scenecut:min-keyint=30:fps=30" -b:v 70000k -maxrate 70000k -bufsize 140000k -slices 11 -c:a copy -f mp4 "band_8k8k_3dv_line_0_70000k.mp4" -y

    I’ve got this error :
    enter image description here

    I’ve looked for this problem, and found out that this unrecognized option may related to the lack of the library called "libx264".
    According to instruction i’ve found in this link - http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

    I configured the ffmpeg again with those flags —enable-gpl —enable-libx264 , installed th libx264 by this command - sudo apt-get install libx264-dev, all of those action went well, but when i try to compile it all together - i do it by running the command of ’make -j 10’ or just ’make’, when i’m inside the folder where all of the ffmpeg files are extracted to, i face this error -
    enter image description here

    Thanks for anyone who could help !

  • ffmpeg on Ubuntu-Linux - Cross-compile fails

    3 janvier 2018, par A.b.t.13

    (First of all i would like to sorry for any grammar mistakes, and to mention that I’m pretty much new to Linux :))
    I’m having a really hard time trying to compile all the files related to the ’ffmpeg’ command-line tool in my Ubuntu-16.04 environment.

    I’ve download the ffmpeg files from this link - http://www.ffmpeg.org/
    extracted the files, and installed it by the instruction that supplied in the INSTALL.md file inside the folder.

    The process went well, but when i tried to run by this example :

    ffmpeg -i band_8k8k_3dv_projection.mp4 -filter_complex "[0:v]split=13[pr1][pr2][pr3][pr4][pr5][pr6][pr7][pr8][pr9][pr10][pr11][pr12][pr13] ;[pr1]crop=2048:2048:0:0[crp1] ;[pr2]crop=2048:2048:2048:0[crp2] ;[pr3]crop=2048:2048:4096:0[crp3] ;[pr4]crop=2048:2048:0:2048[crp4] ;[pr5]crop=2048:2048:2048:2048[crp5] ;[pr6]crop=2048:2048:4096:2048[crp6] ;[pr7]crop=2048:2048:0:4096[crp7] ;[pr8]crop=2048:2048:2048:4096[crp8] ;[pr9]crop=2048:2048:4096:4096[crp9] ;[pr10]crop=2048:2048:0:6144[crp10] ;[pr11]crop=2048:2048:2048:6144[crp11] ;[pr12]crop=2048:2048:4096:6144[crp12] ;[pr13]scale=6144:h=8192[pr13s] ;[pr13s][crp1]overlay=4096:0[ov1] ;[ov1][crp2]overlay=0:0[ov2] ;[ov2][crp3]overlay=4096:2048[ov3] ;[ov3][crp4]overlay=2048:2048[ov4] ;[ov4][crp5]overlay=2048:0[ov5] ;[ov5][crp6]overlay=0:2048[ov6] ;[ov6][crp7]overlay=4096:4096[ov7] ;[ov7][crp8]overlay=0:4096[ov8] ;[ov8][crp9]overlay=4096:6144[ov9] ;[ov9][crp10]overlay=2048:6144[ov10] ;[ov10][crp11]overlay=2048:4096[ov11] ;[ov11][crp12]overlay=0:6144[first] ;[first]split=22[prj1][prj2][prj3][prj4][prj5][prj6][prj7][prj8][prj9][prj10][prj11][prj12][prj13][prj14][prj15][prj16][prj17][prj18][prj19][prj20][prj21][prj22] ;[prj1]crop=1034:1034:0:0,pad=iw*2:ih[pd1] ; [prj2]crop=1034:1034:0:0[cp1] ; [pd1][cp1]overlay=w, scale=1504:h=464,setsar=1/1[crop1] ;[prj3]crop=1034:1034:0:0,pad=iw*2:ih[pd2] ; [prj4]crop=1034:1034:0:0[cp2] ; [pd2][cp2]overlay=w, scale=1504:h=464,setsar=1/1[crop2] ;[prj5]crop=1034:1034:0:0,pad=iw*2:ih[pd3] ; [prj6]crop=1034:1034:0:0[cp3] ; [pd3][cp3]overlay=w, scale=1504:h=464,setsar=1/1[crop3] ;[prj7]crop=1034:1034:0:0,pad=iw*2:ih[pd4] ; [prj8]crop=1034:1034:0:4096[cp4] ; [pd4][cp4]overlay=w, scale=1504:h=464,setsar=1/1[crop4] ;[prj9]crop=1034:1034:1014:0,pad=iw*2:ih[pd5] ; [prj10]crop=1034:1034:1014:4096[cp5] ; [pd5][cp5]overlay=w, scale=1504:h=464,setsar=1/1[crop5] ;[prj11]crop=1034:1034:2048:0,pad=iw*2:ih[pd6] ; [prj12]crop=1034:1034:2048:4096[cp6] ; [pd6][cp6]overlay=w, scale=1504:h=464,setsar=1/1[crop6] ;[prj13]crop=1034:1034:3062:0,pad=iw*2:ih[pd7] ; [prj14]crop=1034:1034:3062:4096[cp7] ; [pd7][cp7]overlay=w, scale=1504:h=464,setsar=1/1[crop7] ;[prj15]crop=1034:1034:4096:0,pad=iw*2:ih[pd8] ; [prj16]crop=1034:1034:4096:4096[cp8] ; [pd8][cp8]overlay=w, scale=1504:h=464,setsar=1/1[crop8] ;[prj17]crop=1034:1034:5110:0,pad=iw*2:ih[pd9] ; [prj18]crop=1034:1034:5110:4096[cp9] ; [pd9][cp9]overlay=w, scale=1504:h=464,setsar=1/1[crop9] ;[prj19]crop=1034:1034:0:1014,pad=iw*2:ih[pd10] ; [prj20]crop=1034:1034:0:5110[cp10] ; [pd10][cp10]overlay=w, scale=1504:h=464,setsar=1/1[crop10] ;[prj21]crop=1034:1034:1014:1014,pad=iw*2:ih[pd11] ; [prj22]crop=1034:1034:1014:5110[cp11] ; [pd11][cp11]overlay=w, scale=1504:h=464,setsar=1/1[crop11] ;[crop1]pad=iw:480*11,split=2[paded1][paded1a] ;[paded1][crop2]overlay=0:480*1[paded2] ;[paded2][crop3]overlay=0:480*2[paded3] ;[paded3][crop4]overlay=0:480*3[paded4] ;[paded4][crop5]overlay=0:480*4[paded5] ;[paded5][crop6]overlay=0:480*5[paded6] ;[paded6][crop7]overlay=0:480*6[paded7] ;[paded7][crop8]overlay=0:480*7[paded8] ;[paded8][crop9]overlay=0:480*8[paded9] ;[paded9][crop10]overlay=0:480*9[paded10] ;[paded10][crop11]overlay=0:480*10[out_no_black0] ;[paded1a]crop=1504:480,split=3[black0][black1][black2] ;[out_no_black0][black0]overlay=0:480*0[out_no_black1] ;[out_no_black1][black1]overlay=0:480*1[out_no_black2] ;[out_no_black2][black2]overlay=0:480*2[out_no_black3] ;[out_no_black3]crop=in_w:in_h" -preset slow -r 30 -pix_fmt yuv420p -movflags +faststart -coder 1 -cmp chroma -me_range 48 -me_method umh -subq 9 -refs 6 -b_strategy 2 -bf 16 -flags +loop+mv4+cgop -flags2 +local_header -forced-idr 1 -threads 0 -c:v libx264 -profile:v high -level 5.1 -x264opts "keyint=30:no-scenecut:min-keyint=30:fps=30" -b:v 70000k -maxrate 70000k -bufsize 140000k -slices 11 -c:a copy -f mp4 "band_8k8k_3dv_line_0_70000k.mp4" -y

    I’ve got this error :
    enter image description here

    I’ve looked for this problem, and found out that this unrecognized option may related to the lack of the library called "libx264".
    According to instruction i’ve found in this link - http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

    I configured the ffmpeg again with those flags —enable-gpl —enable-libx264 , installed th libx264 by this command - sudo apt-get install libx264-dev, all of those action went well, but when i try to compile it all together - i do it by running the command of ’make -j 10’ or just ’make’, when i’m inside the folder where all of the ffmpeg files are extracted to, i face this error -
    enter image description here

    Thanks for anyone who could help !

  • ffmpeg 4 : Using the stream_loop parameter to loop the audio during a video ends up with an infinite loop

    17 juin 2020, par JarsOfJam-Scheduler

    Summary

    



      

    1. Context
    2. 


    3. The software I use
    4. 


    5. The problem
    6. 


    7. Results
      
4.1. Actual Results

      



      4.2. Expected Results

    8. 


    9. What did I try to fix the bug ?

    10. 


    11. How to reproduce this bug : minimal and testable example with the provided required data

    12. 


    13. The question

    14. 


    15. Sources

    16. 


    




    



    Context

    



    I would want to set an audio WAV as the background sound of a video WEBM. The video can be shorter or longer than the audio. At the moment I add the audio over the video, I don't know the length of both streams. The audio must repeat until the video ends (the audio can be truncated if the video ends before the end of the last repetition of the audio).

    



    The software I use

    



    I use ffmpeg version 4.2.2-1ubuntu1 18.04.sav0.

    



    The problem

    



    ffmpeg seems to enter in an infinite loop when it proccesses in order to mix the audio and the video. Also, the length of the currently-generating-output-file (which contains both video and audio) is equal to the length of the audio, instead of the length of the video.

    



    The problem seems to be triggered by this command line :

    



    ffmpeg -i directory_1/video.webm -stream_loop -1 -fflags +shortest -max_interleave_delta 50000 -i directory_2/audio.wav directory_3/video_and_audio.webm


    



    Results

    



    Actual Results

    



    Three things :

    



      

    1. The infinite loop of the ffmpeg process : I must manually stop the ffmpeg process

    2. 


    3. The output video file with music (which is currently generating but output anyway) : it contains both audio and video. But the length of the output file is equal to the length of the audio, instead of the length of the video.

    4. 


    5. The following output logs :

    6. 


    



    


    ffmpeg version 4.2.2-1ubuntu1 18.04.sav0 Copyright (c) 2000-2019 the
 FFmpeg developers built with gcc 7 (Ubuntu 7.5.0-3ubuntu1 18.04)
    
 configuration : —prefix=/usr —extra-version='1ubuntu1 18.04.sav0'
 —toolchain=hardened —libdir=/usr/lib/x86_64-linux-gnu —incdir=/usr/include/x86_64-linux-gnu —arch=amd64 —enable-gpl —disable-stripping —enable-avresample —disable-filter=resample —enable-avisynth —enable-gnutls —enable-ladspa —enable-libaom —enable-libass —enable-libbluray —enable-libbs2b —enable-libcaca —enable-libcdio —enable-libcodec2 —enable-libflite —enable-libfontconfig —enable-libfreetype —enable-libfribidi —enable-libgme —enable-libgsm —enable-libjack —enable-libmp3lame —enable-libmysofa —enable-libopenjpeg —enable-libopenmpt —enable-libopus —enable-libpulse —enable-librsvg —enable-librubberband —enable-libshine —enable-libsnappy —enable-libsoxr —enable-libspeex —enable-libssh —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libwebp —enable-libx265 —enable-libxml2 —enable-libxvid —enable-libzmq —enable-libzvbi —enable-lv2 —enable-omx —enable-openal —enable-opencl —enable-opengl —enable-sdl2 —enable-libdc1394 —enable-libdrm —enable-libiec61883 —enable-nvenc —enable-chromaprint —enable-frei0r —enable-libx264 —enable-shared libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 /
 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 /
 55. 5.100 Input #0, matroska,webm, from 'youtubed/my_youtube_video.webm' : Metadata :
 encoder : Chrome Duration : N/A, start : 0.000000, bitrate : N/A
 Stream #0:0(eng) : Video : vp8, yuv420p(progressive), 3200x1608, SAR 1:1 DAR 400:201, 1k tbr, 1k tbn, 1k tbc (default)
 Metadata :
 alpha_mode : 1 Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, wav, from 'tmp_music/original_music.wav' :
    
 Duration : 00:00:11.78, bitrate : 1411 kb/s
 Stream #1:0 : Audio : pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s Stream mapping : Stream #0:0 -> #0:0 (vp8
 (native) -> vp9 (libvpx-vp9)) Stream #1:0 -> #0:1 (pcm_s16le
 (native) -> opus (libopus)) Press [q] to stop, [?] for help
 [libvpx-vp9 @ 0x5645268aed80] v1.8.2 [libopus @ 0x5645268b09c0] No bit
 rate set. Defaulting to 96000 bps. Output #0, webm, to
 'youtubed/my_youtube_video_with_music.webm' : Metadata :
 encoder : Lavf58.29.100
 Stream #0:0(eng) : Video : vp9 (libvpx-vp9), yuv420p(progressive), 3200x1608 [SAR 1:1 DAR 400:201], q=-1—1, 200 kb/s, 1k fps, 1k tbn, 1k
 tbc (default)
 Metadata :
 alpha_mode : 1
 encoder : Lavc58.54.100 libvpx-vp9
 Side data :
 cpb : bitrate max/min/avg : 0/0/0 buffer size : 0 vbv_delay : -1
 Stream #0:1 : Audio : opus (libopus), 48000 Hz, stereo, s16, 96 kb/s
 Metadata :
 encoder : Lavc58.54.100 libopus

    


    



    Expected Results

    



      

    1. No infinite loop during the ffmpeg process

    2. 


    3. Concerning the output logs, I don't know what it should look.

    4. 


    5. The output file with the audio and the video should :

      



      3.1. If the video is longer than the audio, then the audio is repeated until it exactly fits the video. The audio can be truncated.

      



      3.2. If the video is shorter than the audio, then the audio is truncated and exactly fits the video.

      



      3.3. If both video and audio are of the same length, then the audio exactly fits the video.

    6. 


    



    How to reproduce this bug ? (+ required data)

    



      

    1. Download the following files (resp. audio and video) (I must refresh these download links every 24 hours) :

      



      1.1. https://a.uguu.se/dmgsmItjJMDq_audio.wav

      



      1.2. https://a.uguu.se/w3qHDlGq6mOW_video.webm

    2. 


    3. Move them into the directory/directories of your choice.

    4. 


    5. Open your CLI, move to the adequat directory and copy/paste/execute the instruction given in Part. The Problem (don't forget to eventually modify this instruction by indicating the adequat directories, according to step 2.).

    6. 


    7. You'll face my problem.

    8. 


    



    What did I try to fix the bug ?

    



    Nothing, since I don't even understand why the bug occures.

    



    The question

    



    How to correct my command in order to mix these audio and video streams without any infinite loop during the ffmpeg process, keeping in mind that I don't know their length, and that audio must be repeated in order to fit the video, even if audio must be truncated (in the case of the last repetition of the audio file must be truncated because the video stream has just ended) ?

    



    Sources

    



    The source is the command line you can find in Part. The problem.