Recherche avancée

Médias (91)

Autres articles (76)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (9587)

  • How to show subtitle on video in ffmpeg

    19 février 2023, par Ammara

    I am working with ffmpeg. I use below code to show subtitle on video. I create video but subtitle did not show. Please help me
Here is my code. here is my abc.srt file. I store this to my download folder of mobile

    


    1&#xA;00:00:00,000 --> 00:00:01,500&#xA;This an example subtitle&#xA;&#xA;2&#xA;00:00:01,600 --> 00:00:02,500&#xA;<i>Italic style</i>&#xA;&#xA;3   &#xA;00:00:03,000 --> 00:00:15,000&#xA; Video by Tiger Lily on pexels.com&#xA;

    &#xA;

    here is ffmpeg command

    &#xA;

    String srt=BASE_PATH&#x2B;&#x27;abc.srt&#x27;;&#xA;  String CommandOverlay=&#x27; -i ${video1} -i "$srt" -c:v copy -c:a copy -c:s mov_text ${OUTPUT_PATH}&#x27;;&#xA;  await FFmpegKit.execute(CommandOverlay).then((session) async {&#xA;    final returnCode = await session.getReturnCode();&#xA;    if (ReturnCode.isSuccess(returnCode)) {print("Task Completed");}&#xA;    else if (ReturnCode.isCancel(returnCode)) {print("cancel");}&#xA;    else {print("error ");}&#xA;  });&#xA;}else if (await Permission.storage.isPermanentlyDenied) {&#xA;  openAppSettings();&#xA;}&#xA;

    &#xA;

    It generates video without any subtitle

    &#xA;

  • ffmpeg : How does one designate what parts of an overlay video stream let the underlay video stream show through ?

    21 février 2023, par Walt Howard

    Stream 0 is a rotating planet created using povray. (https://www.povray.org/)

    &#xA;

    Stream 1 is just a static jpeg of stars.

    &#xA;

    I'm using overlay like this :

    &#xA;

    nice ffmpeg -i protoplanet.mp4 -i stars.jpg \&#xA;         -filter_complex "[0:v]scale=1024:768[scaled];[1:v][scaled]overlay=0:0" \&#xA;         -movflags faststart -pix_fmt yuv420p -r 10 planet.mp4&#xA;

    &#xA;

    I had it working when I used the output from povray directly. I didn't have to know why that worked, because it just did. However, after adding some post processing to the planet video, the entire video has no alpha channel (educated guess) so the background stream (Stream 1) cannot show through.

    &#xA;

    The post processing I did was this (which works great) : https://www.reddit.com/r/ffmpeg/comments/im2mkp/creating_a_retro_glow_effect_with_ffmpeg/

    &#xA;

    But that made the video unable to have an overlay background possibly due to it destroying the alpha channel and turning many of the blacks to dark grey.

    &#xA;

    I can merge the pure POVRAY output and the background and then add the glow effect, but it adds the effect to the background stars and captions also which ruins the effect to some degree. I want to glo-ify the planet first, then stick it on a pure starfield background.

    &#xA;

    In thinking this over I may have to recreate the alpha channel after adding the glow effect, using a nearest match to black and dark grey to alpha.

    &#xA;

    Hmmm. It might be a codec issue as I didn't specify any -c:v in any of my commands....

    &#xA;

  • MSE Does not show duration when MPEG-DASH segments are created with FFmpeg

    15 mars 2023, par WaveLink

    I am trying to create a system that streams DASH segments to the browser, where it gets decoded by Media Source Extensions. When using MP4Box, the init segment loads the duration into the player, but the version generated by FFmpeg does not.

    &#xA;

    I believe this is due to some sort of header missing from the init segment generated by FFmpeg, but I have not been able to figure it out. Here is the command I use to generate the files :

    &#xA;

    ffmpeg -i .\source.opus -c:a libopus -c:v none -seg_duration 1 -dash_segment_type mp4 -preset ultrafast -use_timeline 1 -use_template 1 -streaming 1 -init_seg_name "segment_init.mp4" -media_seg_name "segment_$Number$.m4s" -fflags &#x2B;genpts -f dash ./out.mpd&#xA;When using MP4Box, this is the config I use :

    &#xA;

    MP4Box -dash 1000 -rap -profile live -segment-name "segment_$Number" .\out.mp4&#xA;In both cases, the audio does play, and both of them contain similar headers, but the FFmpeg version just does not contain the media duration in the init segment, or at least the MSE implementation cannot read it.

    &#xA;

    I tested this in Chrome, Firefox, and Edge, and all of them behave the same.

    &#xA;

    Thanks for any help.

    &#xA;