Recherche avancée

Médias (21)

Mot : - Tags -/Nine Inch Nails

Autres articles (57)

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

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (9809)

  • Switching YouTube Live Stream Source FFMPEG

    26 juillet 2023, par AsadSMalik

    I'm experimenting with a live stream on YouTube where I can switch the source of it based on some external inputs. So for example, I have two webcams and by default the live stream shows the stream from webcam 1. Then based on some input, it needs to switch to broadcasting the stream from webcam 2. This is what I have so far but it disrupts the stream with the buffering loading circle before it switches to the second one instead of being like an instant switch.

    


    This is the code I'm using to create the ffmpeg command which runs to stream to YouTube.

    


    def create_ffmpeg_cmd(cam_uri):
    return ['ffmpeg',
            '-i', cam_uri,
            '-c:v', 'libx264',
            '-f', 'flv',
            f"{YOUTUBE_STREAM_URI}/{YOUTUBE_STREAM_KEY}"
            ]


    


    This is the code block which runs to switch streams when next_stream_uri is updated.

    


        def run(self, *args, **kwargs):
        command = create_ffmpeg_cmd(DEFAULT_CAM_URI)
        p = sp.Popen(command, stdin=sp.PIPE)
        stream_uri = self.next_stream_uri
        while True:
            if self.next_stream_uri != stream_uri:
                print(f"Changing stream from {stream_uri} to {self.next_stream_uri} ...")
                stream_uri = self.next_stream_uri
                cmd = create_ffmpeg_cmd(stream_uri)
                new_p = sp.Popen(cmd, stdin=sp.PIPE)
                time.sleep(1)
                p.terminate()
                p = new_p


    


    I put in the time.sleep(1) before terminating the first one to see if that works but I still see some buffering happening. Not sure if it's even possible to achieve a seamless switch but wanted to see if there are some better ways of doing it.

    


  • Edit random videos from youtube using ffmpeg

    15 janvier 2015, par Jacques le lezard

    I’m trying to edit several videos of different size, format, ratio, etc (random videos from youtube)

    As to edit these I use : ffmpeg -f concat -i videos.txt -s 1280x720 -c copy output/edited_video.mp4 All videos are listed in videos.txt

    But it doesn’t work like that, it seems ffmpeg need homogeneous videos to edit the finale video. For now the first video is displayed fine but the following are glitched...

    How can I homogenize any video to the same size, ratio, format, codec, ...?

    (For now I use : ffmpeg -i input/video.mp4 -r 30 -vcodec mpeg4 -s 1280x720 -c copy temp/video.mp4 but it seems it’s not enough.)

  • ffmpeg youtube live stream vb.net

    17 mai 2020, par Sharath Nandakumar

    i want to stream desktop to youtube live using ffmpeg. I am programming in visual basic 2019. i have downloaded copied ffmpeg to C folder from ffmpeg.org. the code i used was

    



    Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
    Dim psi As ProcessStartInfo = New ProcessStartInfo("C:/ffmpeg.exe")
    Dim proc As Process = Process.Start(psi)
    psi.UseShellExecute = False
    psi.CreateNoWindow = True
    psi.Arguments = "ffmpeg -loglevel debug -threads:v 2 -threads:a 8 -filter_threads 2 -thread_queue_size 512  -f dshow -i video="desktop" -f dshow -i audio="speakers (2- Realtek High Definition Audio)" -pix_fmt yuv420p -c:v libx264 -qp:v 19 -profile:v high -rc:v cbr_ld_hq -level:v 4.2 -r:v 60 -g:v 120 -bf:v 3 -refs:v 16 -f flv rtmp://youtube_stream_url/stream_key"
    proc = Process.Start(psi)
End Sub


    



    End Class

    



    I am not getting any results. Please help me. Thanks in advance