Recherche avancée

Médias (91)

Autres articles (66)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (11185)

  • build-ffmpeg.sh bad variable name

    25 octobre 2016, par Alex Kombo

    I have added the library to my project successfully but after replacing the Android media player with the FFmpegMediaPlayer and trying to build and run the project, I get the following error :

    :library:buildFFmpeg
    /home/kombo/Radio Africa/Music Player/library/src/main/scripts/build-ffmpeg.sh: 4: export: Africa/Music: bad variable name

    FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':library:buildFFmpeg'.
    > Process 'command '/home/kombo/Radio Africa/Music Player/library/src/main/scripts/build-ffmpeg.sh'' finished with non-zero exit value 2

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 34.148 secs

    How can I solve tackle this since removing the build-ffmpeg.sh file doesn’t look like an option.

  • voiceclient.play(discord.FFmpegPCMAudio) doesn't play any audio

    23 septembre 2021, par mm3239

    I'm trying to create a private music bot. It joined voice channel, but no sound came out and queue didn't worked. My play function is like this :

    


    async def play_music(self):
    if len(self.music_queue) > 0:
        self.is_playing = True

        index = self.music_queue[0][0]['index']

        #connecting to voice channel
        if not self.vc.is_connected():
            self.vc = await self.music_queue[0][1].connect()
        else:
            await self.vc.move_to(self.music_queue[0][1])

        self.music_queue.pop(0)

        self.vc.play(discord.FFmpegPCMAudio(self.music_files[index], **self.FFMPEG_OPTIONS), after=lambda e: self.play_next())


    


    When I execute the file, it should work like this :

    


    Me: /play abc.mp3
Bot: Song added to queue.
*abc song plays in voice channel*
Me: /play def.mp3
Bot: Song added to queue.
Me: /play ghi.mp3
Bot: Song added to queue.

Me: /queue
Bot: def.mp3
     ghi.mp3


    


    However, in reality, Discord :

    


    Me: /play abc.mp3
Bot: Song added to queue.
*silence*
Me: /play def.mp3
Bot: Song added to queue.
Me: /play ghi.mp3
Bot: Song added to queue.

Me: /queue
Bot: No music in queue.


    


    Console :

    


    music found!&#xA;[[{&#x27;index&#x27;: 2, &#x27;title&#x27;: &#x27;abc.mp3&#x27;}, <voicechannel>]]&#xA;music found!&#xA;[[{&#x27;index&#x27;: 0, &#x27;title&#x27;: &#x27;def.mp3&#x27;}, <voicechannel>]]&#xA;&#xA;music found!&#xA;[[{&#x27;index&#x27;: 1, &#x27;title&#x27;: &#x27;ghi.mp3&#x27;}, <voicechannel> position=5 bitrate=64000 user_limit=10 category_id=790202432072187909>]]&#xA;</voicechannel></voicechannel></voicechannel>

    &#xA;

    I can see something's wrong(abc and def prints shorter message in console, middle part of message is skipped), but as you can see, it doesn't raise any error or exception. Could anyone please help me correct my code ? I'm completely stuck, and it would be really appreciated if someone could tell me what the problem is.

    &#xA;

  • Cannot stream properly on YouTube using ffmpeg with Python

    1er mars 2018, par Francesco

    I have a few problems related to sending ffmpeg stream to YouTube.
    1. If I comment out "time.sleep(sleep_time)" the stream goes 3x fast(basing on what ?) ;
    2. If I uncomment the ’-r’ args the stream lags ;
    3. If I don’t add the background music the stream doesn’t start on YouTube, the problem persists if I uncomment the ’-an’ args.
    4. When the background music ends the stream stops working on YouTube.

    frame = cv2.imread('STATIC_IMAGE.jpg')
    fps = 25
    sleepTime = 1 / fps

    height, width, channels = frame.shape

    command = [
       'ffmpeg',

       #OpenCV image.
       #'-re',
       #'-threads', '0',
       '-f', 'rawvideo', #image2pipe
       '-vcodec','rawvideo',
       '-s', str(width) + 'x' + str(height),
       '-pixel_format', 'bgr24',
       #'-r', str(fps),
       #'-an',
       '-i', '-',

       #Background music
       #'-stream_loop', '-1',
       #'-re',
       #'-r', str(fps),
       '-i', 'music.mp3',

       #Output (actual stream)
       #'-r', str(fps),
       #'-crf', '25',
       #'-g', '39',
       #'-g', '2',
       #'-ac', '2',
       #'-c:a', 'aac',
       #'-b:a', '128k',
       #'-ar', '44100',
       #'-an',
       #'-b:v', '300k',
       #'-c:v', 'libx264',
       #'-bufsize', '600k',
       #'-maxrate', '300k',
       #'-qmin', '32',
       #'-qmax', '64',
       #'-vcodec', 'libx264',
       #'-pixel_format', 'yuv420p',
       '-vcodec', 'h264',
       '-pixel_format', 'h264',
       '-f', 'flv',
       'rtmp://a.rtmp.youtube.com/live2/STREAM_KEY'
    ]

    import subprocess as sp
    proc = sp.Popen(command, stdin=sp.PIPE, shell=False)

    while True:
       proc.stdin.write(frame.tostring())

       time.sleep(sleepTime)

    Any idea of why these problems happen ?
    May the "while True" be the problem ?