Recherche avancée

Médias (0)

Mot : - Tags -/médias

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

Autres articles (83)

  • 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

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (3889)

  • Trying to convert a VideoCD MPEG to MP4 using ffmpeg

    27 février 2023, par Niels Bosma

    I'm trying to convert a VideoCD MPEG to MP4 using :

    


    FFMPEG 5.1

    


    ffmpeg.exe -nostdin -y -loglevel info -hide_banner -i "ITEM0010.DAT" -c:v libx264 -crf 18 -qscale:v 3  -c:a aac -ar 96000 -map_metadata -1 "output.mp4"


    


    I'm getting :

    


    [mpeg @ 0000024b81bf4480] start time for stream 1 is not set in estimate_timings_from_pts
[mpeg @ 0000024b81bf4480] stream 1 : no TS found at start of file, duration not set
[mpeg @ 0000024b81bf4480] Could not find codec parameters for stream 1 (Audio: mp2, 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, mpeg, from 'C:\Concierge\ITEM0010.DAT':
  Stream #0:1[0x1c0]: Audio: mp2, 0 channels, s16p
  Stream #0:2[0x1e2]: Video: mpeg1video, yuv420p(tv), 704x576 [SAR 178:163 DAR 1958:1467], 1100 kb/s, 25 tbr, 90k tbn
Stream mapping:
  Stream #0:2 -> #0:0 (mpeg1video (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (mp2 (native) -> aac (native))
[libx264 @ 0000024b81c86000] -qscale is ignored, -crf is recommended.
[libx264 @ 0000024b81c86000] using SAR=178/163
[libx264 @ 0000024b81c86000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0000024b81c86000] profile High, level 3.0, 4:2:0, 8-bit
[libx264 @ 0000024b81c86000] 264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[abuffer @ 0000024b84979880] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09]
    Last message repeated 1 times
[abuffer @ 0000024b84979880] Error setting option time_base to value 1/0.
[graph_1_in_0_1 @ 0000024b85187c00] Error applying options to the filter.
Error reinitializing filters!
Error while filtering: Result too large
Finishing stream 0:1 without any data written to it.
[abuffer @ 0000024b84979880] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09]
    Last message repeated 1 times
[abuffer @ 0000024b84979880] Error setting option time_base to value 1/0.
[graph_1_in_0_1 @ 0000024b85186b00] Error applying options to the filter.
Error configuring filter graph
[libx264 @ 0000024b81c86000] frame I:1     Avg QP:22.68  size: 40674
[libx264 @ 0000024b81c86000] mb I  I16..4:  3.8% 72.3% 23.9%
[libx264 @ 0000024b81c86000] 8x8 transform intra:72.3%
[libx264 @ 0000024b81c86000] coded y,uvDC,uvAC intra: 88.4% 81.1% 50.3%
[libx264 @ 0000024b81c86000] i16 v,h,dc,p: 43% 13%  0% 43%
[libx264 @ 0000024b81c86000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 16% 20%  5%  5%  6%  5%  7%  6%
[libx264 @ 0000024b81c86000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 20%  8%  5%  9%  8%  8%  6%  4%
[libx264 @ 0000024b81c86000] i8c dc,h,v,p: 42% 23% 28%  7%
[libx264 @ 0000024b


    


    81c86000] kb/s:8134.80
Conversion failed !

    


    The same command using FFMPEG 4.1 works fine.

    


  • How to generate HLS stream multiple qualities (Representations) while capturing webcam

    27 janvier 2023, par LUKA TADIĆ

    I want to generate multiple qualities (Representations) for HLS stream while capturing from webcam. I am using ffmpeg_streaming python package. I can generate one quality (Representation) at a time, but when i try to generate 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 the 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;

    I was expecting to get _360p, _480p and _720p qualities, but my program crashes. If I try same thing for DASH stream, I generate these qualities without any problem.

    &#xA;

  • Python FFmpeg Video Streaming : how to capture multiple representations (resolutions) with webcam

    11 avril 2024, par LUKA TADIĆ

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

    &#xA;

    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;