Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (94)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

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

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

  • Read S3 video file, process it with ffmpeg and upload to S3

    28 avril 2020, par Dario Rusignuolo

    I have a video stored in s3 bucket with authenticated-read ACL.

    



    I need to read and make a trailer with ffmpeg (nodejs)

    



    Here's the code I use to generate the trailer

    



    exports.generatePreview = (req, res) => {
    const getParams = {
        Bucket: S3_CREDENTIALS.bucketName,
        Key: req.params.key
    }
    s3.getSignedUrl('getObject', getParams, (err, signedRequest) => {
        console.log(signedRequest, err, 'getSignedUrl')
        ffmpeg(new URL(signedRequest))
            .size('640x?')
            .aspect('4:3')
        .seekInput('3:00')
        .duration('0:30')
        .then(function (video) {
            s3.putObject({ Bucket: S3_CREDENTIALS.bucketName, key: 'preview_' + req.body.key, Body: video }, function (err, data) {
                console.log(err, data)
            })
        });
});


    



    }

    



    Unfortunately, the constructor path seems not to read remote url. If I try to execute an ffmpeg command line with the same signedurl (i.e. ffmpeg -i "https://[bucketname].s3.eu-west-1.amazonaws.com/[key.mp4]?[signedParams]" -vn -acodec pcm_s16le -ar 44100 -ac 2 video.wav)

    



    The error I get is that the signedRequest url 'The input file does not exist'

    



    It seems fs.readFileSync https is not supported even if I try the request with http with the same result. fs.readFileSync(signedurl) => gives the same result

    



    How to overcome this issue ?

    


  • How To Make Make A Video File From Images Using FFMPEG If Your Images Start At A Random Number [duplicate]

    13 mai 2019, par teot 59

    So I am making a program on my raspberry pi and I am constantly saving pictures in the background and deleting them. So for instance in the images folder I have images from 123.png to 234.png

    for now I have been using this command :

    os.system("ffmpeg -f image2 -r 15 -pattern_type glob -i 'videos/*.png' -vcodec mpeg4 -y movie.avi")

    But it’s unreliable, because it mixes image numbers up

    (sorry for bad English)

  • FFmpeg - how to adjust video duration to sound duration if sound is longer, possible without re-encoding it with mp3 file ?

    21 décembre 2017, par DarioBB

    I have a problem. I have recorded my videos separately, and then added sound to it. Sometimes, sound is longer or less in duration compared to video duration. Usually sound is longer, sometimes around 20 seconds. To me, when running on my PC through flv or some Windows Media player, that is not problem, since after video is over, last capture of video stays displayed (like an image), and sounds is still executing, and video ends after sound is over. So everything is ok at my PC when running it like .flv or .mp4 file. But, when I upload that on Google drive or some other place on web (that is, when I run it in my browser for viewing after upload), I see my video is cutted to the lenght of the video duration (so my sound is cutted). I understand that this is because of different duration sizes of sound and video.

    Now I need a command with ffmpeg that can make my video to be extened to my sound duration. I would like not to reencode my videos with sound again (in sense that I would need to put my mp3 file in ffmpeg command) if I don’t need (since I have many videos and sound is already inserted in them), but just to reencode video with some ffmpeg command.

    I have watched this (not sure at the momen if this would even help me) :
    https://superuser.com/questions/801547/ffmpeg-add-audio-but-keep-video-length-the-same-not-shortest

    But with this approach, you have to reencode video with sound (mp3 or similar) file first.

    Can it be done, and what would be command, or commands for it ?
    (Edit : And if only way is to re-encode it with mp3 file, what would be command for it ?)

    Edit : I don’t want to cut my sound, I need to hold last frame till my sound is over. Currently last frame is holded only when viewing on my PC, when I upload that, clip is cutted immediately when video stops.