Recherche avancée

Médias (91)

Autres articles (86)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (11855)

  • Converting images to video in Android using FFmpeg

    28 février 2024, par sneha Latha
    val cm = "-f image2 -i \"$imagesFolder/JPEG_08%d_06%d_.jpg\" -vcodec mpeg4 -b 800k output.mp4"


    


    this command is not able to .convert the images into video my images are in the format below :

    


    JPEG_20240228_115618_  
JPEG_20240228_115622_


    


    Im using the below code :

    


        fun convertImagesToVideo(imageList: List<file>, outputVideoPath: String, frameRate: Int) {&#xA;        val inputFiles = imageList.joinToString(" ") { it.absolutePath }&#xA;        val imagesFolder = File(getExternalFilesDir(Environment.DIRECTORY_PICTURES), "camerax")&#xA;&#xA;        val cm = "-f image2 -i \"$imagesFolder/JPEG_08%d_06%d_.jpg\" -vcodec mpeg4 -b 800k output.mp4"&#xA;&#xA;&#xA;        val cmd = arrayOf(&#xA;            "-framerate", frameRate.toString(),&#xA;            inputFiles,&#xA;            "-c:v", "mpeg4",&#xA;            "-pix_fmt", "yuv420p",&#xA;            outputVideoPath&#xA;        ).joinToString(" ")&#xA;&#xA;        executeFfmpegCommand(cm, outputVideoPath)&#xA;    }&#xA;&#xA;    fun executeFfmpegCommand(exe: String, filePath: String) {&#xA;&#xA;        //creating the progress dialog&#xA;        val progressDialog = ProgressDialog(this@FolderListActivity)&#xA;        progressDialog.setCancelable(false)&#xA;        progressDialog.setCanceledOnTouchOutside(false)&#xA;        progressDialog.show()&#xA;&#xA;        /*&#xA;            Here, we have used he Async task to execute our query because if we use the regular method the progress dialog&#xA;            won&#x27;t be visible. This happens because the regular method and progress dialog uses the same thread to execute&#xA;            and as a result only one is a allowed to work at a time.&#xA;            By using we Async task we create a different thread which resolves the issue.&#xA;         */&#xA;        FFmpegKit.executeAsync(exe, { session ->&#xA;            val returnCode = session.returnCode&#xA;            lifecycleScope.launch(Dispatchers.Main) {&#xA;                if (returnCode.isValueSuccess) {&#xA;                    binding.videoView.setVideoPath(filePath)&#xA;                    //change the video_url to filePath, so that we could do more manipulations in the&#xA;                    //resultant video. By this we can apply as many effects as we want in a single video.&#xA;                    //Actually there are multiple videos being formed in storage but while using app it&#xA;                    //feels like we are doing manipulations in only one video&#xA;                    input_video_uri = filePath&#xA;                    //play the result video in VideoView&#xA;                    binding.videoView.start()&#xA;                    progressDialog.dismiss()&#xA;                    Toast.makeText(this@FolderListActivity, "Filter Applied", Toast.LENGTH_SHORT).show()&#xA;                } else {&#xA;                    progressDialog.dismiss()&#xA;                    Log.d("TAG", session.allLogsAsString)&#xA;                    Toast.makeText(this@FolderListActivity, "Something Went Wrong!", Toast.LENGTH_SHORT)&#xA;                        .show()&#xA;                }&#xA;            }&#xA;        }, { log ->&#xA;            lifecycleScope.launch(Dispatchers.Main) {&#xA;                progressDialog.setMessage("Applying Filter..${log.message}")&#xA;            }&#xA;        }) { statistics -> Log.d("STATS", statistics.toString()) }&#xA;    }&#xA;</file>

    &#xA;

  • avformat/movenc : Check pal_size before use

    29 mai 2021, par Michael Niedermayer
    avformat/movenc : Check pal_size before use
    

    Fixes : assertion failure
    Fixes : out of array read
    Fixes : Ticket8190
    Fixes : CVE-2020-22015

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/movenc.c
  • ffmpeg webcam stream on windows to sdl

    17 janvier 2021, par user3705497

    Hi I am trying to display webcam stream on windows.

    &#xA;

    I can use "ffplay" but I want to use "ffmpeg" command.

    &#xA;

    c:\>ffmpeg -f dshow -i video="USB2.0 VGA UVC WebCam" -f sdl test&#xA;ffmpeg version 2020-12-27-git-bff6fbead8-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 10.2.0 (Rev5, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint&#xA;  libavutil      56. 62.100 / 56. 62.100&#xA;  libavcodec     58.115.102 / 58.115.102&#xA;  libavformat    58. 65.100 / 58. 65.100&#xA;  libavdevice    58. 11.103 / 58. 11.103&#xA;  libavfilter     7. 94.100 /  7. 94.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;  libpostproc    55.  8.100 / 55.  8.100&#xA;Input #0, dshow, from &#x27;video=USB2.0 VGA UVC WebCam&#x27;:&#xA;  Duration: N/A, start: 92136.240000, bitrate: N/A&#xA;    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 30 fps, 30 tbr, 10000k tbn, 10000k tbc&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (rawvideo (native) -> rawvideo (native))&#xA;Press [q] to stop, [?] for help&#xA;Output #0, sdl,sdl2, to &#x27;test&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.65.100&#xA;    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422(progressive), 640x480, q=2-31, 147456 kb/s, 30 fps, 30 tbn&#xA;    Metadata:&#xA;      encoder         : Lavc58.115.102 rawvideo&#xA;av_interleaved_write_frame(): Operation not permitted&#xA;frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.03 bitrate=N/A speed=0.448x&#xA;video:600kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;Conversion failed!&#xA;

    &#xA;

    The following works though :

    &#xA;

    ffmpeg -i file.webm -f sdl test&#xA;

    &#xA;

    Any ideas why the failure ?

    &#xA;