Recherche avancée

Médias (91)

Autres articles (63)

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

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (4967)

  • FFmpeg saving rtmp live stream cuts off after 3 minutes

    20 janvier 2013, par user1636922

    I was playing with ffmpeg and was able to save a live stream to a file. The command to do so is :

    ffmpeg -re -i "rtmp://<ip addr="addr">/livestream live=1" -f h264 test.flv
    </ip>

    However, I have tested this twice, and both times ffmpeg stops after grabbing 3:28 worth of live video.

    The entire output is here :

    bash-4.2$ ffmpeg -re -i "rtmp://<ip addr="addr">/livestream live=1" -vcodec libx264 -f h264 test.flv
    WARNING: gnome-keyring:: couldn&#39;t connect to: /home/me/.cache/keyring-bpajcJ/pkcs11: No such file or directory
    ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers
     built on Jul 20 2012 22:01:52 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5)
     configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib --mandir=/usr/share/man --arch=i686 --extra-cflags=&#39;-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables&#39; --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib --cpu=i686 --enable-runtime-cpudetect
     libavutil      51. 35.100 / 51. 35.100
     libavcodec     53. 61.100 / 53. 61.100
     libavformat    53. 32.100 / 53. 32.100
     libavdevice    53.  4.100 / 53.  4.100
     libavfilter     2. 61.100 /  2. 61.100
     libswscale      2.  1.100 /  2.  1.100
     libswresample   0.  6.100 /  0.  6.100
     libpostproc    52.  0.100 / 52.  0.100
    WARNING: gnome-keyring:: couldn&#39;t connect to: /home/me/.cache/keyring-bpajcJ/pkcs11: No such file or directory
    Metadata:
     videocodecid          avc1
     width                 320.00
     height                240.00
     frameWidth            320.00
     frameHeight           240.00
     displayWidth          320.00
     displayHeight         240.00
     framerate             29.97
    trackinfo:
     timescale             90000.00
     language              eng
    sampledescription:
     sampletype            H264
     type                  video
     profile-level-id      42e00c
     sprop-parameter-sets  Z0LgDNoFB+wEQAAC7sAAr8gh,aM4zyA==
     description           {H264CodecConfigInfo: profile: "Baseline", level: 1.2, frameSize: 320x240, displaySize: 320x240, PAR: 1:1, frameRate: 29.97}
    rtpsessioninfo:
     name                  H264 Stream 1
     origin                - 1486490083 118668671 IN IP4 10.93.183.3
     timing                0 0
     protocolversion       0
    attributes:
     range                 npt=now-
    [flv @ 0x9578ee0] Estimating duration from bitrate, this may be inaccurate
    Input #0, flv, from &#39;rtmp://<ip addr="addr">/livestream live=1&#39;:
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 14.99 tbr, 1k tbn, 59.94 tbc
    [buffer @ 0x99ee900] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
    [libx264 @ 0x9584540] using SAR=1/1
    [libx264 @ 0x9584540] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
    [libx264 @ 0x9584540] profile High, level 1.2
    Output #0, h264, to &#39;test.flv&#39;:
     Metadata:
       encoder         : Lavf53.32.100
       Stream #0:0: Video: h264, yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 90k tbn, 14.99 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> libx264)
    Press [q] to stop, [?] for help
    RTMP_ReadPacket, failed to read RTMP packet body. len: 16582bitrate= 212.1kbits/s    
    frame= 3111 fps= 15 q=-2.0 Lsize=    5385kB time=00:03:27.47 bitrate= 212.6kbits/s    
    video:5385kB audio:0kB global headers:0kB muxing overhead 0.000000%
    [libx264 @ 0x9584540] frame I:13    Avg QP:18.70  size: 31866
    [libx264 @ 0x9584540] frame P:1908  Avg QP:22.29  size:  2392
    [libx264 @ 0x9584540] frame B:1190  Avg QP:29.24  size:   451
    [libx264 @ 0x9584540] consecutive B-frames: 39.5% 24.0% 13.0% 23.4%
    [libx264 @ 0x9584540] mb I  I16..4:  0.2%  1.2% 98.6%
    [libx264 @ 0x9584540] mb P  I16..4:  0.0%  0.0%  0.7%  P16..4: 22.0%  3.5%  2.6%  0.0%  0.0%    skip:71.2%
    [libx264 @ 0x9584540] mb B  I16..4:  0.0%  0.0%  0.2%  B16..8: 15.6%  2.8%  1.1%  direct: 1.3%  skip:78.9%  L0:47.0% L1:42.2% BI:10.8%
    [libx264 @ 0x9584540] 8x8 transform intra:2.2% inter:8.5%
    [libx264 @ 0x9584540] coded y,uvDC,uvAC intra: 98.0% 94.9% 73.9% inter: 14.5% 16.0% 11.3%
    [libx264 @ 0x9584540] i16 v,h,dc,p:  0% 50% 17% 33%
    [libx264 @ 0x9584540] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  7% 21% 11%  3% 13%  6% 21%  4% 14%
    [libx264 @ 0x9584540] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 21% 14%  5% 11%  7% 14%  5% 12%
    [libx264 @ 0x9584540] i8c dc,h,v,p: 65% 15% 10% 10%
    [libx264 @ 0x9584540] Weighted P-Frames: Y:0.5% UV:0.1%
    [libx264 @ 0x9584540] ref P L0: 80.8% 10.4%  7.6%  1.2%  0.0%
    [libx264 @ 0x9584540] ref B L0: 94.9%  4.8%  0.2%
    [libx264 @ 0x9584540] ref B L1: 96.4%  3.6%
    [libx264 @ 0x9584540] kb/s:212.48
    </ip></ip>

    Although I don't see any errors. It just looks like ffmpeg thought the stream had ended ? But that's not possible since it's a live stream.

  • FFmpeg saving rtmp live stream cuts off after 3 minutes

    29 octobre 2022, par user1636922

    I was playing with ffmpeg and was able to save a live stream to a file. The command to do so is :

    &#xA;&#xA;

    ffmpeg -re -i "rtmp://<ip addr="addr">/livestream live=1" -f h264 test.flv&#xA;</ip>

    &#xA;&#xA;

    However, I have tested this twice, and both times ffmpeg stops after grabbing 3:28 worth of live video.

    &#xA;&#xA;

    The entire output is here :

    &#xA;&#xA;

    bash-4.2$ ffmpeg -re -i "rtmp://<ip addr="addr">/livestream live=1" -vcodec libx264 -f h264 test.flv&#xA;WARNING: gnome-keyring:: couldn&#x27;t connect to: /home/me/.cache/keyring-bpajcJ/pkcs11: No such file or directory&#xA;ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers&#xA;  built on Jul 20 2012 22:01:52 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5)&#xA;  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib --mandir=/usr/share/man --arch=i686 --extra-cflags=&#x27;-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables&#x27; --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib --cpu=i686 --enable-runtime-cpudetect&#xA;  libavutil      51. 35.100 / 51. 35.100&#xA;  libavcodec     53. 61.100 / 53. 61.100&#xA;  libavformat    53. 32.100 / 53. 32.100&#xA;  libavdevice    53.  4.100 / 53.  4.100&#xA;  libavfilter     2. 61.100 /  2. 61.100&#xA;  libswscale      2.  1.100 /  2.  1.100&#xA;  libswresample   0.  6.100 /  0.  6.100&#xA;  libpostproc    52.  0.100 / 52.  0.100&#xA;WARNING: gnome-keyring:: couldn&#x27;t connect to: /home/me/.cache/keyring-bpajcJ/pkcs11: No such file or directory&#xA;Metadata:&#xA;  videocodecid          avc1&#xA;  width                 320.00&#xA;  height                240.00&#xA;  frameWidth            320.00&#xA;  frameHeight           240.00&#xA;  displayWidth          320.00&#xA;  displayHeight         240.00&#xA;  framerate             29.97&#xA;trackinfo:&#xA;  timescale             90000.00&#xA;  language              eng&#xA;sampledescription:&#xA;  sampletype            H264&#xA;  type                  video&#xA;  profile-level-id      42e00c&#xA;  sprop-parameter-sets  Z0LgDNoFB&#x2B;wEQAAC7sAAr8gh,aM4zyA==&#xA;  description           {H264CodecConfigInfo: profile: "Baseline", level: 1.2, frameSize: 320x240, displaySize: 320x240, PAR: 1:1, frameRate: 29.97}&#xA;rtpsessioninfo:&#xA;  name                  H264 Stream 1&#xA;  origin                - 1486490083 118668671 IN IP4 10.93.183.3&#xA;  timing                0 0&#xA;  protocolversion       0&#xA;attributes:&#xA;  range                 npt=now-&#xA;[flv @ 0x9578ee0] Estimating duration from bitrate, this may be inaccurate&#xA;Input #0, flv, from &#x27;rtmp://<ip addr="addr">/livestream live=1&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: N/A&#xA;    Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 14.99 tbr, 1k tbn, 59.94 tbc&#xA;[buffer @ 0x99ee900] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:&#xA;[libx264 @ 0x9584540] using SAR=1/1&#xA;[libx264 @ 0x9584540] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2&#xA;[libx264 @ 0x9584540] profile High, level 1.2&#xA;Output #0, h264, to &#x27;test.flv&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf53.32.100&#xA;    Stream #0:0: Video: h264, yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 90k tbn, 14.99 tbc&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 -> libx264)&#xA;Press [q] to stop, [?] for help&#xA;RTMP_ReadPacket, failed to read RTMP packet body. len: 16582bitrate= 212.1kbits/s    &#xA;frame= 3111 fps= 15 q=-2.0 Lsize=    5385kB time=00:03:27.47 bitrate= 212.6kbits/s    &#xA;video:5385kB audio:0kB global headers:0kB muxing overhead 0.000000%&#xA;[libx264 @ 0x9584540] frame I:13    Avg QP:18.70  size: 31866&#xA;[libx264 @ 0x9584540] frame P:1908  Avg QP:22.29  size:  2392&#xA;[libx264 @ 0x9584540] frame B:1190  Avg QP:29.24  size:   451&#xA;[libx264 @ 0x9584540] consecutive B-frames: 39.5% 24.0% 13.0% 23.4%&#xA;[libx264 @ 0x9584540] mb I  I16..4:  0.2%  1.2% 98.6%&#xA;[libx264 @ 0x9584540] mb P  I16..4:  0.0%  0.0%  0.7%  P16..4: 22.0%  3.5%  2.6%  0.0%  0.0%    skip:71.2%&#xA;[libx264 @ 0x9584540] mb B  I16..4:  0.0%  0.0%  0.2%  B16..8: 15.6%  2.8%  1.1%  direct: 1.3%  skip:78.9%  L0:47.0% L1:42.2% BI:10.8%&#xA;[libx264 @ 0x9584540] 8x8 transform intra:2.2% inter:8.5%&#xA;[libx264 @ 0x9584540] coded y,uvDC,uvAC intra: 98.0% 94.9% 73.9% inter: 14.5% 16.0% 11.3%&#xA;[libx264 @ 0x9584540] i16 v,h,dc,p:  0% 50% 17% 33%&#xA;[libx264 @ 0x9584540] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  7% 21% 11%  3% 13%  6% 21%  4% 14%&#xA;[libx264 @ 0x9584540] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 21% 14%  5% 11%  7% 14%  5% 12%&#xA;[libx264 @ 0x9584540] i8c dc,h,v,p: 65% 15% 10% 10%&#xA;[libx264 @ 0x9584540] Weighted P-Frames: Y:0.5% UV:0.1%&#xA;[libx264 @ 0x9584540] ref P L0: 80.8% 10.4%  7.6%  1.2%  0.0%&#xA;[libx264 @ 0x9584540] ref B L0: 94.9%  4.8%  0.2%&#xA;[libx264 @ 0x9584540] ref B L1: 96.4%  3.6%&#xA;[libx264 @ 0x9584540] kb/s:212.48&#xA;</ip></ip>

    &#xA;&#xA;

    Although I don't see any errors. It just looks like ffmpeg thought the stream had ended ? But that's not possible since it's a live stream.

    &#xA;

  • Conversion to HEVC using FFmpeg produces video s incompatible with Keynote, but Handbrake works

    15 mai 2019, par Gabriel

    I have a video
    ( https://www.dropbox.com/s/01rg7rgarqfruy3/Spore%20-%20Assymetrical%20Creatures%2C%20excerpt.mov?dl=0 )
    that I want to convert to HEVC (H265).

    When I convert it using Handbrake, it produces an output video that I can then include in a presentation in Keynote.

    When I convert it using ffmpeg on the command line myself, then the output cannot be included in a Keynote presentation ;
    the error message I get is "Operation could not be completed".
    The ffmpeg version plays fine in Quicktime Player, though.
    I have already googled, but could not find a solution to the mystery.
    Also, I have already looked at Handbrake’s Activity Log, but could not find a substantial difference .
    I have already tried to change some of the options and parameters I usually use for running ffmpeg, to no avail.

    Question is : how do I have to run ffmpeg, which options should I use, so that the output can always be included in Keynote ?

    Note that some ffmpeg output videos can be inserted in Keynote.
    I know that I could, of course, always use Handbrake to manually convert the videos, but I’d rather use ffmpeg on the command line so that I can convert lots of my videos in batch.

    Steps to reproduce the problem :

    Convert this video
    https://www.dropbox.com/s/01rg7rgarqfruy3/Spore%20-%20Assymetrical%20Creatures%2C%20excerpt.mov?dl=0
    using Handbrake using the H265 codec.

    Convert it also using ffmpeg. My command line is :
    /opt/local/bin/ffmpeg -loglevel level+info -hide_banner -nostats -nostdin -i "Spore - Assymetrical Creatures, excerpt copy.mov" -map 0 -map -0:v:1 -c:s copy -map_metadata 0 -map_metadata:s:v 0:s:v -dn -map_metadata:s:a 0:s:a -c:a aac -b:a 128k -filter:v crop=in_w-mod(in_w\,2):in_h-mod(in_h\,2) -codec:v hevc -tag:v hvc1 -max_muxing_queue_size 1024 -preset faster -crf 25 -x265-params me=umh:subme=5:ref=4:aq-mode=2:aq-strength=1.0:psy-rd=2.0:psy-rdoq=1.0:rd=6:profile=main:log-level=2 -ignore_unknown -f mp4 "Spore - Assymetrical Creatures, excerpt copy.h265.mp4_converting"

    Go to Keynote / Insert / Choose .. , select the video (either the Handbrake or the ffmpeg version).

    My HandBrake version (e.g., 1.0.0) :
    Version 1.2.0 (2018122200)

    My ffmpeg version :

     built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
     configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-indev=jack --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --disable-securetransport --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-x86asm --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-version3 --enable-libsmbclient --enable-nonfree --enable-libfdk-aac
     libavutil      56. 22.100 / 56. 22.100
     libavcodec     58. 35.100 / 58. 35.100
     libavformat    58. 20.100 / 58. 20.100
     libavdevice    58.  5.100 / 58.  5.100
     libavfilter     7. 40.101 /  7. 40.101
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  3.100 /  5.  3.100
     libswresample   3.  3.100 /  3.  3.100
     libpostproc    55.  3.100 / 55.  3.100

    Operating system and version :
    macOS 10.14.3 (Mojave)

    Handbrake log : https://www.dropbox.com/s/4zsn7b2agwwyu1x/Spore%20-%20Assymetrical%20Creatures%2C%20Excerpt%201%202019-04-29%2014-44-28.txt?dl=0

    CLI ffmpeg log : https://www.dropbox.com/s/qx2wf1h5svbrjbc/Spore%20-%20Assymetrical%20Creatures%2C%20Excerpt%201%20-%20ffmpeg%20cli.txt?dl=0

    Output from Console.app, which occurred at the point when I tried to insert the ffmpeg version of the video, filtered by "keynote" : https://www.dropbox.com/s/2oam7cp3az9kp34/Console-keynote-output.txt?dl=0

    Here are the logs of ffmpeg when I run ffmpeg -i ...
    on the video that was output by ffmpeg, and for the video output by Handbrake (as suggested by Gyan) :
    https://www.dropbox.com/s/kddpit4sbq8vdhp/log_on_ffmpeg_result.txt?dl=0
    https://www.dropbox.com/s/v8n1ihgsp4tdwvp/log_on_handbrake_result.txt?dl=0

    Any hints, suggestions , or insights will be highly appreciated.

    Best regards, Gabriel