Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (56)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (7656)

  • FFMPEG code is not trimming the videos properly

    8 mai 2022, par michaelmuller20

    I am trying to trim videos from a specific folder using ffmpeg via powershell but it seems the out doesn't work. However, the files are being renamed as per the code.

    


    <# 

This script trims videos with ffmpeg using a start and end time.
Code below that calls ffmpeg and ffprobe assumes those executables 
are included in the return for $env:path. If this is not the 
case, either add them to PATH or call the .exe using the full
path.

#>

    $files = Get-ChildItem -Filter "*.mp4" -LiteralPath "C:\Users\PC\Desktop\Sample" # create a list of files to process
    $bool_fast = $true # use a fast method to trim the video file. Set to $false to use the slow method.

    ForEach ($f in $files) {
        # set up file names
        $src = $dest = $f.FullName # store original file name
        $new_name = "$($f.BaseName)_LONGER$($f.Extension)" # create a new file name for original file by inserting "_LONGER" before the extension
        Rename-Item -Path $src -NewName $new_name # rename the original file so we can use its name for the output (ffmpeg can't overwrite files)
        $src = $dest.Replace($f.Name, $new_name) # store the new source file name

        # get the file length in seconds
        $strcmd = "ffprobe -v quiet -print_format compact=print_section=0:nokey=1:escape=csv -show_entries format=duration $src" # outputs seconds
        $len = Invoke-Expression $strcmd

        # set start and end times
        $start = 0 # where to start trim in seconds from the beginnning of original video
        $end = 4 # where to end trim in seconds from the beginnning of original video

        # trim the video
        If ($bool_fast) {
            # this method seeks to the nearest i-frame and copies ... fast
            $strcmd = "ffmpeg -i $src -ss $start -to $end -c:v copy -c:a copy $dest"
        } Else {
            # this method re-encodes the file ... slow, but more accurate adherence to a time specification
            $strcmd = "ffmpeg -i $src -ss $start -to $end $dest"
        }
        Invoke-Expression $strcmd
    }


    


  • avformat/mov : Add support for still image AVIF parsing

    22 avril 2022, par Vignesh Venkatasubramanian
    avformat/mov : Add support for still image AVIF parsing
    

    This patch supports AVIF still images conforming to the
    final specification that have exactly one item (i.e. no alpha channel).
    The iloc box is parsed and the mov index populated.

    Partially fixes #7621.

    Signed-off-by : Vignesh Venkatasubramanian <vigneshv@google.com>
    Signed-off-by : Gyan Doshi <ffmpeg@gyani.pro>

    • [DH] libavformat/isom.h
    • [DH] libavformat/mov.c
  • trying to play audio from youtube with ffmpeg on discord.py rewrite

    13 septembre 2021, par Bobby Cook

    im trying to use a discord bot that plays music, but im getting errors when i run this code and python crashes, and i cant quite figure out whats wrong, except for that its around the @client.command(pass_context=True) async def play(self, ctx, *, url): print(url) server = ctx.message.guild voice_channel = server.voice_client&#xA;block. the i apologize for wasting all your time, im really bad at this, and i didnt even write most of this.

    &#xA;

    import random&#xA;import youtube_dl&#xA;from discord.ext import commands&#xA;from discord.ext import tasks&#xA;&#xA;client = commands.Bot(command_prefix = &#x27;f!&#x27;)&#xA;&#xA;@client.command()&#xA;async def join(ctx):&#xA;    channel = ctx.message.author.voice.channel&#xA;    await channel.connect()&#xA;&#xA;@client.command()&#xA;async def leave(ctx):&#xA;    await ctx.voice_client.disconnect()&#xA;&#xA;youtube_dl.utils.bug_reports_message = lambda: &#x27;&#x27;&#xA;&#xA;&#xA;ytdl_format_options = {&#xA;    &#x27;format&#x27;: &#x27;bestaudio/best&#x27;,&#xA;    &#x27;outtmpl&#x27;: &#x27;%(extractor)s-%(id)s-%(title)s.%(ext)s&#x27;,&#xA;    &#x27;restrictfilenames&#x27;: True,&#xA;    &#x27;noplaylist&#x27;: True,&#xA;    &#x27;nocheckcertificate&#x27;: True,&#xA;    &#x27;ignoreerrors&#x27;: False,&#xA;    &#x27;logtostderr&#x27;: False,&#xA;    &#x27;quiet&#x27;: True,&#xA;    &#x27;no_warnings&#x27;: True,&#xA;    &#x27;default_search&#x27;: &#x27;auto&#x27;,&#xA;    &#x27;source_address&#x27;: &#x27;0.0.0.0&#x27; # bind to ipv4 since ipv6 addresses cause issues sometimes&#xA;}&#xA;&#xA;ffmpeg_options = {&#xA;    &#x27;options&#x27;: &#x27;-vn&#x27;&#xA;}&#xA;&#xA;ytdl = youtube_dl.YoutubeDL(ytdl_format_options)&#xA;&#xA;class YTDLSource(discord.PCMVolumeTransformer):&#xA;    def __init__(self, source, *, data, volume=0.5):&#xA;        super().__init__(source, volume)&#xA;&#xA;        self.data = data&#xA;&#xA;        self.title = data.get(&#x27;title&#x27;)&#xA;        self.url = data.get(&#x27;url&#x27;)&#xA;&#xA;    @classmethod&#xA;    async def from_url(cls, url, *, loop=None, stream=False):&#xA;        loop = loop or asyncio.get_event_loop()&#xA;        data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url, download=not stream))&#xA;&#xA;        if &#x27;entries&#x27; in data:&#xA;            # take first item from a playlist&#xA;            data = data[&#x27;entries&#x27;][0]&#xA;&#xA;        filename = data[&#x27;url&#x27;] if stream else ytdl.prepare_filename(data)&#xA;        return cls(discord.FFmpegPCMAudio(filename, **ffmpeg_options), data=data)&#xA;&#xA;        async with ctx.typing():&#xA;            player = await YTDLSource.from_url(url, loop=self.bot.loop)&#xA;            ctx.voice_channel.play(player, after=lambda e: print(&#x27;Player error: %s&#x27; % e) if e else None)&#xA;        await ctx.send(&#x27;Now playing: {}&#x27;.format(player.title))&#xA;&#xA;@client.command(pass_context=True)&#xA;   async def play(self, ctx, *, url):&#xA;       print(url)&#xA;       server = ctx.message.guild&#xA;       voice_channel = server.voice_client&#xA;

    &#xA;