Recherche avancée

Médias (91)

Autres articles (20)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (5964)

  • TypeError : parameter 'url' is missing a type annotation in callback 'play' + ffmpeg

    10 décembre 2022, par morichh

    I can't understand why Python interpreter doesn't like the fact that I use the url in the last line

    


    @client.tree.command()
async def play(interaction: Interaction, url = str):
    global voice
    channel = interaction.user.voice.channel
    voice = get(client.voice_clients, Guild=interaction.guild)
    if voice and voice.is_connected():
        await voice.move_to(channel)
        await interaction.response.send_message(f"*1*")
    else:
        voice = await channel.connect()
        await interaction.response.send_message(f"*2*")
    voice.play(discord.FFmpegPCMAudio(executable="C:/ffmpeg/bin/ffmpeg.exe", source = url))    



    


    By the way, ffmpeg also does not work.

    


  • SDL2 won't play with more than 6 audio channels

    13 juin 2020, par Hiko Haieto

    I am trying to stream (raw) video and audio from a capture device as part of my home media setup (with my pc acting similarly to a receiver in a typical home theatre setup), but the biggest problem I haven't been able to get past is that I haven't been able to get ffplay (using SDL2 as its audio backend) to work with all 8 channels in 7.1 streams - two simply get dropped, despite it recognising 8 channel input or me specifying a 7.1 layout.

    



    I have been able to confirm that all 8 channels are present in the source by first using ffmpeg to save the output of a speaker test to a file and playing that back with both mplayer (which works) and ffplay (which doesn't). I also wrote some minimal code to play the audio directly through SDL's API with the same result, so it's not the fault of ffplay. I might simply use mplayer if it weren't for the fact that piping output from ffmpeg adds too much latency for real-time use. I am using libSDL version 2.0.12 and ffplay 4.2.3, both of which are the latest at the time of writing and are ostensibly supposed to support 7.1 audio.

    



    Using output recorded from speaker-test -c 8, I am using the following to play it back in mplayer :

    



    mplayer -channels 8 -rawaudio channels=8 -format s16le -demuxer rawaudio speaker-test.pcm


    



    and the following to play it back in ffplay :

    



    ffplay -f s16le -ac 8 -af 'channelmap=channel_layout=7.1' speaker-test.pcm


    



    No matter what I try, the two side channels get dropped. I couldn't figure out how to play raw pcm in SDL, so I repeated the same tests with wav output and used the following code to play it back :

    



    #include <sdl2></sdl2>SDL.h>&#xA;&#xA;int main(int argc, char **argv) {&#xA;    SDL_Init(SDL_INIT_AUDIO);&#xA;    SDL_AudioSpec wavSpec;&#xA;    Uint32 wavLength;&#xA;    Uint8 *wavBuffer;&#xA;    SDL_LoadWAV("speaker-test.wav", &amp;wavSpec, &amp;wavBuffer, &amp;wavLength);&#xA;    SDL_AudioDeviceID deviceID = SDL_OpenAudioDevice(NULL, 0, &amp;wavSpec, NULL, 0);&#xA;    SDL_QueueAudio(deviceID, wavBuffer, wavLength);&#xA;    SDL_PauseAudioDevice(deviceID, 0);&#xA;    SDL_Delay(30000);&#xA;    SDL_CloseAudioDevice(deviceID);&#xA;    SDL_FreeWAV(wavBuffer);&#xA;    SDL_Quit();&#xA;    return 0;&#xA;}&#xA;

    &#xA;&#xA;

    The above code exhibits the same behaviour of dropping the two additional side channels, despite it being the latest version of SDL that should have supported 7.1 for many releases now. Why might this be happening, and how might I fix it ?

    &#xA;

  • Recorded & uploaded video from iphone device won't play in iphone

    11 juin 2019, par Sohil Chamadia

    I am facing an issue regarding :

    Recording video from iphone and uploading that video on my application(Develop in Wordpress Framework) then the video uploaded won’t play in iphone devices.

    This issue occurs only when I "Record video from iphone and then uploading that video into the application".If I upload existing video from iphone device then video will be played and it’s working fine. So please help to resolve this issue.I have used "FFmpeg library" to reduce the size of video.

    Below is the code which i have used to play video :

    <video preload="auto" width="320" height="240" controls=""><source src="abc.mp4" type="video/mp4">Your browser does not support the video tag.</source></video>

    When i click on video to play it then video is not play and cross sign is shown over the play button.Below i have attached screenshot of it :
    enter image description here