Recherche avancée

Médias (5)

Mot : - Tags -/open film making

Autres articles (73)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (9703)

  • How to set normal speed of playback after capturing and transcoding stream video by `ffmpeg_streaming` in Python project ?

    30 avril 2020, par Harley Club

    Using ffmpeg_streaming module in Python project with Flask, I try to set up video streaming from online camera into local file. My purpose is receiving input stream that comes as HLS-compatible data. To implement this property, I've inserted some code accessible by this link :

    



    import ffmpeg_streaming
from ffmpeg_streaming import Formats, Bitrate, Representation, Size

from flask import render_template, Flask, send_from_directory, abort, json, Response  

import sys

app = Flask(__name__)

video = ffmpeg_streaming.input('http://wmccpinetop.axiscam.net/mjpg/video.mjpg')

_480p = Representation(Size(854, 480), Bitrate(750 * 1024, 192 * 1024))
hls_stream = video.hls(Formats.h264(), hls_list_size = 10, hls_time = 5)
hls_stream.representations(_480p)
hls_stream.output('/var/media/hls_outputs.m3u8')


    



    It works as expected, i.e. video stream gets written into local file, then I can see what camera shot somewhere far from there...But an only problem arises here which I can't manage : once playback starts, the video is being displayed utterly fast. Nearly 2 minutes period covered by camera (I can see how long real time was over due to camera-embedded timer option) has duration of 5 seconds when playing back. So, how do I want to enable video speed just as it fits into real-world timing ? My OS is Ubuntu 18.04 LTS and I open file with preinstalled Videos app to watch content.

    


  • ffmpeg:Unable to broadcast to live stream from webcam

    13 mai 2020, par gbenga ogunbule

    I have this code that I believe should be able to grab from webcam and broadcast a live stream i.e. Users will be able to watch or stream live what there admin is doing at that moment in time.

    



    I have this code for it

    



    C:\Apache24\htdocs\v­ideo\assets\ffmpeg\b­in>ffmpeg -f dshow -i video="HP Webcam" -c:v libx264 -preset ultrafast -tune zerolatency -r 10 -async 1 -c:a libmp3lame -b:a 24k -ar 22050 -bsf:v h264_mp4toannexb -maxrate 750k -bufsize 3000k -f mpegt s C:\Apache24\htdocs\v­ideo\assets\uploads\­videos\en.mp4


    



    Also notice I use the absolute path mpegt s C:\Apache24\htdocs\v­ideo\assets\uploads\­videos\en.mp4 instead localhost/video/assets/uploads/videos/en.mp4 and the reason is because, when I use the latter, it is recording the video into the folder where I run the command.

    



    And this is the HTML code I wrote for it.

    



    <video width="320" height="240" controls="controls">&#xA;  <source src="assets/uploads/videos/en.mp4" type="video/mp4">&#xA;Your browser does not support the video tag.&#xA;</source></video>&#xA;

    &#xA;&#xA;

    How do I online streaming using ffmpeg

    &#xA;

  • Small discord bot with a set of working music commands, about 6 days ago the play function completely stopped functioning (more below)

    24 février 2021, par TheColoradoKid

    It is a small discord python bot for my server with various features, which had included music commands until they stopped out of the blue without showing any error for the problem.&#xA;It uses FFMpeg, and youtubeDl along with pytube to gather the song and store it locally to play it, I have pip updated all of these and they are definitely on the current versions as I have made sure of this online.&#xA;Any help or insight anyone could provide would be greatly appreciated. I'm sorry if the code is convoluted in the way it's written I'm still pretty new to coding and this is one of my first proper larger projects.

    &#xA;

    If you need any information I'm happy to give what I can to help.

    &#xA;

    Here is the code for the play command :

    &#xA;

    @client.command()&#xA;async def play(ctx, *args):&#xA;    global queu&#xA;    #global autom&#xA;    if not args:&#xA;        voice = get(client.voice_clients, guild=ctx.guild)&#xA;        if not voice.is_playing():&#xA;            server = ctx.message.guild&#xA;            voice_channel = server.voice_client&#xA;            if queu:&#xA;                async with ctx.typing():&#xA;                    player = await YTDLSource.from_url(queu[0], loop=client.loop)&#xA;                    voice_channel.play(player, after=lambda e: print(&#x27;Player error: %s&#x27; % e) if e else None)&#xA;&#xA;                await ctx.send(&#x27;**Now playing:** {}&#x27;.format(player.title))&#xA;                del(queu[0])&#xA;                # while autom == True:&#xA;                #     try:&#xA;                #         a = client.get_command(&#x27;auto&#x27;)&#xA;                #         await ctx.invoke(a)&#xA;                #     except:&#xA;                #         print(&#x27;&#x27;)&#xA;            elif not queu:&#xA;                await ctx.send("You can&#x27;t play if there isn&#x27;t anything in the queue\nIf auto mode was on it has now been disabled, to use it gain please add to the queue and run ``;auto on``")&#xA;                autom = False&#xA;    if args:&#xA;        global gueu&#xA;        search_keywords = ""&#xA;        print(args)&#xA;        for word in args:&#xA;            search_keywords &#x2B;= word&#xA;            search_keywords &#x2B;= &#x27;&#x2B;&#x27;&#xA;        link = "https://www.youtube.com/results?search_query="&#xA;        link &#x2B;= search_keywords&#xA;        #print(link)&#xA;        html = urllib.request.urlopen(link)&#xA;        video_ids = re.findall(r"watch\?v=(\S{11})", html.read().decode())&#xA;        url = ("https://www.youtube.com/watch?v=" &#x2B; video_ids[0])&#xA;        #print(url)&#xA;        queu.append(url)&#xA;        #print(queu)&#xA;        await ctx.send("``{}`` added to queue!\n If the song doesn&#x27;t start please either let the current song end and run ``;play``/``;next`` again or run ``;next`` to play now".format(url))&#xA;        try:&#xA;            p = client.get_command(&#x27;play&#x27;)&#xA;            await ctx.invoke(p)&#xA;        except:&#xA;            print(&#x27;failed&#x27;)&#xA;

    &#xA;