Recherche avancée

Médias (1)

Mot : - Tags -/ogv

Autres articles (78)

  • 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 : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (4931)

  • How to set dateTime over captured video in android ?

    3 février 2016, par Anish Kumar

    I’m developing a project with camera activity. I need to set current date and Time to the video which I captured and compress and save it in SD Card. I searched a lot in Google, but I am unable to achieve this.

    Here is my Code

    private void recordVideo() {
       Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);

       fileUri = getOutputMediaFileUri(MEDIA_TYPE_VIDEO);

       // set video quality
       intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0);
      intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT,10);
       intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // set the image file
       // name

       // start the video capture Intent
       startActivityForResult(intent, CAMERA_CAPTURE_VIDEO_REQUEST_CODE);
    }
       protected void onActivityResult(int requestCode, int resultCode, Intent data) {
       if (requestCode == CAMERA_CAPTURE_VIDEO_REQUEST_CODE) {
           if (resultCode == RESULT_OK) {

               pass=fileUri;

               try
               {
                   b = ThumbnailUtils.createVideoThumbnail(fileUri.getPath(), MediaStore.Video.Thumbnails.MICRO_KIND);
               }
               catch (Exception e)
               {
                   Log.e("EXX",e.getMessage());
                   Toast.makeText(getApplicationContext(),"Uri is empty", Toast.LENGTH_SHORT).show();
               }
           if (b == null)
           {
               cvideo.setImageResource(R.drawable.video);
               ipreview.setVisibility(View.INVISIBLE);
               Toast.makeText(getApplicationContext(),
                       "Unable to set Thumbnail ", Toast.LENGTH_SHORT)
                       .show();

           } else {
               cvideo.setImageBitmap(b);
               LoadJNI vk = new LoadJNI();
               try {
                   String workFolder = getApplicationContext().getFilesDir().getAbsolutePath();
                   String[] complexCommand = {"ffmpeg","-i", fileUri.getPath()};
                   vk.run(complexCommand, workFolder, getApplicationContext());
                   Log.i("test", "ffmpeg4android finished successfully");
               } catch (Throwable e) {
                   Log.e("test", "vk run exception.", e);
               }
              tphoto.setImageResource(R.drawable.camera1);
               ipreview.setVisibility(View.VISIBLE);
               //flag=1;
           }
           } else if (resultCode == RESULT_CANCELED) {
               // user cancelled recording
               Toast.makeText(getApplicationContext(),
                       "User cancelled video recording", Toast.LENGTH_SHORT)
                       .show();
           } else {
               // failed to record video
               Toast.makeText(getApplicationContext(),
                       "Sorry! Failed to record video", Toast.LENGTH_SHORT)
                       .show();
           }
       }

    I did the same concept in Captured Image, I used Canvas to draw date Time over image and saved in SD Card. But I don’t know how to perform this task.

  • FFMPEG & OPENGL - RAW Frames

    27 mars 2015, par Marco Reisacher

    I’m building a recorder using a BlackMagic DeckLink Card.
    The program is using OpenGL to display the Frames and FFMPEG (with the glReadPixels() method) to record them.
    I’m setting the viewport in my program to apply a automatic letter-/pillarbox whether the Image/Monitor is 16:9/4:3.
    The problem with that ist that when i capture these frames of this viewport they get of course recorded in the resolution my viewport is (i.e. Full Hd source -> viewport due to monitor with 1600x1200 resolution -> letterbox down to 1600x900) and so FFMPEG records those 1600x1200 with black bars at the top/bottom.

    Is there any possibility to grab the RAW Frame before it gets passed trough the setViewport function and all the rescaling stuff ?

  • FFMPEG & HW Acceleration Unable to find a suitable output format for 'cuda' ?

    10 juillet 2022, par user2522885

    I'm curious about FFMPEG and GPU hardware acceleration. My Windows 10 system uses the Asus / nVidia GTX 760 graphics card and Intel i5-2500K CPU. My graphics card claims to be of the Kepler architecture with CUDA 3.0 as shown here.

    


    Instead of going through the hassles of compiling FFMPEG with hw acceleration support i downloaded a pre-compiled binary from here and here.

    


    Next, i tried running a test with hw acceleration options as recommended here :

    


    ffmpeg -y -vsync 0 -i "input.mkv" -hwaccel cuda -hwaccel_output_format cuda -c:a copy -c:v h264_nvenc "output.mp4"


    


    I then received the error message :

    


    


    [NULL @ 000002257f4af540] Unable to find a suitable output format for 'cuda'

    


    cuda : Invalid argument

    


    


    What am i doing wrong ? For the record i install the CUDA setup file but it made no difference. I am using the latest nVidia drivers.

    


    UPDATE

    


    I modified the line to :

    


    ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i "input.mkv" -c:a copy -c:v h264_nvenc "output.mp4" 


    


    The new error message is :

    


    


    [h264_nvenc @ 00000191f5c8d400] Lossless encoding not supported

    


    [h264_nvenc @ 00000191f5c8d400] Provided device doesn't support required NVENC features Error initializing output stream 0:0 — Error
while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height