Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (69)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • 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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (9458)

  • ffmpeg not capture screenshot on siteground

    20 mars 2023, par saddam

    I'm using ffmpeg (v5.1) in laravel with PHP 7.4

    


    //where to save the image  
$new_file_name = time() . '.jpg';
$image = public_path() . '/uploads/images/' . $new_file_name; //Full path of image
$path = public_path() . '/uploads/' . $path;   //Full path of video
//ffmpeg command to find thumbnail from video
$interval = env('PLAEHOLDER_CAPTURE_TIME', 2);  //time to take screenshot at  
$cmd = "ffmpeg -i $path -ss 00:00:01 -vframes 1 $image 2>&1";
exec($cmd, $output);
var_dump($output); 
exit;


    


    It's throwing an error :

    


    


    array(32) [0]=> string(64) "ffmpeg version 5.1 Copyright (c) 2000-2022 the FFmpeg developers" [1]=> string(25) " built with gcc 12 (GCC)" [2]=> string(128) " configuration : —enable-pic —enable-static —disable-ffplay —disable-ffprobe —disable-doc —disable-avdevice —disable-alsa" [3]=> string(40) " libavutil 57. 28.100 / 57. 28.100" [4]=> string(40) " libavcodec 59. 37.100 / 59. 37.100" [5]=> string(40) " libavformat 59. 27.100 / 59. 27.100" [6]=> string(40) " libavfilter 8. 44.100 / 8. 44.100" [7]=> string(40) " libswscale 6. 7.100 / 6. 7.100" [8]=> string(40) " libswresample 4. 7.100 / 4. 7.100" [9]=> string(130) "Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/customer/www/backend.clavora.com/public_html/public/uploads/videos/1679277906.mp4' :" [10]=> string(11) " Metadata :" [11]=> string(26) " major_brand : isom" [12]=> string(25) " minor_version : 512" [13]=> string(39) " compatible_brands : isomiso2avc1mp41" [14]=> string(35) " encoder : Lavf58.45.100" [15]=> string(59) " Duration : 00:00:32.58, start : 0.000000, bitrate : 515 kb/s" [16]=> string(161) " Stream #0:00x1 : Video : h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 576x1024 [SAR 1:1 DAR 9:16], 380 kb/s, 30 fps, 30 tbr, 15360 tbn (default)" [17]=> string(13) " Metadata :" [18]=> string(56) " handler_name : ?Mainconcept Video Media Handler" [19]=> string(36) " vendor_id : [0][0][0][0]" [20]=> string(104) " Stream #0:10x2 : Audio : aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default)" [21]=> string(13) " Metadata :" [22]=> string(60) " handler_name : #Mainconcept MP4 Sound Media Handler" [23]=> string(36) " vendor_id : [0][0][0][0]" [24]=> string(15) "Stream mapping :" [25]=> string(55) " Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))" [26]=> string(31) "Press [q] to stop, [?] for help" [27]=> string(78) "[auto_scale_0 @ 0x564f48c3b180] Failed to configure output pad on auto_scale_0" [28]=> string(29) "Error reinitializing filters !" [29]=> string(76) "Failed to inject frame into filter network : Resource temporarily unavailable" [30]=> string(55) "Error while processing the decoded data for stream #0:0" [31]=> string(18) "Conversion failed !"

    


    


  • How to play HDR10 videos using ffplay and ffmpeg ?

    6 janvier 2023, par befandy

    I'm trying to play on Windows a HDR10 video. My display support 10 bits HDR content.
The command that I'm using to play the HDR10 video is the following.
ffplay -sws_flags print_info -i video.mp4

    


    But the output looks washed out.

    


    the log are the following :

    


    ffplay version 2022-03-28-git-5ee198f9aa-full_build-www.gyan.dev Copyright (c) 2003-2022 the FFmpeg developers built with gcc 11.2.0 (Rev7, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --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-libshaderc --enable-vulkan --enable-libplacebo --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 libavutil      57. 24.101 / 57. 24.101 libavcodec     59. 25.100 / 59. 25.100 libavformat    59. 20.101 / 59. 20.101 libavdevice    59.  6.100 / 59.  6.100 libavfilter     8. 29.100 /  8. 29.100 libswscale      6.  6.100 /  6.  6.100 libswresample   4.  6.100 /  4.  6.100 libpostproc    56.  5.100 / 56.  5.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':=0/0 Metadata: major_brand     : isom minor_version   : 512 compatible_brands: isomiso2mp41 encoder         : Lavf58.29.100 Duration: 00:00:08.78, start: 0.000000, bitrate: 159424 kb/s Stream #0:0[0x1](und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv, bt2020nc/bt2020/smpte2084, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 159427 kb/s, 60 fps, 60 tbr, 15360 tbn (default) Metadata: handler_name    : VideoHandler vendor_id       : [0][0][0][0] [swscaler @ 000001d62a81d000] [swscaler @ 000001d622aebf80] bicubic scaler, from yuv420p10le to yuv420p using MMXEXT [swscaler @ 000001d62a81d000] [swscaler @ 000001d622aebf80] using unscaled yuv420p10le -> yuv420p special converter [swscaler @ 000001d62a81d000] [swscaler @ 000001d635638600] bicubic scaler, from yuv420p10le to yuv420p using MMXEXT [swscaler @ 000001d62a81d000] [swscaler @ 000001d635638600] using unscaled yuv420p10le -> yuv420p special converter [swscaler @ 000001d62a81d000] [swscaler @ 000001d635661d80] bicubic scaler, from yuv420p10le to yuv420p using MMXEXT [swscaler @ 000001d62a81d000] [swscaler @ 000001d635661d80] using unscaled yuv420p10le -> yuv420p special converter [swscaler @ 000001d62a81d000] [swscaler @ 000001d63567df80] bicubic scaler, from yuv420p10le to yuv420p using MMXEXT [swscaler @ 000001d62a81d000] [swscaler @ 000001d63567df80] using unscaled yuv420p10le -> yuv420p special converter [swscaler @ 000001d62a81d000] [swscaler @ 000001d6356bbf80] bicubic scaler, from yuv420p10le to yuv420p using MMXEXT 3.44 M-V:  0.204 fd=  91 aq=    0KB vq=15552KB sq=    0B f=0/0

    


    With the help of '-sws_flags print_info' flag we can see that there is a downscaling happening from 10 bits to 8 bits "yuv420p10le -> yuv420p"

    


    I have try to play the video using VLC and it is working fine on my display : colour are vivid and display bright.

    


    I have also try to decode first the video and then past metadata directly to ffplay as follow.
Decoding to yuv format with : ffmpeg -i video.mp4 video.yuv
Then play yuv file : ffplay -framerate 60 -video_size 3840x2160 -pixel_format yuv420p10le -color_range tv -color_trc smpte2084 -color_primaries bt2020 -colorspace bt2020nc -i video.yuv

    


    But the result is the same washed out color and "yuv420p10le -> yuv420p" conversion

    


    Is there a way to play a HDR video (encoded or decoded stream) with ffplay ?

    


  • Python FFmpeg Video Streaming : how to capture multiple representations with camera

    17 janvier 2023, par LUKA TADIĆ

    I am trying to capture webcam stream and make HLS stream. I managed to create HLS stream for one Representation but when I try to create (hls.output) more than one, I get this error :

    


    C:\Users\ltadic\Desktop\hls stream>C:/Users/ltadic/AppData/Local/Programs/Python/Python311/python.exe "c:/Users/ltadic/Desktop/hls stream/camera_stream.py"&#xA;ERROR:root:ffmpeg failed to execute command: b"ffmpeg version 2022-12-11-git-c3e20f78b0-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers\r\n  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)\r\n &#xA; configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --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\r\n  libavutil      57. 43.100 / 57. 43.100\r\n  libavcodec     59. 55.100 / 59. 55.100\r\n  libavformat    59. 34.102 / 59. 34.102\r\n  libavdevice    59.  8.101 / 59.  8.101\r\n  libavfilter     8. 52.100 /  8. 52.100\r\n  libswscale      6.  8.112 /  6.  8.112\r\n  libswresample   4.  9.100 /  4.  9.100\r\n  libpostproc    56.  7.100 / 56.  7.100\r\nInput #0, dshow, from &#x27;video=Fantech Luminous C30&#x27;:\r\n  Duration: N/A, start: 1593.585118, bitrate: N/A\r\n  Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D), yuvj420p(pc, bt470bg/bt709/unknown), 1920x1080, 25 fps, 25 tbr, 10000k tbn\r\n[dshow @ 0000018b1c4d4280] Could not run graph (sometimes caused by a device already in use by other application)\r\nvideo=Fantech Luminous C30: I/O error\r\n"&#xA;Traceback (most recent call last):&#xA;  File "c:\Users\ltadic\Desktop\hls stream\camera_stream.py", line 13, in <module>&#xA;    hls.output(&#x27;C:\\Users\\ltadic\\Desktop\\camera_stream\\hls1.m3u8&#x27;)&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_streaming\_media.py", line 93, in output&#xA;    self.run(ffmpeg_bin, monitor, **options)&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_streaming\_media.py", line 121, in run  &#xA;    asyncio.run(self.async_run(ffmpeg_bin, monitor, **options))&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run&#xA;    return runner.run(main)&#xA;           ^^^^^^^^^^^^^^^^&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run&#xA;    return self._loop.run_until_complete(task)&#xA;           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete&#xA;    return future.result()&#xA;           ^^^^^^^^^^^^^^^&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_streaming\_media.py", line 112, in async_run&#xA;    self._run(ffmpeg_bin, monitor, **options)&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_streaming\_media.py", line 106, in _run&#xA;    self.pipe, err = process.run()&#xA;</module>

    &#xA;

    This is my code :

    &#xA;

    import ffmpeg_streaming&#xA;from ffmpeg_streaming import Formats,Bitrate, Representation, Size &#xA;&#xA;video = ffmpeg_streaming.input(&#x27;Fantech Luminous C30&#x27;, capture = True)&#xA;&#xA;_360p  = Representation(Size(640, 360), Bitrate(276 * 1024, 128 * 1024))&#xA;_480p  = Representation(Size(854, 480), Bitrate(750 * 1024, 192 * 1024))&#xA;_720p  = Representation(Size(1280, 720), Bitrate(2048 * 1024, 320 * 1024))&#xA;&#xA;hls = video.hls(Formats.h264(),hls_list_size=10, hls_time=5)&#xA;hls.flags(&#x27;delete_segments&#x27;)&#xA;hls.representations(_360p, _480p, _720p)&#xA;hls.output(&#x27;C:\\Users\\ltadic\\Desktop\\camera_stream\\hls1.m3u8&#x27;)&#xA;&#xA;

    &#xA;