Recherche avancée

Médias (3)

Mot : - Tags -/Valkaama

Autres articles (62)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (4469)

  • MPlayer not playing HTTP video stream for a specific type of content from the same source

    2 août 2017, par Joel

    Implementation overview

    Before I dive into the question, I need to establish the context from the start.

    I am currently implementing a cloud gaming solution utilising the following :

    • Nvidia Capture SDK
    • Nvidia Video Codec SDK
    • FFmpeg
    • MPlayer

    The Nvidia Capture SDK is used to produce a shim layer (via DXGI.dll), intercepting and capturing DirectX frames so that they can be passed to the Nvidia Video Codec SDK to be encoded into an h264 video format. All this is done within DXGI.dll.

    I then pass the encoded video to FFmpeg. FFmpeg acts as an HTTP server that broadcasts the video stream for MPlayer to play.

    Problem

    I am running an Unreal Engine 4 game called "Epic Survival Game Series". The Nvidia Capture SDK’s shim layer kicks off when the game starts, and FFmpeg launches the HTTP server to start streaming. However, when I start MPlayer to receive the stream, MPlayer stops at the following message, and nothing happens after that.

    libavformat version 57.72.101 (internal)
    Stream not seekable!
    H264-ES file format detected

    The thing is, when I play the same video using ffplay, it works without any issue. This is not the only quirk. When I launch a different Unreal Engine 4 game called "First Person Shooter Template", MPlayer can play that video as well. Also, if I modify the Survival Game to load directly into the game level by skipping the menu, MPlayer is also able to play the video.

    Using FFmpeg to write the video to a file instead of streaming it to a video also works, no matter the game or whether I loaded into the menu or game level.

    This is very strange and I do not have any idea why this is the case. Any ideas ?

    Edit : One strange quirk I forgot to mention is that MPlayer does manage to play the video in very rare occasions - maybe once every 10-20 tries or so.

    Implementation Details

    Additional details of how certain parts are implemented.

    (1) For the Nvidia Capture SDK, I use the provided DXIFRShim example that is provided in the SDK

    (2) for the Nvidia Video Codec SDK, I use the provided NvEncoder example that is provided in the SDK

    (3) The FFmpeg command I use is this :
    ffmpeg -i - -listen 1 -threads 1 -vcodec copy -preset ultrafast -an -tune zerolatency -f h264 http://address:port
    The encoded frames from Nvidia Video Codec SDK is piped to FFmpeg.

    (4) The MPlayer command I use is this :
    mplayer -quiet -vo gl -nosound -benchmark http://address:port

    Things I’ve tried

    I am suspecting MPlayer to be the cause, so I’ve only played around with MPlayer parameters.
    mplayer http://address:port

    mplayer -fps 30 -vo gl -nosound -benchmark http://address:port

    mplayer -fps 30 -screenw 720 -screenh 1280 -vo gl -nosound -benchmark http://address:port

    mplayer -fps 30 -vo directx -nosound -benchmark http://address:port

    mplayer -fps 30 -vo null -nosound -benchmark http://address:port

    None of these worked.

  • ffmpeg - Making a Clean WAV file

    10 janvier 2021, par Edward

    I'm looking to batch convert a number of files to audio files using ffmpeg for a game called Star Wars: Jedi Knight: Dark Forces II. The problem I'm having is that ffmpeg seems to be doing something that does so that Jedi Knight can't play the sound file.

    &#xA;&#xA;

    Jedi Knight accepts plain old PCM WAV files of various ranges, from 5khz to 96khz, 8 and 16 bit, mono and stereo. This sounds plain and simple. Except for that if one were to create a WAV file using MS Sound Recorder, Jedi Knight could not play it. Speculation was that it added something extra to header or something. But it can play a WAV file created by Audacity, GoldWave or ModPlug Tracker to name a few.

    &#xA;&#xA;

    So why not ffmpeg ? Am I using the wrong codec or params ? I took an original sound file from the game and performed the following :

    &#xA;&#xA;

    ffmpeg -i "orig_thrmlpu2.wav" -f wav -acodec pcm_s16le -ar 22050 -ac 1 "ffmpeg_thrmlpu2.wav"&#xA;

    &#xA;&#xA;

    The ffmpeg version does not play in the game. ffprobe shows that the ffmpeg version has some Metadata which the original doesn't have. What params should I use to try and get the same WAV format as the original ? Mind you, -ar, -ac and bits aren't the important parts.

    &#xA;&#xA;

    Here are the files for you to examine : http://www.edwardleuf.org/Games/JK/thrmlpu2.zip

    &#xA;

  • ffmpeg - Making a Clean WAV file

    24 septembre 2016, par Edward

    I’m looking to batch convert a number of files to audio files using ffmpeg for a game called Star Wars: Jedi Knight: Dark Forces II. The problem I’m having is that ffmpeg seems to be doing something that does so that Jedi Knight can’t play the sound file.

    Jedi Knight accepts plain old PCM WAV files of various ranges, from 5khz to 96khz, 8 and 16 bit, mono and stereo. This sounds plain and simple. Except for that if one were to create a WAV file using MS Sound Recorder, Jedi Knight could not play it. Speculation was that it added something extra to header or something. But it can play a WAV file created by Audacity, GoldWave or ModPlug Tracker to name a few.

    So why not ffmpeg ? Am I using the wrong codec or params ? I took an original sound file from the game and performed the following :

    ffmpeg -i "orig_thrmlpu2.wav" -f wav -acodec pcm_s16le -ar 22050 -ac 1 "ffmpeg_thrmlpu2.wav"

    The ffmpeg version does not play in the game. ffprobe shows that the ffmpeg version has some Metadata which the original doesn’t have. What params should I use to try and get the same WAV format as the original ? Mind you, -ar, -ac and bits aren’t the important parts.

    Here are the files for you to examine : http://www.edwardleuf.org/Games/JK/thrmlpu2.zip