Recherche avancée

Médias (0)

Mot : - Tags -/utilisateurs

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (101)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

Sur d’autres sites (10802)

  • Best way to encode a jpg/png file ? [on hold]

    29 juin 2013, par Shirohige

    Assuming that I use a command like this :
    ffmpeg -i song.mp3 -loop 1 -i cover.jpg -r 1 -t 180 -acodec copy output.mp4

    I used an audio file with variable bitrate and everything took about 5 minutes for ffmpeg to encode it while with Camtasia Studio 8 it took 1 minute. In Camtasia I specified the following settings (using the mp4 container) : http://img197.imageshack.us/img197/1222/psrs.png
    and since Camtasia doesn't allow to put the audio directly into the container Camtasia converted the audio into an constant bitrate mp3. All together it took 1 minute for the encoding job (audio and video encoding) to be done but the result was a 3 times larger file (compared to the ffmpeg encode) with a visible quality deformation of the picture (again compared to the ffmpeg encode).

    I would like to know (since I just use one picture throughout the whole video), is there a way to encode it faster with ffmpeg (sacrificing a bit of the quality of the picture) ? I want to upload my videos to Youtube and as far as I know, Google's servers will encode every video anyway and that's why I don't encode the audio file but just put it into the mp4 container.

    EDIT :

    I am sorry, I will delete it when I am allowed to do so (it says after 2 days).

    EDIT 2 :

    ffmpeg log file : https://dl.dropboxusercontent.com/u/63836714/ffmpeg-20130628-234613.log

  • After a while of being idle, my bot, hosted on CentOS 7, can no longer find ffmpeg and requires a restart

    14 août 2019, par Liam McMillen-Meyers

    So I have a discord bot running with discord.js on a CentOS 7 machine. After a while (I’m not exactly sure how long) it will start throwing errors when I try to play a song, saying it can’t find ffmpeg, except that ffmpeg is installed. After I quickly restart the bot it works fine again.

    I genuinely have no idea what causes this, I have a little experience with CentOS but I’m by no means an experienced user, is it something I did when it installed ? I have tried searching for answers online but I can’t find anything

    Error : FFMPEG not found
    at Function.selectFfmpegCommand (/user/DiscordBot/folder1/node_modules/prism-media/src/transcoders/ffmpeg/Ffmpeg.js:46:13)
    at new FfmpegTranscoder (/user/DiscordBot/folder1/node_modules/prism-media/src/transcoders/ffmpeg/Ffmpeg.js:7:37)
    at new MediaTranscoder (/user/DiscordBot/folder1/node_modules/prism-media/src/transcoders/MediaTranscoder.js:10:19)
    at new Prism (/user/DiscordBot/folder1/node_modules/prism-media/src/Prism.js:5:23)
    at new VoiceConnection (/user/DiscordBot/folder1/node_modules/discord.js/src/client/voice/VoiceConnection.js:46:18)
    at Promise (/user/DiscordBot/folder1/node_modules/discord.js/src/client/voice/ClientVoiceManager.js:63:22)
    at new Promise ()
    at ClientVoiceManager.joinChannel (/user/DiscordBot/folder1/node_modules/discord.js/src/client/voice/ClientVoiceManager.js:45:12)
    at VoiceChannel.join (/user/DiscordBot/folder1/node_modules/discord.js/src/structures/VoiceChannel.js:130:30)
    at execute (/user/DiscordBot/folder1/bot.js:467:40)

  • Using ffmpeg to get a passthrough stream and create an audio resource for discordjs/voice ?

    5 novembre 2022, par Zer0

    I have access to an hls manifest file which i can use to download a song.
I use the following command to download it/pipe it to stdout :
ffmpeg -i 'https://api.someurl.com/1/2/3/stream.ismd/manifest.m3u8' -vn -sn -f flv -c copy -|ffmpeg -i - -b:a 192k -f mp3 -.

    


    I am successfully able to output a playable mp3 from this command.

    


    I am looking for a way to get the same kind of result in nodejs and get a readable stream from the final download and then pipe it to createAudioResource() to make it playable in a discord voice channel.

    


    There is a nodejs module called m3u8stream which i tried using with the code mentioned below but i couldnt get it to work as my knowledge of nodejs streams is limited and the documentation is confusing to understand.

    


    const stream = new PassThrough()
let resource
const stream = m3u8stream('https://api.someurl.com/1/2/3/stream.ismd/manifest.m3u8', {parser : 'm3u8',
requestOptions : {headers : {"content-type" : "video/mp4"}}
}).pipe(stream)
stream.on('data', d=>{resource = createAudioResource(d)})
player.play(resource)


    


    This code did not work and i am assuming this has something to do with m3u8stream itself because piping the stream to fs.createWriteStream('file.mp4') as shown in their example results in a zero kb mp4 file.

    


    I am sure there is be a better tool or a way to get a stream from the manifest and get it to play on discord and i would be happy to know about them as i am not bound to use ffmpeg for this.
Any help to make this work is appreciated. Thanks !