Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (57)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (10684)

  • 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 ?
I can get the file from a local file but I couldn't get the video from Firebase Storage.

    



    Part of my code :

    



    if(secondlength >0){
        if (secondlength > secondinterval) {
            final File source = new File(files.get(1));
            //  String filename = "https://firebasestorage.googleapis.com/v0/b/***.appspot.com/o/video_covers%2Fvideo_ornek.mp4?alt=media&token=10c3fa8a-4510-4984-8247-8036fffe18b3";
            //  filesname.add(filename);
            //  final File output = new File(Uri.parse(filename).getPath());
            String filename = String.format(Environment.getExternalStorageDirectory().getAbsolutePath() + "/" + System.currentTimeMillis() + ".mp4");
            filesname.add(filename);
            final File output = new File(filename);
            startTrim(source, output, startsecond, startsecond + secondinterval);
            startsecond = startsecond + secondinterval + .7;
            secondlength = secondlength - secondinterval;
            Log.e("filename2 in 10", "" + filename);
        } else {
            final File source = new File(files.get(1));
            String filename = String.format(Environment.getExternalStorageDirectory().getAbsolutePath() + "/" + System.currentTimeMillis() + ".mp4");
            filesname.add(filename);
            final File output = new File(filename);
            String DownloadUrl = "https://firebasestorage.googleapis.com/v0/b/*****.appspot.com/o/video_covers%2Fvideo_ornek.mp4?alt=media&token=10c3fa8a-4510-4984-8247-8036fffe18b3";
            DownloadManager.Request request1 = new DownloadManager.Request(Uri.parse(DownloadUrl));
            request1.setDescription("Sample Music File");   //appears the same in Notification bar while downloading
            request1.setTitle("File1.mp3");
            request1.setVisibleInDownloadsUi(false);

            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
                request1.allowScanningByMediaScanner();
                request1.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN);
            }
            request1.setDestinationInExternalFilesDir(getApplicationContext(), "/File", "Question1.mp4");

            DownloadManager manager1 = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);
            Objects.requireNonNull(manager1).enqueue(request1);
            if (DownloadManager.STATUS_SUCCESSFUL == 8) {
                Toast.makeText(AllVideoMerge.this, "success", Toast.LENGTH_SHORT).show();
            }

            startTrim(source, output, startsecond, startsecond + secondlength);
            startsecond = 0;
            secondlength = 0;


            Log.e("filename2", "" + filename);
        }
    }


    


  • Is it possible for me to put a mask over a transparent image with ffmpeg ?

    14 juin 2019, par Pedro Valle

    I’m trying to make an overlay with a mask over a transparent image with ffmpeg, but the background of the image that gets the mask turns black, is there any way to make this background remain transparent ?

    ffmpeg -i background.jpg -loop 1 -i image.png -loop 1 -i mask.png -filter_complex [0]setpts=PTS-STARTPTS,scale=720:720[background];[2]alphaextract,scale=640x320[mask];[1]scale=640x320[image];[image][mask]alphamerge[final_mask];[background][final_mask]overlay=100:100[final] -map [final] -t 00:00:05.000 -y result.mp4
    result

  • there is no sound after adding a logo to a video moviepy

    1er juin 2021, par NKG

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

    


    there is a code bellow

    


    import moviepy.editor as mp


INPUT_FILE_PATH = rf'input\video.mp4'
OUTPUT_FILE_PATH = rf'output\video.mp4'

video = mp.VideoFileClip(INPUT_FILE_PATH)


logo = (mp.ImageClip("logo.png")
        .set_duration(video.duration)
        .resize(width=width / 3)
        .margin(right=width // 20, top=5 * height // 8, opacity=0)  # (optional) logo-border padding
        .set_pos(("right", "top")))

final = mp.CompositeVideoClip([video, logo])


final.write_videofile(OUTPUT_FILE_PATH, fps=30, codec="libx264", audio_fps=22050, audio_bitrate="31k")


    


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