Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (39)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (5507)

  • FFMPEG - Download video in parts and concat, stutter at concat points

    23 juillet 2022, par rnbwSmn

    My goal is to download a video (or M3U8) in parts/chunks which I can later concat.

    


    For context, I would like to download videos in an Android Service which may be stopped at any time, so I think chunking is the right approach.

    


    After some time I got the "downloading the parts" right, using this. I would later put that in a function, and for now I chose the chunks to be 30 seconds long.

    


    %offset% = 30 * %part%

ffmpeg -ss %offset% -t 30 -i INPUT_FILE -avoid_negative_ts 1 out%part%.mp4


    


    The first line is just pseudocode, part is starting at 0.
This works fine, downloading 30 second long .mp4 files.

    


    After that I tried merging them together into a single .mp4. For the tests I only downloaded the first few parts.

    


    Concat command :

    


    ffmpeg -safe 0 -f concat -i concat.txt -c copy final.mp4


    


    This would be a very short concat.txt file :

    


    file 'out0.mp4'
file 'out1.mp4'


    


    The concat works but has one problem : At the point where both files are actually combined, so at 30 seconds, there is a small stutter in video and audio.

    


    So what I think is going on is that I download parts that are 30s long, starting at multiples of 30s so there is a small overlap ? In the "Details" part of the Windows file properties it also shows a length of 31 seconds, so the video is even longer than I want.

    


    I tried setting the duration of each part in the concat.txt, both to 30s and to 30s - 1 frame

    


    23.98 fps -> 1/23.98 spf = 0.0417s


    


    But with a duration of 30 as well as 29.9583, although it is better, there is still a small stutter.

    


    file 'out0.mp4'
duration 29.9583
file 'out1.mp4'
duration 29.9583


    


    I also tried with a different fileformat, .ts files, but the stutter was still there. I still think my timings are not quite right, but at this point I don't know where the problem is exactly. What do I need to change to remove the small stutter ?

    


  • ydl erroring on download only getting partial download and an error on ydl.download([url])

    11 septembre 2022, par newtboot

    building an audio stream bot command for my custom discord bot but it keep throwing errors on ydl.download([url]) and only fetches a partial download assuming it disconnects from server before finishing download i'm not sure how to fix this error or if its just a syntax thing

    


    import discord
import aiohttp
import random
import youtube_dl
import os
from discord.ext import commands

@bot.command()
async def play(ctx, url : str):
    song_there = os.path.isfile("song.mp3")
    try:
        if song_there:
            os.remove("song.mp3")
    except PermissionError:
        await ctx.send("wait for current audion to finish or use the 'stop' command")
        return

    voiceChannel = discord.utils.get(ctx.guild.voice_channels, name='moosic')
    voice = discord.utils.get(bot.voice_clients, guild=ctx.guild)
    if voice is None or not voice.is_connected():
        await voiceChannel.connect()
    ydl_opts = {
        'format': 'bestaudio/best',
        'postprocessors': [{
            'key': 'FFmpegExtractAudio',
            'preferredcodec': 'mp3',
            'preferredquality': '192',
        }],
    }
    with youtube_dl.YoutubeDL(ydl_opts) as ydl:
        ydl.download([url])
    for file in os.listdir("./"):
        if file.endswith(".mp3"):
            os.rename(file, "song.mp3")
    voice.play(discord.FFmpegPCMAudio("song.mp3"))


    


  • Download SAMPLE-AES-CTR encrypted m3u8

    16 septembre 2022, par Kadir

    I searched but couldn't find a solution How can I download this video ?

    


    https://vod-l3c-eu-east-2.media.dssott.com/ps01/disney/8e61fbd9-80fb-44f0-8108-c67ca45942cc/r/composite_400k_CENC_CTR_FHD_SDR_4e79c2dc-8f22-4a07-ad09-ba0251f79b55_9cf2df75-4260-4820-ada6-f953579ffbb8.m3u8

    


    #EXTM3U
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:9
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PROGRAM-DATE-TIME:2019-01-01T00:00:00.000Z
#EXT-X-DATERANGE:ID="pod_0",START-DATE="2019-01-01T00:00:00.000Z",DURATION=3.000000001,X-START-OFFSET="0.0"
#EXT-X-KEY:METHOD=SAMPLE-AES-CTR,KEYFORMAT="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",KEYFORMATVERSIONS="1",URI="data:text/plain;base64,AAAAMnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABISEB5U5uPKPk0WpO7hIRwr3JI="
#EXT-X-KEY:METHOD=SAMPLE-AES-CTR,KEYFORMAT="com.microsoft.playready",KEYFORMATVERSIONS="1",URI="data:text/plain;charset=UTF-16;base64,xAEAAAEAAQC6ATwAVwBSAE0ASABFAEEARABFAFIAIAB4AG0AbABuAHMAPQAiAGgAdAB0AHAAOgAvAC8AcwBjAGgAZQBtAGEAcwAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0ALwBEAFIATQAvADIAMAAwADcALwAwADMALwBQAGwAYQB5AFIAZQBhAGQAeQBIAGUAYQBkAGUAcgAiACAAdgBlAHIAcwBpAG8AbgA9ACIANAAuADAALgAwAC4AMAAiAD4APABEAEEAVABBAD4APABQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsARQBZAEwARQBOAD4AMQA2ADwALwBLAEUAWQBMAEUATgA+ADwAQQBMAEcASQBEAD4AQQBFAFMAQwBUAFIAPAAvAEEATABHAEkARAA+ADwALwBQAFIATwBUAEUAQwBUAEkATgBGAE8APgA8AEsASQBEAD4ANAArAFoAVQBIAGoANwBLAEYAawAyAGsANwB1AEUAaABIAEMAdgBjAGsAZwA9AD0APAAvAEsASQBEAD4APAAvAEQAQQBUAEEAPgA8AC8AVwBSAE0ASABFAEEARABFAFIAPgA="
#EXT-X-KEY:METHOD=SAMPLE-AES-CTR,KEYFORMAT="PRMNAGRA",KEYFORMATVERSIONS="1",URI="data:text/plain;base64,eyJrZXktaWQiOiIxZTU0ZTZlMy1jYTNlLTRkMTYtYTRlZS1lMTIxMWMyYmRjOTIiLCJlbWkiOiJjdHIiLCJwcm0iOiJleUpqYjI1MFpXNTBTV1FpT2lKamRISWlMQ0pyWlhsSlpDSTZJakZsTlRSbE5tVXpMV05oTTJVdE5HUXhOaTFoTkdWbExXVXhNakV4WXpKaVpHTTVNaUo5In0="
#EXT-X-MAP:URI="b890e39d-85ff-425b-9a45-c3ca1f3dd423/10c8-BUMPER/02/2400K/map.mp4"
#EXTINF:3.000000001,
b890e39d-85ff-425b-9a45-c3ca1f3dd423/10c8-BUMPER/02/2400K/00/00/00_000.mp4
#EXT-X-DISCONTINUITY
#EXT-X-DATERANGE:ID="pod_1",START-DATE="2019-01-01T00:00:03.000Z",DURATION=2122.000000001,X-START-OFFSET="3.000000001"
#EXT-X-MAP:URI="a04e8798-c29c-4bb2-b6a6-52845167f3a8/3704-MAIN/02/4250K/map.mp4"
#EXTINF:8,
a04e8798-c29c-4bb2-b6a6-52845167f3a8/3704-MAIN/02/2400K/00/00/00_000.mp4
#EXTINF:8,
a04e8798-c29c-4bb2-b6a6-52845167f3a8/3704-MAIN/02/2400K/00/00/08_000.mp4
#EXTINF:8,
a04e8798-c29c-4bb2-b6a6-52845167f3a8/3704-MAIN/02/2400K/00/00/16_000.mp4