Recherche avancée

Médias (0)

Mot : - Tags -/masques

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

Autres articles (73)

  • 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 (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (8988)

  • FFMPEG "Segmentation fault" with stream source and watermark

    4 mars 2020, par Magikey

    I use release : 4.2.2 (static) from "https://johnvansickle.com/ffmpeg/"

    Final code will be on "Amazon AWS lambda"

    Goal : use a url stream and add watermak

    Link to video : ​https://feoval.fr/519.mp4

    Link to Watermak : ​https://feoval.fr/watermark.png

    ./ffmpeg -i "https://feoval.fr/519.mp4" -i "./watermark.png" -filter_complex "overlay=W-w-10:H-h-10:format=rgb" -f "mp4" -movflags "frag_keyframe+empty_moov" -pix_fmt "yuv420p" test.mp4

    return "Segmentation fault"

    I have the same error on my computer and on AWS Lambda server

    ./ffmpeg -i "https://feoval.fr/519.mp4" -f "mp4" -movflags "frag_keyframe+empty_moov" -pix_fmt "yuv420p" test.mp4

    work (but not watermak)

    ./ffmpeg -i "./519.mp4" -i "./watermark.png" -filter_complex "overlay=W-w-10:H-h-10:format=rgb" -f "mp4" -movflags "frag_keyframe+empty_moov" -pix_fmt "yuv420p" test.mp4

    work (but not with stream)

    Thanks you very much !

    Logs for the first case who return "Segmentation fault" :

    ...
    Stream mapping:
    Stream #0:0 (h264) -> overlay:main (graph 0)
    Stream #1:0 (png) -> overlay:overlay (graph 0)
    overlay (graph 0) -> Stream #0:0 (libx264)
    Stream #0:1 -> #0:1 (aac (native) -> aac (native))
    Press [q] to stop, ? for help
    [libx264 @ 0x742e480] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x742e480] profile High, level 3.1, 4:2:0, 8-bit
    [libx264 @ 0x742e480] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - ​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=12 lookahead_threads=2 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=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'test.mp4':
    Metadata:
    major_brand : mp42
    minor_version : 1
    compatible_brands: isommp41mp42
    encoder : Lavf58.29.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 480x848, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
    encoder : Lavc58.54.100 libx264
    Side data:
    cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
    creation_time : 2020-01-13T08:54:26.000000Z
    handler_name : Core Media Audio
    encoder : Lavc58.54.100 aac
    Segmentation fault (core dumped)
  • FFMPEG profile-level-id size is invalid

    18 février 2020, par Mulham Aryan

    I’m trying to record a RTSP streaming from JVC KY-PZ 100.
    So for that i’m using ffmpeg with some parameters like segmentation, hls, ts, m3u8 etc ...
    i’m always getting an error The profile-level-id field size is invalid (41) and Error parsing AU headers

    This is the output of FFPROBE to debug the RTSP

    ffprobe -loglevel verbose  -i rtsp://jvc:0000@192.168.0.124:554/stream

    ffprobe version 4.2.2 Copyright (c) 2007-2019 the FFmpeg developers
     built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-13.0.1.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
     libavutil      56. 31.100 / 56. 31.100
     libavcodec     58. 54.100 / 58. 54.100
     libavformat    58. 29.100 / 58. 29.100
     libavdevice    58.  8.100 / 58.  8.100
     libavfilter     7. 57.100 /  7. 57.100
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  5.100 /  5.  5.100
     libswresample   3.  5.100 /  3.  5.100
     libpostproc    55.  5.100 / 55.  5.100
    [tcp @ 0x7fa99ee001c0] Starting connection attempt to 192.168.0.124 port 554
    [tcp @ 0x7fa99ee001c0] Successfully connected to 192.168.0.124 port 554
    [rtsp @ 0x7fa99f807200] SDP:
    v=0
    o=- 1581949225269357 1 IN IP4 192.168.0.124
    s=KY-PZ100
    i=KY-PZ100
    t=0 0
    a=tool:LIVE555 Streaming Media v2013.10.03
    a=type:broadcast
    a=control:*
    a=range:npt=0-
    a=x-qt-text-nam:KY-PZ100
    a=x-qt-text-inf:KY-PZ100
    m=audio 0 RTP/AVP 96
    c=IN IP4 0.0.0.0
    b=AS:96
    a=rtpmap:96 mpeg4-generic/48000/2
    a=fmtp:96 streamtype=5;profile-level-id=41;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1190
    a=control:track1
    m=video 0 RTP/AVP 97
    c=IN IP4 0.0.0.0
    b=AS:1500
    a=rtpmap:97 H264/90000
    a=fmtp:97 packetization-mode=1;profile-level-id=4D401E;sprop-parameter-sets=Z01AHqtgUBf8uAqQEBAUAAAPpAADqYOlABksDcoUQDuLFIs=,aM48gA==
    a=control:track2

    [rtsp @ 0x7fa99f807200] The profile-level-id field size is invalid (41)
    [rtsp @ 0x7fa99f807200] setting jitter buffer size to 500
       Last message repeated 1 times
    [rtsp @ 0x7fa99f807200] Error parsing AU headers
       Last message repeated 4 times
    [h264 @ 0x7fa9a0806600] Reinit context to 640x368, pix_fmt: yuv420p
    [rtsp @ 0x7fa99f807200] Error parsing AU headers
       Last message repeated 235 times
    [rtsp @ 0x7fa99f807200] max_analyze_duration 5000000 reached at 5005000 microseconds st:1
    Input #0, rtsp, from 'rtsp://jvc:0000@192.168.0.124:554/stream':
     Metadata:
       title           : KY-PZ100
       comment         : KY-PZ100
     Duration: N/A, start: 0.066733, bitrate: N/A
       Stream #0:0: Audio: aac, 48000 Hz, stereo, fltp
       Stream #0:1: Video: h264 (Main), 1 reference frame, yuv420p(tv, bt709, progressive, left), 640x360 (640x368) [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
  • ffmpeg 4.2.2 gives segmentation fault after a while

    2 février 2020, par Eric Feillant

    I have compiled ffmpeg 4.2.2 and it gives me a segmatation fault after a while and i don’t knw why, i put it the request and a part of the debug log file.
    My ffmpeg request :
    /usr/local/bin/ffmpeg -loglevel debug -use_wallclock_as_timestamps 1 -rtsp_transport tcp -i "rtsp ://root:My_PW@My_IP_Address:5541/live.sdp" -f image2 -loop 1 -i ./overlay_score_160.png -i ./partenaire.png -filter_complex ’overlay=x=2:y=1,overlay=(main_w-overlay_w)/2:y=1’ -framerate 25 -crf 18 -preset veryfast -g 50 -vcodec libx264 -acodec copy -f flv rtmp ://localhost/hls/stream1 -async 1 -vsync 1 2> debug.txt

    ffmpeg version 4.2.2-eric-01022020-FF422 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
     configuration: --prefix=/usr/local --enable-gpl --enable-version3 --enable-nonfree --disable-static --enable-shared --disable-debug --enable-avresample --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-pthreads --enable-libfreetype --enable-filters --enable-openssl --enable-runtime-cpudetect --enable-libxvid --enable-libfontconfig --enable-libspeex --extra-version=eric-01022020-FF422 --docdir=/usr/share/doc/ffmpeg-4.2.2
     libavutil      56. 31.100 / 56. 31.100
     libavcodec     58. 54.100 / 58. 54.100
     libavformat    58. 29.100 / 58. 29.100
     libavdevice    58.  8.100 / 58.  8.100
     libavfilter     7. 57.100 /  7. 57.100
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  5.100 /  5.  5.100
     libswresample   3.  5.100 /  3.  5.100
     libpostproc    55.  5.100 / 55.  5.100
    Splitting the commandline.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
    Reading option '-use_wallclock_as_timestamps' ... matched as AVOption 'use_wallclock_as_timestamps' with argument '1'.
    Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport' with argument 'tcp'.
    Reading option '-i' ... matched as input url with argument 'rtsp://root:MyPW@My_IP_Address:5541/live.sdp'.
    Reading option '-f' ... matched as option 'f' (force format) with argument 'image2'.
    Reading option '-loop' ... matched as AVOption 'loop' with argument '1'.
    Reading option '-i' ... matched as input url with argument './overlay_score_160.png'.
    Reading option '-i' ... matched as input url with argument './partenaire.png'.
    Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument 'overlay=x=2:y=1,overlay=(main_w-overlay_w)/2:y=1'.
    Reading option '-framerate' ... matched as AVOption 'framerate' with argument '25'.
    Reading option '-crf' ... matched as AVOption 'crf' with argument '18'.
    Reading option '-preset' ... matched as AVOption 'preset' with argument 'veryfast'.
    Reading option '-g' ... matched as AVOption 'g' with argument '50'.
    Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.
    Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'.
    Reading option '-f' ... matched as option 'f' (force format) with argument 'flv'.
    Reading option 'rtmp://localhost/hls/stream1' ... matched as output url.
    Reading option '-async' ... matched as option 'async' (audio sync method) with argument '1'.
    Reading option '-vsync' ... matched as option 'vsync' (video sync method) with argument '1'.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option loglevel (set logging level) with argument debug.
    Applying option filter_complex (create a complex filtergraph) with argument overlay=x=2:y=1,overlay=(main_w-overlay_w)/2:y=1.
    Applying option async (audio sync method) with argument 1.
    Applying option vsync (video sync method) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options: input url rtsp://root:MyPW@My_IP_Address:5541/live.sdp.
    Successfully parsed a group of options.

    ........

    [libx264 @ 0x55819256fc00] frame=24887 QP=17.51 NAL=2 Slice:P Poc:80  I:53   P:783  SKIP:38   size=8835 bytes
    [libx264 @ 0x55819256fc00] frame=24888 QP=21.08 NAL=2 Slice:B Poc:76  I:0    P:219  SKIP:655  size=254 bytes
    [h264 @ 0x5581925ca200] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
    [image2 @ 0x558192485380] Opening './overlay_score_160.png' for reading
    [file @ 0x7f32640080c0] Setting default whitelist 'file,crypto'
    [AVIOContext @ 0x7f3264008140] Statistics: 1988 bytes read, 0 seeks
    [Parsed_overlay_0 @ 0x5581927cbf00] n:20781.000000 t:831.281311 pos:nan x:2.000000 xi:2 y:1.000000 yi:0
    [Parsed_overlay_1 @ 0x5581927cdf00] n:20781.000000 t:831.281311 pos:nan x:258.000000 xi:258 y:1.000000 yi:0
    Clipping frame in rate conversion by 0.474174
    [libx264 @ 0x55819256fc00] frame=24889 QP=22.84 NAL=0 Slice:B Poc:74  I:0    P:7    SKIP:867  size=36 bytes
    [h264 @ 0x5581925e68c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
    [Parsed_overlay_0 @ 0x5581927cbf00] n:20782.000000 t:831.311122 pos:nan x:2.000000 xi:2 y:1.000000 yi:0
    [Parsed_overlay_1 @ 0x5581927cdf00] n:20782.000000 t:831.311122 pos:nan x:258.000000 xi:258 y:1.000000 yi:0
    Clipping frame in rate conversion by 0.580742
    [libx264 @ 0x55819256fc00] frame=24890 QP=22.80 NAL=0 Slice:B Poc:78  I:0    P:190  SKIP:684  size=167 bytes
    [h264 @ 0x558192603080] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
    [image2 @ 0x558192485380] Opening './overlay_score_160.png' for reading
    [file @ 0x7f3264007f80] Setting default whitelist 'file,crypto'
    [AVIOContext @ 0x7f3264008300] Statistics: 1988 bytes read, 0 seeks
    [Parsed_overlay_0 @ 0x5581927cbf00] n:20783.000000 t:831.351278 pos:nan x:2.000000 xi:2 y:1.000000 yi:0
    [Parsed_overlay_1 @ 0x5581927cdf00] n:20783.000000 t:831.351278 pos:nan x:258.000000 xi:258 y:1.000000 yi:0
    Clipping frame in rate conversion by 0.377281
    [libx264 @ 0x55819256fc00] frame=24891 QP=17.17 NAL=2 Slice:P Poc:88  I:1    P:230  SKIP:643  size=806 bytes
    frame=24917 fps= 30 q=24.0 size=   25410kB time=00:13:51.90 bitrate= 250.2kbits/s dup=6033 drop=1899 speed=   1x    ^M[h264 @ 0x55819261f840] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
    [image2 @ 0x558192485380] Opening './overlay_score_160.png' for reading
    [file @ 0x7f3264006d80] Setting default whitelist 'file,crypto'
    [AVIOContext @ 0x7f32640080c0] Statistics: 1988 bytes read, 0 seeks
    [Parsed_overlay_0 @ 0x5581927cbf00] n:20784.000000 t:831.372222 pos:nan x:2.000000 xi:2 y:1.000000 yi:0
    [Parsed_overlay_1 @ 0x5581927cdf00] n:20784.000000 t:831.372222 pos:nan x:258.000000 xi:258 y:1.000000 yi:0
    Past duration 0.749565 too large
    [libx264 @ 0x55819256fc00] frame=24892 QP=18.73 NAL=2 Slice:B Poc:84  I:0    P:29   SKIP:845  size=80 bytes
    [h264 @ 0x55819263c000] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 1
    [image2 @ 0x558192485380] Opening './overlay_score_160.png' for reading
    [file @ 0x7f3264007f80] Setting default whitelist 'file,crypto'
    [AVIOContext @ 0x7f32640080c0] Statistics: 1988 bytes read, 0 seeks
    [image2 @ 0x558192485380] Opening './overlay_score_160.png' for reading
    [file @ 0x7f3264006d80] Setting default whitelist 'file,crypto'
    [AVIOContext @ 0x7f32640080c0] Statistics: 1988 bytes read, 0 seeks

    Then i get "Segmentation fault" and ffmpeg exits