Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (32)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

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

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

Sur d’autres sites (5795)

  • JavaCV FFmpegFrameGrabber output video has incomplete audio

    15 juin 2016, par Diego Perozo

    I’m trying to write a program and part of it is supposed to take an ArrayList of BufferedImage objects and an audio file to create a movie.

    Here’s the code that does that :

    import java.awt.image.BufferedImage;
    import java.util.ArrayList;

    import org.bytedeco.javacpp.opencv_core.IplImage;
    import org.bytedeco.javacv.FFmpegFrameGrabber;
    import org.bytedeco.javacv.FFmpegFrameRecorder;

    public class Recorder {
       public static void Record(ArrayList<bufferedimage> charFrames, double fps, double frameLength, String outputPath) {
           FFmpegFrameRecorder recorder = new FFmpegFrameRecorder(outputPath,Painter.imgx,Painter.imgy);
           FFmpegFrameGrabber audioGrabber = new FFmpegFrameGrabber("audio/outputaudio.mp3");
           try {
               audioGrabber.start();
           } catch (org.bytedeco.javacv.FrameGrabber.Exception e1) {
               e1.printStackTrace();
           }
           try {
               recorder.setVideoQuality(12.5);
               recorder.setVideoCodec(13);
               recorder.setFormat("mp4");
               recorder.setFrameRate(fps);
               recorder.setSampleRate(audioGrabber.getSampleRate());
               recorder.setAudioChannels(2);
               recorder.start();
               System.out.println();
           for (int i=0;i (double)(frameLength))*10000))/100);
               sb1.append("%");
               System.out.println(sb1.toString());
           }
               recorder.stop();
               audioGrabber.stop();
           }
           catch (Exception e){
               e.printStackTrace();
           }
       }
    }
    </bufferedimage>

    The problem is that this code outputs a video file which displays the video perfectly but only plays the audio for the first 3 seconds (when tested with the audio and frames of a five-second-long video). Thanks in advance for any help.

  • 2 video decoding with same bitrate android inspired from grafika/fadden

    9 mars 2016, par Bee

    How to do double decoding(2 videos decoding) with same bit rate android ? I mean I want to play 2 videos in 2 different views but syncronisedly. I found this grafika double decoder. But it is not with same bitrate.
    The documentation says that.
    Any one know any sample project or guideline that I can follow ? Or maybe just can illustrate the steps I have to do ? May be used ffmpeg or something else ? Can anyone plese help me ?

  • how do I only output a single video stream per HLS output

    20 octobre 2018, par Marc Archenault

    I have successfully output 3 HLS output using -map 360, 720 & 1080p. My source file is 540p. once generated I use ffprobe on the newly created 360.ts, 720.ts, and 1080.ts and notice that there is a second video channel. This channel is the input video. How do I have FFmpeg not output the original video as part of the output ?

    this is the ffprobe on 360.ts

    Stream #0:0[0x100] : Video : h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:10x101 : Audio : aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 100 kb/s
    Stream #0:2[0x102] : Video : h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc

    This is the FFmpeg command

    %ffmpeg% -loglevel fatal -threads %threads% -hide_banner -y -i %input% -i %overlayImg%^
    -filter_complex "[1]colorchannelmixer=aa=%thumbopacity%,scale=iw*%thumbscale% :-1[wm] ;[0:v][wm]overlay=(main_w-overlay_w)-36 :(main_h-overlay_h)-21,split=4[a][b][c][d] ;[a]scale=w=640:h=360:force_original_aspect_ratio=decrease[a] ;[b]scale=w=1280:h=720:force_original_aspect_ratio=decrease[b] ;[c]scale=w=1920:h=1080:force_original_aspect_ratio=decrease[c] ;[d]scale=w=1280:h=720:force_original_aspect_ratio=decrease[d]"^
    -map "[a]" -map 0 -c:a aac -ar 48000 -c:v h264 -profile:v main -movflags +faststart -tune film -crf %crf% -preset %preset% -sc_threshold 0 -g 72 -keyint_min 72 -hls_time 4 -hls_playlist_type vod -b:v 800k -maxrate 856k -bufsize 1200k -b:a 96k -hls_flags single_file^
    %output%\360p.m3u8^
    -map "[b]" -map 0 -c:a aac -ar 48000 -c:v h264 -profile:v main -movflags +faststart -tune film -crf %crf% -preset %preset% -sc_threshold 0 -g 72 -keyint_min 72 -hls_time 4 -hls_playlist_type vod -b:v 2800k -maxrate 2996k -bufsize 4200k -b:a 128k -hls_flags single_file^
    %output%\720p.m3u8^
    -map "[c]" -map 0 -c:a aac -ar 48000 -c:v h264 -profile:v main -movflags +faststart -tune film -crf %crf% -preset %preset% -sc_threshold 0 -g 72 -keyint_min 72 -hls_time 4 -hls_playlist_type vod -b:v 5000k -maxrate 5350k -bufsize 7500k -b:a 192k -hls_flags single_file^
    %output%\1080p.m3u8^
    -map "[d]" -map 0 -c:a aac -ar 48000 -c:v h264 -profile:v main -preset %preset%^
    %output%\720.mp4^
    -map 0:v -y -ss 0.5 -vframes 1 -s %thumbsize% -ss 30^
    %outputthumb%

    thank you.