Recherche avancée

Médias (0)

Mot : - Tags -/serveur

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

Autres articles (41)

  • 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

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

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (7829)

  • Combining Youtube-dl and FFMPEG not working

    13 juillet 2019, par user1029296

    I am trying to download 5 second samples for a list of youtube video. The traditional approach is to download the entire file with "youtube-dl" and then use "ffmpeg" to split it however you want it.

    I am trying to use the following method : https://github.com/ytdl-org/youtube-dl/issues/622#issuecomment-162337869

    It does work when I include the variables in the command, for example :

    ffmpeg -ss 0 -i $(youtube-dl -f best --get-url https://www.youtube.com/watch?v=ySVi-0RS5vI&t=5s) -t 10 -c:v copy -c:a copy title2.mp4

    However, I am having issues trying to automate the system. Specifically, I would like ffmpeg and youtube-dl to read a file and use the values. I created the file "youtube.txt" which includes the following codes :

    440.8,https://www.youtube.com/watch?v=0-4wOE_DNeA,661.2,881.6,0-4wOE_DNeA
    330,https://www.youtube.com/watch?v=0-AMWW6tHzw,495,660,0-AMWW6tHzw
    509.2,https://www.youtube.com/watch?v=0-Rmto2rgMw,763.8,1018.4,0-Rmto2rgMw
    427.6,https://www.youtube.com/watch?v=0-U53qm45cA,641.4,855.2,0-U53qm45cA
    320.4,https://www.youtube.com/watch?v=0-dja9Ys4Sg,480.6,640.8,0-dja9Ys4Sg
    343.6,https://www.youtube.com/watch?v=0-g_PulsqtM,515.4,687.2,0-g_PulsqtM
    415.6,https://www.youtube.com/watch?v=0-nniRyn7dU,623.4,831.2,0-nniRyn7dU
    431.2,https://www.youtube.com/watch?v=006BQU3BFxw,646.8,862.4,006BQU3BFxw

    I am using the following command :

    parallel -j 6 --colsep ',' ffmpeg -ss {1} -i $(youtube-dl -f best --get-url {2}) --t 5 -c:v copy -c:a copy {5} :::: youtube.txt

    However, I get the following errors :

    ERROR: '{2}' is not a valid URL. Set --default-search "ytsearch" (or run  youtube-dl "ytsearch:{2}" ) to search YouTube
    --t: No such file or directory

    Would you mind helping me ?

    Thanks !

  • Can not get frames from youtube video using FFmpegMediaMetadataRetriever

    27 juin 2019, par Ahasan Ratul

    I have been trying to extract a frame from a youtube video using FFmpegMediaMetadataRetriever in my android studio project. whenever I use the youtube url inside setDataSource, the app crashes. I am totally new in android studio and haven’t worked with FFmpeg before. I would appreciate if anyone can help me out. Also, I am sorry if I have asked a really silly/easy question.

    import wseemann.media.FFmpegMediaMetadataRetriever;
    .....

    private BaseLoaderCallback mLoaderCallback = new BaseLoaderCallback(this) {
       @Override
       public void onManagerConnected(int status) {
           switch (status) {
               case LoaderCallbackInterface.SUCCESS: {
                   Log.i(TAG, "OpenCV loaded successfully");
                   mOpenCvCameraView.enableView();
                   try {
                       initializeOpenCVDependencies();
                   } catch (IOException e) {
                       e.printStackTrace();
                   }
               }
               break;
               default: {
                   super.onManagerConnected(status);
               }
               break;
           }
       }
    };


    private void initializeOpenCVDependencies() throws IOException {

       tick =0;
      //extract frame at 2 second using FFmpegMediaMetadataRetriever
       FFmpegMediaMetadataRetriever mmr = new FFmpegMediaMetadataRetriever();
       mmr.setDataSource("https://youtu.be/f-ehTcWC6dc");
       Bitmap b = mmr.getFrameAtTime(2000000, FFmpegMediaMetadataRetriever.OPTION_CLOSEST);
       mmr.release();

       objMat = new MatOfPoint2f();
       sceneMat = new MatOfPoint2f();
       obj_corners = new Mat(4, 1, CvType.CV_32FC2);
       img = new Mat();
       img2 = new Mat();
    }

    in the build.gradle, I have added the following dependencies

    dependencies {

          //FFmpegMediaMetadataRetriever dependencies
          implementation 'com.github.wseemann:FFmpegMediaMetadataRetriever:1.0.14'

          implementation project(path: ':openCVLibrary340dev')
    }

    error that I get is :

    E/AndroidRuntime : FATAL EXCEPTION : main
    Process : com.example.jeverfun, PID : 8877
    java.lang.RuntimeException : Unable to resume activity com.example.jeverfun/com.example.jeverfun.jevercamera : java.lang.IllegalArgumentException : setDataSource failed : status = 0xFFFFFFFF
    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3581)
    at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3621)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2862)
    at android.app.ActivityThread.-wrap11(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6494)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
    Caused by : java.lang.IllegalArgumentException : setDataSource failed : status = 0xFFFFFFFF
    at wseemann.media.FFmpegMediaMetadataRetriever.setDataSource(Native Method)
    at com.example.jeverfun.jevercamera.initializeOpenCVDependencies(jevercamera.java:373)
    at com.example.jeverfun.jevercamera.access$100(jevercamera.java:59)
    at com.example.jeverfun.jevercamera$1.onManagerConnected(jevercamera.java:347)
    at com.example.jeverfun.jevercamera.onResume(jevercamera.java:469)
    at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1355)
    at android.app.Activity.performResume(Activity.java:7117)
    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3556)
    at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3621) 
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2862) 
    at android.app.ActivityThread.-wrap11(Unknown Source:0) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) 
    at android.os.Handler.dispatchMessage(Handler.java:106) 
    at android.os.Looper.loop(Looper.java:164) 
    at android.app.ActivityThread.main(ActivityThread.java:6494) 
    at java.lang.reflect.Method.invoke(Native Method) 
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 
    I/MediaMetadataRetrieverJNI : release
    Application terminated.

  • Streaming opencv to youtube with ffmpeg

    29 juin 2020, par Tim Treurniet

    I am trying to live stream to youtube from a c++ opencv project. Currently, my program outputs a RTMP stream which nginx should push to youtube. A problem I'm having is youtube's requirement for an audio stream.

    


    I'm trying a workaround by restreaming using ffmpeg. It adds an empty audio stream (not efficient). Another issue is the output speed of my program which is around 10 fps. When playing in vlc or youtube, the stream buffers for a while and plays a few seconds of smooth video. How should I set this up in c++ to play a constant stream with lower fps, including an empty audio stream ?
Example I used : https://github.com/andreanobile/opencv_ffmpeg_streaming

    


    FFMPEG for adding audio :
ffmpeg -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -hwaccel cuvid -i rtmp ://localhost/live -vf scale=3840:2160 -c:v h264_nvenc -preset fast -maxrate 6000k -pix_fmt yuv420p -g 50 -b:a 160k -ac 2 -c:a aac -f flv rtmp ://a.rtmp.youtube.com/live2/