Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (79)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (7423)

  • is that possible to serv hls and dash mpeg both at a time

    12 février 2020, par Rahul M

    actually i’m a kind a newbie to the Nginx RTMP server. I had setup my nginx.conf file to accept both hls and dash-mpeg. but the now problem is at a once I can able to serve either of the hls or dash-mpeg. so now my question is that possible to serve both hls and dash-mpeg at the same time for two different videos ? I’m streaming video from OBS Studio.
    here are my MPEG and hls code in nginx.conf file

    rtmp {
    server {
       listen 1935; # Listen on standard RTMP port
       chunk_size 4000;

       application show {
           live on;
           # Turn on HLS
           hls on;
           hls_path /nginx/hls/;
           hls_fragment 3;
           hls_playlist_length 60;
           deny play all;
       }
       application dash {
               live on;
               dash on;
               dash_path /nginx/dash;

       }
    }

    }

    thank you advance.

  • Ffmpeg- Split video into 30 seconds parts in android

    22 novembre 2019, par Corgi Mogi

    I am working on a project. In which I want to split the video into 30 sec equal parts. If the video is 45 sec long than ideally in 30 and 15-sec parts. I already created a method which takes the starting and the ending point and run the Ffmpeg command to cut the video. This is what I created so far

      private void executeCutVideoCommand(int startMs, int endMs) {
           File moviesDir = Environment.getExternalStoragePublicDirectory(
                   Environment.DIRECTORY_MOVIES
           );

           String filePrefix = "cut_video";
           String fileExtn = ".mp4";
           String yourRealPath = getPath(VideoCutterActivity.this, selectedVideoUri);
           File dest = new File(moviesDir, filePrefix + fileExtn);
           int fileNo = 0;
           while (dest.exists()) {
               fileNo++;
               dest = new File(moviesDir, filePrefix + fileNo + fileExtn);
           }

           filePath = dest.getAbsolutePath();
           String[] complexCommand = {"-ss", "" + startMs / 1000, "-y", "-i", yourRealPath, "-t", "" + (endMs - startMs) / 1000,"-vcodec", "mpeg4", "-b:v", "2097152", "-b:a", "48000", "-ac", "2", "-ar", "22050", filePath};

           execFFmpegBinary(complexCommand);
           MediaScannerConnection.scanFile(VideoCutterActivity.this,
                   new String[] { filePath },
                   null,
                   new MediaScannerConnection.OnScanCompletedListener() {

                       public void onScanCompleted(String path, Uri uri) {

                           Log.i("ExternalStorage", "Scanned " + path + ":");
                           Log.i("ExternalStorage", "-> uri=" + uri);
                       }
                   });


       }

       /**
        * Executing ffmpeg binary
        */
       private void execFFmpegBinary(final String[] command) {
           try {
               ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
                   @Override
                   public void onFailure(String s) {
                       Log.d(TAG, "FAILED with output : " + s);
                   }

                   @Override
                   public void onSuccess(String s) {
                       Log.d(TAG, "SUCCESS with output : " + s);
                           Intent intent = new Intent(VideoCutterActivity.this, PreviewActivity.class);
                           intent.putExtra(FILEPATH, filePath);
                           startActivity(intent);
                   }

                   @Override
                   public void onProgress(String s) {
                       progressDialog.setMessage("progress : " + s);
                   }

                   @Override
                   public void onStart() {
                       progressDialog.setMessage("Processing...");
                       progressDialog.show();
                   }

                   @Override
                   public void onFinish() {
                       progressDialog.dismiss();


                   }
               });
           } catch (FFmpegCommandAlreadyRunningException e) {
               // do nothing for now
           }
       }

    i tried to add a loop in method Calling But than app crashes

       cutVideo.setOnClickListener(new View.OnClickListener() {
               @Override
               public void onClick(View v) {

                   choice = 2;

                   if (selectedVideoUri != null) {
                       int start,end;
                       for (int i=0;i<=duration;i=i+30){
                           start=i;
                           end=start+30;
                           executeCutVideoCommand(start,end);

                       }
    //                    executeCutVideoCommand(rangeSeekBar.getSelectedMinValue().intValue() * 1000, rangeSeekBar.getSelectedMaxValue().intValue() * 1000);

                   } else
                       Snackbar.make(mainlayout, "Please upload a video", 4000).show();
               }
           });


       }

    I hope now you can what i want to do. I want to Ffmpeg command or method which split the video into 30-sec parts and place them on the given filepath. Let me know if we you wanna know more about the code. Help is much appreciated

  • mp3/aac trim precision issue

    27 janvier 2020, par Massimo Vantaggio

    Due to mp3/aac codec doesn’t support that level of trim precision so im unable to get rounded container duration (without this 6 ms) :

    ffprobe -v error -show_entries format=duration \
    >   -of default=noprint_wrappers=1:nokey=1 output_audio.mp4
    372.006000

    MP4box generation get 6 ms more for every cycle :

    [...]
    Next generation scheduled in 3895 ms (DASH time 412006 ms)
    [...]
    Next generation scheduled in 3895 ms (DASH time 414012 ms)

    My MP4box command :

    MP4Box -dash-live 2000 -subdur 4000 -bound -segment-timeline -no-cache -profile dashavc264:live -subsegs-per-sidx -1 -mpd-refresh 4 -time-shift 16 -min-buffer 2000 -url-template -insert-utc -bs-switching no -run-for 86400000 -dash-ctx ../../live/log.txt -out ../../live/manifest.mpd ../current/output_1080.mp4:bandwidth=4800000#video ../current/output_720.mp4:bandwidth=2400000#video ../current/output_360.mp4:bandwidth=800000#video ../current/output_audio.mp4:bandwidth=384000#audio

    after 50% of the advertised duration an error will occur (probably)

    I say probably because the time for testing it is very long so may ask if the mp4box command provide for a stable loop or if the error will occur, and if yes, it will occur, may ask an help to debug my command line on mp4box to avoid this issue ?

    Im sorry but trial and error it’s too long since every try is about 24 hours..

    Dash.js web based purpose.

    Thansk in advance !