Recherche avancée

Médias (0)

Mot : - Tags -/signalement

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

Autres articles (65)

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

  • 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

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

Sur d’autres sites (11425)

  • swscale/aarch64 : use multiply accumulate and increase vector factor to 4

    17 novembre 2019, par Sebastian Pop
    swscale/aarch64 : use multiply accumulate and increase vector factor to 4
    

    This patch implements ff_hscale_8_to_15_neon with NEON fused multiply accumulate
    and bumps the vectorization factor from 2 to 4.
    The speedup is of 25% on Graviton1 A1 instances based on A-72 cpus :

    $ ffmpeg -nostats -f lavfi -i testsrc2=4k:d=2 -vf bench=start,scale=1024x1024,bench=stop -f null -
    before : t:0.040303 avg:0.040287 max:0.040371 min:0.039214
    after : t:0.032168 avg:0.032215 max:0.033081 min:0.032146

    The speedup is of 39% on Graviton2 m6g instances based on Neoverse-N1 cpus :
    $ ffmpeg -nostats -f lavfi -i testsrc2=4k:d=2 -vf bench=start,scale=1024x1024,bench=stop -f null -
    before : t:0.019446 avg:0.019423 max:0.019493 min:0.019181
    after : t:0.014015 avg:0.014096 max:0.015018 min:0.013971

    Tested with `make check` on aarch64-linux.

    Signed-off-by : Sebastian Pop <spop@amazon.com>
    Reviewed-by : Jean-Baptiste Kempf <jb@videolan.org>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libswscale/aarch64/hscale.S
  • FFmpeg transcode GIF into Mp4 and Mp4 to AVI using GPU

    9 octobre 2023, par Cristian

    I'm trying to convert GIF animated to mp4 and mp4 to AVI with FFmpeg.

    &#xA;

    I started to use just the CPU, but I have to process millions of GIFs/mp4 content pieces. So, I started to have a lot of errors processing them, and it ended as a bottleneck. Therefore, I'm trying to use GPU to process the videos.

    &#xA;

    Converting GIF to mp4 with CPU, I run the following command :

    &#xA;

    ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4&#xA;

    &#xA;

    Using the GPU I'm trying the following :

    &#xA;

    ffmpeg&#xA;  -y&#xA;  -hwaccel nvdec&#xA;  -hwaccel_output_format cuda&#xA;  -i gifInputPath&#xA;  -threads 1&#xA;  -filter_threads 1&#xA;  -c:v h264_nvenc&#xA;  -vf hwupload_cuda,scale_cuda=-2:320:240:format=yuv420p&#xA;  -gpu 0&#xA;   mp4VideoPath&#xA;

    &#xA;

    The above command generates an exit status 1.

    &#xA;

    The following is the dmesg command log

    &#xA;

    Converting mp4 videos to AVI videos I'm running the following command

    &#xA;

    ffmpeg&#xA;-i videoInputPath&#xA;-vcodec rawvideo&#xA;-pix_fmt yuv420p&#xA;-acodec pcm_s16le&#xA;-ar 44100&#xA;-ac 2&#xA;-s 320x240&#xA;-r 4&#xA;-f avi&#xA;aviOutputVideoPath&#xA;

    &#xA;

    For GPU I tried :

    &#xA;

    ffmpeg&#xA; -y&#xA; -hwaccel cuda&#xA; -hwaccel_output_format cuda&#xA; -i videoInputPath&#xA; -threads 1&#xA; -filter_threads 1&#xA; -c:a pcm_s16le&#xA; -ac 2&#xA; -ar 44100&#xA; -c:v h264_nvenc&#xA; -vf hwupload_cudascale_cuda=-2:320:240:format=yuv420p&#xA; -r 4&#xA; -f avi&#xA; -gpu 0&#xA; aviOutputVideoPath&#xA;

    &#xA;

    The following is the dmseg output is log

    &#xA;

      &#xA;
    1. What should be the best command for converting the GIF into Mp4 and Mp4 into AVI based on CPU configuration using the GPU(Amazon Nvidia t4) for best performance, low CPU, and moderated GPU consumption ?

      &#xA;

    2. &#xA;

    3. What are the best suggestions to Process these content pieces concurrently using GPU ?

      &#xA;

    4. &#xA;

    &#xA;

    Note : I'm using Golang to execute the FFmpeg commands.

    &#xA;

  • My discord music bot is not playing the entire music

    21 décembre 2024, par james12

    My discord music bot based on discord.py, yt_dlp and ffmpeg is not working.&#xA;I downloaded every module that is required and added environmental variables.&#xA;But, my discord bot is not working properly.&#xA;The bot plays the music properly at first, but the music ends before the song finishes.

    &#xA;

    Full code below :

    &#xA;

    import discord&#xA;from discord.ext import commands&#xA;import yt_dlp&#xA;&#xA;app = commands.Bot(command_prefix=&#x27;!&#x27;, intents=discord.Intents.all())&#xA;ydl_opts = {&#xA;    &#x27;format&#x27;: &#x27;bestaudio/best&#x27;,&#xA;    &#x27;extractaudio&#x27;: True,&#xA;    &#x27;audioformat&#x27;: &#x27;mp3&#x27;,&#xA;    &#x27;outtmpl&#x27;: &#x27;downloads/%(title)s.%(ext)s&#x27;,&#xA;    &#x27;quiet&#x27;: True,&#xA;}&#xA;&#xA;@app.event&#xA;async def on_ready():&#xA;    print(&#x27;Done&#x27;)&#xA;    await app.change_presence(status=discord.Status.online, activity=None)&#xA;&#xA;@app.command()&#xA;async def play(ctx, *, search: str):&#xA;    channel = ctx.author.voice.channel&#xA;    voice_client = discord.utils.get(app.voice_clients, guild=ctx.guild)&#xA;&#xA;    if not voice_client:&#xA;        voice_client = await channel.connect()&#xA;&#xA;    with yt_dlp.YoutubeDL(ydl_opts) as ydl:&#xA;        info = ydl.extract_info(f"ytsearch:{search}", download=False)[&#x27;entries&#x27;][0]&#xA;        url = info[&#x27;url&#x27;]&#xA;        title = info[&#x27;title&#x27;]&#xA;&#xA;    # 음악 재생&#xA;    voice_client.play(discord.FFmpegPCMAudio(url, executable="ffmpeg"), after=lambda e: print("재생 완료"))&#xA;    await ctx.send(f"{ctx.author.mention}님이 요청하신 {title} 노래 재생 중")&#xA;&#xA;@app.command()&#xA;async def stop(ctx):&#xA;    voice_client = discord.utils.get(app.voice_clients, guild=ctx.guild)&#xA;    if voice_client and voice_client.is_playing():&#xA;        voice_client.stop()&#xA;        await voice_client.disconnect()&#xA;    &#xA;app.run(&#x27;token&#x27;)&#xA;

    &#xA;

    I tried to add options in FFmpeg like this : options="-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5"&#xA;but it doesn't work.&#xA;I also added extra yt-dlp options.&#xA;I hope the bot properly plays the full version of music from youtube in discord.

    &#xA;