Recherche avancée

Médias (0)

Mot : - Tags -/logo

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

Autres articles (44)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Prérequis à l’installation

    31 janvier 2010, par

    Préambule
    Cet article n’a pas pour but de détailler les installations de ces logiciels mais plutôt de donner des informations sur leur configuration spécifique.
    Avant toute chose SPIPMotion tout comme MediaSPIP est fait pour tourner sur des distributions Linux de type Debian ou dérivées (Ubuntu...). Les documentations de ce site se réfèrent donc à ces distributions. Il est également possible de l’utiliser sur d’autres distributions Linux mais aucune garantie de bon fonctionnement n’est possible.
    Il (...)

Sur d’autres sites (4050)

  • 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);
        }
    }


    


  • Trim Audio Flutter ( ffmpeg_kit_flutter Package) Not Working

    23 septembre 2024, par Sharath Appesh

    Audio Trim is not working

    


    Flutter Version : 3.0.2
Dart : 2.17.3

    


    Package used :
ffmpeg_kit_flutter : ^4.5.1

    


    Input file path :
"/data/user/0/com.goonetech.v1.gofinal/cache/file_picker/sample-15s.mp3"

    


    Output file path :
"/data/user/0/com.goonetech.v1.gofinal/app_flutter/output.mp3"

    


    &#xA;double start=2, &#xA;double end=5;&#xA;&#xA;String path="/data/user/0/com.goonetech.v1.gofinal/cache/file_picker/sample-15s.mp3"&#xA;&#xA;&#xA;    static Future<string> cutAudio(String path, double start, double end) async {&#xA;    final Directory dir = await getApplicationDocumentsDirectory();&#xA;    final outPath = "${dir.path}/output.mp3";&#xA;    double start = 1;&#xA;    double end = 5;&#xA;&#xA;    try &#xA;{&#xA;      await File(outPath).delete();&#xA;    } catch (e) {&#xA;      print("Delete Error");&#xA;    }&#xA;&#xA;    var cmd =&#xA;        "-y -i \"$path\" -vn -ss $start -to $end -ar 16k -ac 2 -b:a 96k -acodec libmp3lame $outPath";&#xA;&#xA;    FFmpegKit.executeAsync(cmd, (session) async {&#xA;      final returnCode = await session.getReturnCode();&#xA;      print("returnCode $returnCode");&#xA;    });&#xA;&#xA;    return outPath;&#xA;  }&#xA;&#xA;</string>

    &#xA;

    The output is :&#xA;returnCode 1

    &#xA;

    The output path does not have the file (File not found exception)

    &#xA;

  • Concatenate audio files using ffmpeg

    4 juin 2021, par user13962029

    I am trying to concatenate ac3 and aac using ffmpeg.

    &#xA;

    ffprobe of jpn_op.m4a :

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;jpn_op.m4a&#x27;:&#xA;Metadata:&#xA;major_brand     : M4A &#xA;minor_version   : 512&#xA;compatible_brands: M4A isomiso2&#xA;encoder         : Lavf58.76.100&#xA;Duration: 00:01:17.28, start: 0.000000, bitrate: 224 kb/s&#xA;Stream #0:0(jpn): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 224 kb/s (default)&#xA;Metadata:&#xA;  handler_name    : SoundHandler&#xA;  vendor_id       : [0][0][0][0]&#xA;Side data:&#xA;  audio service type: main&#xA;

    &#xA;

    ffprobe of eng_nop.m4a

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;eng_nop.m4a&#x27;:&#xA;Metadata:&#xA;major_brand     : M4A &#xA;minor_version   : 512&#xA;compatible_brands: M4A isomiso2&#xA;encoder         : Lavf58.76.100&#xA;Duration: 00:22:09.26, start: 0.023000, bitrate: 41 kb/s&#xA;Stream #0:0(und): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 39 kb/s (default)&#xA;Metadata:&#xA;  handler_name    : SoundHandler&#xA;  vendor_id       : [0][0][0][0]&#xA;

    &#xA;

    I tried this :

    &#xA;

    ffmpeg -f concat -i concat_files.txt -c copy final.m4a -y&#xA;

    &#xA;

    concat_files.txt contains :

    &#xA;

    file &#x27;jpn_op.m4a&#x27;&#xA;file &#x27;eng_nop.m4a&#x27;&#xA;

    &#xA;

    ffprobe of final.m4a

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;final.m4a&#x27;:&#xA;Metadata:&#xA;major_brand     : M4A &#xA;minor_version   : 512&#xA;compatible_brands: M4A isomiso2&#xA;encoder         : Lavf58.76.100&#xA;Duration: 00:23:26.50, start: 0.000000, bitrate: 51 kb/s&#xA;Stream #0:0(jpn): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 224 kb/s (default)&#xA;Metadata:&#xA;  handler_name    : SoundHandler&#xA;  vendor_id       : [0][0][0][0]&#xA;Side data:&#xA;  audio service type: main&#xA;

    &#xA;

    But, there is silent in place of 2nd file in final.m4a

    &#xA;