Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (57)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

Sur d’autres sites (4619)

  • Xuggler Encoding video of Desktop With Audio - audio has gaps

    2 novembre 2012, par Chris

    I am using Xuggler to convert images captured from the java Robot class and sound read from TargetDataLine class and encoding this into a video. I am then attempting to http stream this video data (after writing my header) to a flash client via http (Socket OutputStream) but it plays and stutters (never just playing smoothly) no matter what buffer value I use on the client side.

    I am asking for help and showing my java code because I suspect it might be to do with how I am encoding the video or something about sending data via http socket which i am not getting..

    ByteArrayURLHandler ba = new ByteArrayURLHandler();
    final IRational FRAME_RATE = IRational.make(30);
    final int SECONDS_TO_RUN_FOR = 20;
    final Robot robot = new Robot();
    final Toolkit toolkit = Toolkit.getDefaultToolkit();
    final Rectangle screenBounds = new Rectangle(toolkit.getScreenSize());
    IMediaWriter writer;

    writer = ToolFactory.makeWriter(
       XugglerIO.map(
           XugglerIO.generateUniqueName(out, ".flv"),
           out
       ));

    writer.addListener(new MediaListenerAdapter() {
       public void onAddStream(IAddStreamEvent event) {
           event.getSource().getContainer().setInputBufferLength(1000);
           IStreamCoder coder = event.getSource().getContainer().getStream(event.getStreamIndex()).getStreamCoder();
           if (coder.getCodecType() == ICodec.Type.CODEC_TYPE_AUDIO) {
               coder.setFlag(IStreamCoder.Flags.FLAG_QSCALE, false);  
               coder.setBitRate(32000);
               System.out.println("onaddstream"+ coder.getPropertyNames().toString());
           }
           if (coder.getCodecType() == ICodec.Type.CODEC_TYPE_VIDEO) {
               // coder.setBitRate(64000);
               // coder.setBitRateTolerance(64000);
           }
       }
    });

    writer.addVideoStream(videoStreamIndex, videoStreamId, 1024, 768);
    final int channelCount = 1;      

    int audionumber =   writer.addAudioStream(audioStreamIndex, audioStreamId,1, 44100);
    int bufferSize = (int)audioFormat.getSampleRate()   *audioFormat.getFrameSize();//*6;///6;
    byte[] audioBuf;// = new byte[bufferSize];

    int i = 0;

    final int audioStreamIndex = 1;
    final int audioStreamId = 1;
    BufferedImage screen, bgrScreen;
    long startTime = System.nanoTime();
    while(keepGoing)
    {

       audioBuf = new byte[bufferSize];
       i++;

       screen = robot.createScreenCapture(screenBounds);

       bgrScreen = convertToType(screen, BufferedImage.TYPE_3BYTE_BGR);
       long nanoTs = System.nanoTime()-startTime;
       writer.encodeVideo(0, bgrScreen, nanoTs, TimeUnit.NANOSECONDS);
       audioBuf = new byte[line.available()];
       int nBytesRead = line.read(audioBuf, 0, audioBuf.length);

       IBuffer iBuf = IBuffer.make(null, audioBuf, 0, nBytesRead);

       IAudioSamples smp = IAudioSamples.make(iBuf,1,IAudioSamples.Format.FMT_S16);
       if (smp == null) {
           return;
       }

       long numSample = audioBuf.length / smp.getSampleSize();

       smp.setComplete(true, numSample,(int)
       audioFormat.getSampleRate(), audioFormat.getChannels(),
       IAudioSamples.Format.FMT_S16, nanoTs/1000);

       writer.encodeAudio(1, smp);

       writer.flush();
    }
  • there is no sound after adding a logo to a video moviepy

    1er juin 2021, par NKG

    I have a video with sound.&#xA;Then, using moviepy I am adding a logo.png on the video.&#xA;The video with the logo has sound, but when I upload it onto instagram there is no sound(&#xA;P.S. the original video uploaded onto the instagram has sound.

    &#xA;

    there is a code bellow

    &#xA;

    import moviepy.editor as mp&#xA;&#xA;&#xA;INPUT_FILE_PATH = rf&#x27;input\video.mp4&#x27;&#xA;OUTPUT_FILE_PATH = rf&#x27;output\video.mp4&#x27;&#xA;&#xA;video = mp.VideoFileClip(INPUT_FILE_PATH)&#xA;&#xA;&#xA;logo = (mp.ImageClip("logo.png")&#xA;        .set_duration(video.duration)&#xA;        .resize(width=width / 3)&#xA;        .margin(right=width // 20, top=5 * height // 8, opacity=0)  # (optional) logo-border padding&#xA;        .set_pos(("right", "top")))&#xA;&#xA;final = mp.CompositeVideoClip([video, logo])&#xA;&#xA;&#xA;final.write_videofile(OUTPUT_FILE_PATH, fps=30, codec="libx264", audio_fps=22050, audio_bitrate="31k")&#xA;

    &#xA;

    Maybe I need add some params to output video, But I don't know what params

    &#xA;

  • How to merge two videos from Firebase Database and local file ? [closed]

    2 avril 2020, par i i

    I need to merge two videos from a local file and Firebase Storage. How can I solve it ?&#xA;I can get the file from a local file but I couldn't get the video from Firebase Storage.

    &#xA;&#xA;

    Part of my code :

    &#xA;&#xA;

    if(secondlength >0){&#xA;        if (secondlength > secondinterval) {&#xA;            final File source = new File(files.get(1));&#xA;            //  String filename = "https://firebasestorage.googleapis.com/v0/b/***.appspot.com/o/video_covers%2Fvideo_ornek.mp4?alt=media&amp;token=10c3fa8a-4510-4984-8247-8036fffe18b3";&#xA;            //  filesname.add(filename);&#xA;            //  final File output = new File(Uri.parse(filename).getPath());&#xA;            String filename = String.format(Environment.getExternalStorageDirectory().getAbsolutePath() &#x2B; "/" &#x2B; System.currentTimeMillis() &#x2B; ".mp4");&#xA;            filesname.add(filename);&#xA;            final File output = new File(filename);&#xA;            startTrim(source, output, startsecond, startsecond &#x2B; secondinterval);&#xA;            startsecond = startsecond &#x2B; secondinterval &#x2B; .7;&#xA;            secondlength = secondlength - secondinterval;&#xA;            Log.e("filename2 in 10", "" &#x2B; filename);&#xA;        } else {&#xA;            final File source = new File(files.get(1));&#xA;            String filename = String.format(Environment.getExternalStorageDirectory().getAbsolutePath() &#x2B; "/" &#x2B; System.currentTimeMillis() &#x2B; ".mp4");&#xA;            filesname.add(filename);&#xA;            final File output = new File(filename);&#xA;            String DownloadUrl = "https://firebasestorage.googleapis.com/v0/b/*****.appspot.com/o/video_covers%2Fvideo_ornek.mp4?alt=media&amp;token=10c3fa8a-4510-4984-8247-8036fffe18b3";&#xA;            DownloadManager.Request request1 = new DownloadManager.Request(Uri.parse(DownloadUrl));&#xA;            request1.setDescription("Sample Music File");   //appears the same in Notification bar while downloading&#xA;            request1.setTitle("File1.mp3");&#xA;            request1.setVisibleInDownloadsUi(false);&#xA;&#xA;            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {&#xA;                request1.allowScanningByMediaScanner();&#xA;                request1.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN);&#xA;            }&#xA;            request1.setDestinationInExternalFilesDir(getApplicationContext(), "/File", "Question1.mp4");&#xA;&#xA;            DownloadManager manager1 = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);&#xA;            Objects.requireNonNull(manager1).enqueue(request1);&#xA;            if (DownloadManager.STATUS_SUCCESSFUL == 8) {&#xA;                Toast.makeText(AllVideoMerge.this, "success", Toast.LENGTH_SHORT).show();&#xA;            }&#xA;&#xA;            startTrim(source, output, startsecond, startsecond &#x2B; secondlength);&#xA;            startsecond = 0;&#xA;            secondlength = 0;&#xA;&#xA;&#xA;            Log.e("filename2", "" &#x2B; filename);&#xA;        }&#xA;    }&#xA;

    &#xA;