Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (46)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (2061)

  • How to encode an mp4 to the exact specs of another mp4 with FFMPEG

    15 décembre 2021, par BCooper

    I'm working on a batch file to concatenate 3 files together, as follows :

    


    1_Intro_Bumper.mp4,
2_Session.mp4,
3_Outro_Bumper.mp4


    


    I've run into problems with the session.mp4 having slightly different specs, causing the concat to have weird problems with speed/sync/etc, and found out that if I encode the Bumpers through Handbrake to the exact specs of the Session, then the concat works great.

    


    My question is : Can I bypass Handbrake here and include a line in my batch file to encode the Intro and Outro Bumpers to the exact specs of the Session ?

    


    Here's my current batch file :

    


    :: Create File List

for %%i in (*.mp4) do echo file '%%i'>> mylist.txt

:: Concatenate Files

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

:: Encode to x264

ffmpeg -i output.mp4 output_x264.mp4


    


    Thanks !

    


  • http live streaming based on a m3u file

    23 mars 2018, par 3agelx45

    I have an account on a platform of streaming (legal !). This platform provide me with a m3u file, the content looks like follow :

    #EXTM3U
    #EXTINF:-1 tvg-id="" tvg-name="|| something ||" tvg-logo="" group-title="",|| CAT1 ||
    http://someurl.domain:1234/video1.ts
    #EXTINF:-1 tvg-id="" tvg-name="video2" tvg-logo="" group-title="CAT1 part 1",VIDEO1
    http://someurl.domain:1234/video2.ts
    #EXTINF:-1 tvg-id="" tvg-name="video2" tvg-logo="" group-title="CAT1 part 1",VIDEO2
    .
    .
    .
    etc

    This file works fine using vlc from home. but when I travel I use Hotels hotspots and some do block the connection to someurl.domain:1234.

    is it possible to stream the m3u file using a light http server (stream the file from server side and reroute result to http). The idea is run a small iptv server from home on my raspberry which will allow me to bypass the "censorship" faced with some hotspots.

    Thanks !

  • Discord.py Musicbot Skip Command PermissionError

    28 mai 2021, par Ventior

    So as my first "major" project after starting to program, I've decided to make a Discord Bot. The problem here is my "skip" command. Somehow it works but I can't understand how.

    


    def play_next(ctx):
if len(songs_list) >= 2:
    print(songs_list,"before del")
    del songs_list[0]
    print(songs_list[0], "new song")

    
    try:
        if os.path.isfile("song.mp3"):
            os.remove("song.mp3")
    except PermissionError:
        print("permissionerror")
    with youtube_dl.YoutubeDL(ydl_opts) as ydl:
        ydl.download([songs_list[0]])
    for file in os.listdir("./"):
        if file.endswith(".mp3"):
            os.rename(file, "song.mp3")
    voice.play(discord.FFmpegPCMAudio("song.mp3"), after=lambda e: play_next(ctx))
    voice.isplaying()


    


    And the skip command :

    


    @client.command(pass_context=True)
async def skip(ctx):
voice.stop()
voice.skip()
try:
  os.remove("song.mp3")
except:
  pass
play_next(ctx)


    


    I know it isn't the best way of handling that, but I am just beginning to code and this is how I got it to work.
In the skip command, when I didn't use voice.skip() I would have gotten a PermissionError printed out in the console.

    


    With it included, I instead get the message "VoiceClient" object has no attribute "skip", but everything works in order so far. Can someone explain why ?
I mean if skip doesn't exist, then why does it work ? And how does it bypass the PermissionError ?