Recherche avancée

Médias (91)

Autres articles (72)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (7211)

  • aarch64 : h264dsp : Remove unnecessary sign extensions

    4 août 2021, par Martin Storsjö
    aarch64 : h264dsp : Remove unnecessary sign extensions
    

    These became unnecessary when the stride arguments were changed from
    int to ptrdiff_t in bc26fe89275c267d169b468356c82ee59874407d
    (0576ef466d8a631326d1d0a5ec2e4c4c81d25353) and
    d5d699ab6e6f8a8290748d107416fd5c19757a1b
    (aa844dc46f93182a63ec0b53267d19e7342c79b9).

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavcodec/aarch64/h264dsp_neon.S
  • cmdutils : Fix sign error in display matrix auto-rotation code

    18 mai 2015, par Michael Niedermayer
    cmdutils : Fix sign error in display matrix auto-rotation code
    

    This makes the sample from Ticket4560 behave consistently with either branch

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] cmdutils.c
  • ffmpeg : adding an audio file to a video at specified delays

    15 juillet 2020, par JarsOfJam-Scheduler

    I have an array that may contain multiple occurrences of these terms : 'video, forest'. An audio file is added to the video file when the current element of this array I iterate is 'forest'. Otherwise, not. 'video and forest' elements will increment (of 5 seconds) the delay at which an audio file will be added. Example : the array contains "video, video, forest, video, forest". The first audio file will be added at delay=15000ms. The last one, at 25000ms. Computation details : 0 (initialization) + 5000 (video) + 5000 (video) + 5000 (forest) + 5000 (video) + 5000 (forest). 5000 + 5000 + 5000 = 15000. 5000*5 = 25000.

    &#xA;

    I use ffmpeg to implement this program. The problem is that only one audio file is added, at the beginning of my video file. So the delays are not actually taken into account I think.

    &#xA;

    Note that the video file also contains a music. The audio files that I try to add must be present in the video file in addition to this music. The first line of the following code adds the music to the video. The next lines try to add the audio files at good delays.

    &#xA;

    subprocess.call(&#xA;    [&#x27;C:/Users/XYZ/Downloads/ffmpeg/bin/ffmpeg.exe&#x27;, &#x27;-i&#x27;, &#x27;XYZ/my_XYZ_video.webm&#x27;, &#x27;-stream_loop&#x27;, &#x27;-1&#x27;, &#x27;-i&#x27;, &#x27;tmp_music/original_music.wav&#x27;,&#xA;     &#x27;-c:v&#x27;, &#x27;copy&#x27;, &#x27;-shortest&#x27;, &#x27;-fflags&#x27;, &#x27;&#x2B;shortest&#x27;, &#x27;-max_interleave_delta&#x27;, &#x27;100M&#x27;,&#xA;     &#x27;XYZ/my_XYZ_video_with_music.webm&#x27;]&#xA;    , cwd=&#x27;C:/Users/XYZ/Desktop/XYZ/&#x27;)&#xA;&#xA;chosen_songs = [&#x27;video&#x27;, &#x27;forest&#x27;, &#x27;forest&#x27;, &#x27;video&#x27;]&#xA;&#xA;time_for_ffmpeg = 0&#xA;for chosen_song in chosen_songs:&#xA;    if chosen_song == &#x27;video&#x27;:&#xA;        print(&#x27;video&#x27;)&#xA;        print(time_for_ffmpeg)&#xA;        time_for_ffmpeg &#x2B;= 2000    &#xA;&#xA;    elif chosen_song == &#x27;forest&#x27;:&#xA;        print(&#x27;forest&#x27;)&#xA;        print(time_for_ffmpeg)&#xA;        subprocess.call(&#xA;            [&#x27;C:/Users/XYZ/Downloads/ffmpeg/bin/ffmpeg.exe&#x27;, &#x27;-i&#x27;, &#x27;XYZ/my_XYZ_video_with_music.webm&#x27;, &#x27;-i&#x27;, &#x27;tmp_music/forest.mp3&#x27;,&#xA;             &#x27;-filter_complex&#x27;,&#xA;             &#x27;[1]adelay=&#x27; &#x2B; str(time_for_ffmpeg) &#x2B; &#x27;|&#x27; &#x2B; str(time_for_ffmpeg) &#x2B; &#x27;[a1];[0][a1]amix&#x27;, &#x27;-c:v&#x27;, &#x27;copy&#x27;,&#xA;             &#x27;XYZ/my_XYZ_video_with_music_with_songs.webm&#x27;]&#xA;            , cwd=&#x27;C:/Users/XYZ/Desktop/XYZ/&#x27;)&#xA;        time_for_ffmpeg &#x2B;= 5000&#xA;    &#xA;

    &#xA;

    My question

    &#xA;

    Why can't I add the audio files corresponding to the forest the specified delays (implemented by the variable time_for_ffmpeg`) ? How could I fix my code ?

    &#xA;