Recherche avancée

Médias (1)

Mot : - Tags -/remix

Autres articles (103)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

Sur d’autres sites (8734)

  • Proprietary codecs on Linux. What is legal ?

    17 octobre 2016, par George Eco

    So, assuming we got a distribution without proprietary codecs installed.
    Let’s take Linux Mint for example. I want to store and playback wav and ogg format sounds, either by using my own software, or by using another developer’s software. So far so good right ?

    Imagine now that we have the following scenario. For some reason, I wanna playback a file that is either an mp4 or mp3 or mpeg or any other format, made by proprietary codecs. Instantly, I will need a codec for these formats.

    I read somewhere that Fluendo sells solutions for "legal codec usage" for linux distros.
    URL of fluendo : http://www.fluendo.com/en/

    So here comes the questions :

    Using VLC and ffmpeg is enough for me to convert a file to an ogg or ogv so I can playback a song or a video using an open format. You can also playback playback files made by proprietary formats. But are VLC and ffmpeg legal to use, to playback such files made by proprietary codecs ? For example, ss VLC codecs okay to be used without paying anyone for mp4 playback ? Is it okay to convert a file from mp4 to ogv ?
    If not, are there any legal and open source and free (as in freedom) codecs around that can solve the issue, or does someone have to pay a product, to be ethically correct, to the developers of the proprietaty codecs ?

    Note that I do not ask for Windows, since codec licenses are included to the price of the operating system. I ask exclusively for a free linux distribution.

  • ffmpeg slideshow coding errors [closed]

    22 juin 2022, par pentrell

    I'm trying to make an ffmpeg slideshow. I want it to include 'original_aspect_ratio' and each jpg must 'crossfade'. The following code partially works but the first 2 images don't display properly.
What is wrong with my coding please ? :-

    


    FFMPEG SLIDESHOW

    


    ffmpeg
    
-loop 1 -t 5 -i Image1.jpg
    
-loop 1 -t 5 -i Image2.jpg
    
-loop 1 -t 5 -i Image3.jpg
    
-loop 1 -t 5 -i Image4.jpg
    
-loop 1 -t 5 -i Image5.jpg
    
-i Song.mp3
    
-filter_complex
    
"[1:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720 :(ow-iw)/2 :(oh-ih)/2,setsar=1,format=yuva444p,fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS+4/TB[f0] ;
    
[2:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720 :(ow-iw)/2 :(oh-ih)/2,setsar=1,format=yuva444p,fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS+8/TB[f1] ;
    
[3:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720 :(ow-iw)/2 :(oh-ih)/2,setsar=1,format=yuva444p,fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS+12/TB[f2] ;
    
[4:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720 :(ow-iw)/2 :(oh-ih)/2,setsar=1,format=yuva444p,fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS+16/TB[f3] ;
    
[f0]overlay[bg1] ;[bg1][f1]overlay[bg2] ;[bg2][f2]overlay[bg3] ;
    
[bg3][f3]overlay,format=yuv420p[v]" -map "[v]" -map 5:a -shortest -movflags +faststart Output.mp4

    


  • FFmpeg doesn't play any audio through Discord.py BOT

    12 mai 2019, par Lewis H

    Here is my code for my Discord bot’s play function :

    @bot.command()
    async def play(ctx, url:str = None): # DOESN'T WORK, DOWNLOADS BUT DOESN'T PLAY

           ...

           ytdl_options = {
               'format': 'bestaudio/best',
               'postprocessors': [{
                   'key': 'FFmpegExtractAudio',
                   'preferredcodec': 'mp3',
                   'preferredquality': '192',
               }],
           }
           ytdl = youtube_dl.YoutubeDL(ytdl_options)

           loop = asyncio.get_event_loop()
           data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url))


           if 'entries' in data:
               data = data['entries'][0] # taking top item from a YT playlist

           source = ytdl.prepare_filename(data)

           vc.play(discord.FFmpegPCMAudio(source)) #play audio
           print(vc.is_playing())
           await ctx.send("Now playing: " + data.get('title')) #now playing
           asyncio.sleep(3)
           print(vc.is_playing())

    When I call the function, it runs fine and downloads the video from youtube-dl, then sends the message "Now playing : X", but doesn’t play any audio.

    I added the two print(vc.is_playing()) lines and what is returned in the shell is :

    True
    False

    So clearly it tries to play the song but immediately fails.

    There are no exceptions thrown, so I can’t understand why FFmpeg doesn’t want to play the audio.