Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (88)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

Sur d’autres sites (13772)

  • Broadcast webcamer over ffserver and ffmpeg

    8 février 2019, par AkBako

    I setup the ffserver on Ubuntu 16.04 UPU. I did some streami from a .webm video fileы to the site. Now I can’t start streaming from the webcam of my laptop and show it on the website. Please need help.

    Technical info :

    Client-site:Windows 10

    WebCamera : YUV 4:2:2 640x480 fps 30.0

    Server-site : VPS Server Ubuntu 16.04

    ffserver.conf

    HTTPPort 8090
    HTTPBindAddress 0.0.0.0
    MaxHTTPConnections 2000
    MaxClients 1000
    MaxBandwidth 500000
    CustomLog -
    NoDaemon
    RTSPPort 7654
    RTSPBindAddress 0.0.0.0
    <feed>               # This is the input feed where FFmpeg will send
      File ./feed1.ffm            # video stream.
      FileMaxSize 1G              # Maximum file size for buffering video
    </feed>

    <stream>
       Feed feed1.ffm
       Format webm
       # Audio settings
       AudioCodec vorbis
       AudioBitRate 64             # Audio bitrate

       # Video settings
       VideoCodec libvpx
       VideoSize 640x480          # Video resolution
       VideoFrameRate 30           # Video FPS
       AVOptionVideo flags +global_header  # Parameters passed to encoder
                                          # (same as ffmpeg command-line parameters)
       AVOptionVideo cpu-used 0
       AVOptionVideo qmin 10
       AVOptionVideo qmax 42
       AVOptionVideo quality good
       AVOptionAudio flags +global_header
       PreRoll 15
       StartSendOnKey
       VideoBitRate 400
    </stream>

    <stream>
     Format status
     # Only allow local people to get the status
     ACL allow localhost
     ACL allow 192.168.0.0 192.168.255.255
    </stream>

    <redirect>    # Just an URL redirect for index
      # Redirect index.html to the appropriate site
      URL http://XX.XXX.XXX.XXX
    </redirect>

    Run code on Windows :

    ffmpeg -f dshow -i video="USB2.0 HD UVC WebCam" -video_size 640x480 -rtbufsize 702000k -framerate 30 -pixel_format yuyv422 -f mpegts http://XXX.XXX.XX.XX:8090/feed1.ffm

    Error message on Windows :

    Input #0, dshow, from 'video=USB2.0 HD UVC WebCam':
     Duration: N/A, start: 5326.566000, bitrate: N/A
       Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, 30 fps, 30 tbr, 10000k tbn, 10000k tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg2video (native))
    Press [q] to stop, [?] for help
    [swscaler @ 06e5a000] deprecated pixel format used, make sure you did set range correctly
    Output #0, mpegts, to 'http://95.183.11.180:8090/feed1.ffm':
     Metadata:
       encoder         : Lavf58.24.101
       Stream #0:0: Video: mpeg2video (4:2:2), yuv422p, 1280x720, q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc
       Metadata:
         encoder         : Lavc58.42.103 mpeg2video
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    av_interleaved_write_frame(): Unknown error
    Error writing trailer of http://95.183.11.180:8090/feed1.ffm: Error number -10054 occurred
    frame=    3 fps=0.0 q=1.6 Lsize=      46kB time=00:00:00.00 bitrate=34318545.5kbits/s speed=9.07e-05x
    video:84kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    [http @ 06dd5c00] URL read error:  -10054
    Conversion failed!

    FFserver log :

    Fri Feb  8 03:14:58 2019 178.88.140.182 - - [POST] "/feed1.ffm HTTP/1.1" 200 4096
  • FFmpeg auto rotate video when copying video stream without re-encoding

    25 février 2019, par Mahfujur Rahman

    I have been trying to convert an mp4 (portrait) file to mkv. As the mkv container support any video and audio stream, I am copying the audio and video stream to the output container. The command I’m using

    ffmpeg -y -i test.mp4 -vcodec copy -acodec copy test.mkv

    File info for test.mp4 is following

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2019-02-23T11:18:50.000000Z
       com.android.version: 8.0.0
     Duration: 00:00:25.86, start: 0.000000, bitrate: 12270 kb/s
       Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 12005 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         rotate          : 90
         creation_time   : 2019-02-23T11:18:50.000000Z
         handler_name    : VideoHandle
       Side data:
         displaymatrix: rotation of -90.00 degrees
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
       Metadata:
         creation_time   : 2019-02-23T11:18:50.000000Z
         handler_name    : SoundHandle

    Now, the problem is that the output video I get from ffmpeg is a 90 degree counter clockwise rotated video. The reason I believe is the following info being removed from output file,

    Side data:
    displaymatrix: rotation of -90.00 degrees

    File info for rotated output file test.mkv

    Input #0, matroska,webm, from 'test.mkv':
     Metadata:
       MAJOR_BRAND     : mp42
       MINOR_VERSION   : 0
       COMPATIBLE_BRANDS: isommp42
       COM.ANDROID.VERSION: 8.0.0
       ENCODER         : Lavf58.12.100
     Duration: 00:00:25.87, start: 0.000000, bitrate: 12265 kb/s
       Stream #0:0(eng): Video: h264, yuv420p(tv, bt709, progressive), 1280x720, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 2k tbc (default)
       Metadata:
         ROTATE          : 90
         HANDLER_NAME    : VideoHandle
         DURATION        : 00:00:25.866000000
       Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, fltp (default)
       Metadata:
         HANDLER_NAME    : SoundHandle
         DURATION        : 00:00:25.813000000

    But when I convert this rotated output test.mkv to mp4 again, I get the portrait file. The displaymatrix side data appears again in the file info.

    Converting the same mp4 file to m4v by copying the steam works fine.

    So, this whole thing is very much confusing to me.

    Now my question is, how can I convert the mp4 file to mkv without re-encoding and avoid getting rotated output ?

    In this post they solved it for c++. I am working on android and using ffmpeg android wrapper to use the ffmpeg library. Is there any ffmpeg flag to handle this situation ?

  • Ffmpeg frame extraction with Nvidia GPU acceleration throws "Output file #0 does not contain any stream"

    16 mai 2020, par nickthefreak

    I am trying to use nvidia gpu accelerated decoder api with ffmpeg, to extract all frames from a video file (.MTS) to a folder, but it looks like it's failing for some reason ; I could not find an answer or similar issues.

    &#xA;&#xA;

    Command used :

    &#xA;&#xA;

    ffmpeg -vsync 0 -hwaccel cuvid -c:v mpeg2_cuvid -i raw_video.MTS -q:v 2 -f image2 output_folder/image_%05d.jpg

    &#xA;&#xA;

    Traceback :

    &#xA;&#xA;

    ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with gcc 9.3.0 (Arch Linux 9.3.0-1)&#xA;  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;[mpegts @ 0x563fcc5616c0] start time for stream 0 is not set in estimate_timings_from_pts&#xA;[mpegts @ 0x563fcc5616c0] PES packet size mismatch&#xA;[mpegts @ 0x563fcc5616c0] Could not find codec parameters for stream 0 (Video: mpeg2video (HDMV / 0x564D4448), none(tv)): unspecified size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;Input #0, mpegts, from &#x27;raw_video.MTS&#x27;:&#xA;  Duration: 00:07:15.68, start: 1010.210356, bitrate: 41186 kb/s&#xA;  Program 1 &#xA;    Stream #0:0[0x1011]: Video: mpeg2video (HDMV / 0x564D4448), none(tv), 90k tbr, 90k tbn, 90k tbc&#xA;    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 256 kb/s&#xA;    Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080&#xA;Output #0, image2, to &#x27;output_folder/image_%05d.jpg&#x27;:&#xA;Output file #0 does not contain any stream&#xA;

    &#xA;&#xA;

    I am pretty sure -hwaccel cuvid -c:v mpeg2_cuvid is correct as the file type seems to be MPEG-2 in the file properties, but similar issues happen with the other cuvid decoders as well :

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    I have also tried to run without -c:v flag but then a cuda error is raised and it runs on the cpu :

    &#xA;&#xA;

    [h264 @ 0x55949e6d7e00] decoder->cvdl->cuvidCreateDecoder(&amp;decoder->decoder, params) failed -> CUDA_ERROR_INVALID_VALUE: invalid argument&#xA;[h264 @ 0x55949e6d7e00] Failed setup for format cuda: hwaccel initialisation returned error.

    &#xA;&#xA;

    Any help will be much appreciated.

    &#xA;&#xA;

    Edit :

    &#xA;&#xA;

      &#xA;
    • OS : Arch Linux
    • &#xA;

    • GPU : Nvidia 1050Ti
    • &#xA;

    • CUDA Version : 10.2
    • &#xA;

    • NVIDIA-SMI : 440.82
    • &#xA;

    &#xA;&#xA;

    Edit 2 :

    &#xA;&#xA;

    ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with gcc 9.3.0 (Arch Linux 9.3.0-1)&#xA;  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] SPS unavailable in decode_picture_timing&#xA;[h264 @ 0x557143911700] non-existing PPS 0 referenced&#xA;[h264 @ 0x557143911700] decode_slice_header error&#xA;[h264 @ 0x557143911700] no frame!&#xA;[mpegts @ 0x55714390c540] PES packet size mismatch&#xA;Input #0, mpegts, from &#x27;raw_video.MTS&#x27;:&#xA;  Duration: 00:18:30.97, start: 113.284733, bitrate: 16850 kb/s&#xA;  Program 1 &#xA;    Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc&#xA;    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 256 kb/s&#xA;    Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080&#xA;At least one output file must be specified&#xA;

    &#xA;