Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (40)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

Sur d’autres sites (4593)

  • Data Privacy Day 2021 : Five ways to embrace privacy into your business

    27 janvier 2021, par Matomo Core Team — Community, Privacy

    Welcome to Data Privacy Day 2021 !

    This year we are excited to announce that we are participating as a #PrivacyAware Champion for DPD21 through the National Cyber Security Alliance. This means that on this significant day we are in partnership with hundreds of other organisations and businesses to share a unified message that empowers individuals to “Own Your Privacy” and for organisations to “Respect Privacy.”

    "Last year dawned a new era in the way many businesses operate from a traditional office work setting to a remote working from home environment for employees. This now means it’s more important than ever for your employees to understand how to take ownership of their privacy when working online."

    Matthieu - Founder of Matomo

    As a Data Privacy Day #PrivacyAware Champion we would like to provide some practical tips and share examples of how the Matomo team helps employees be privacy aware.

    Five ways to embrace privacy into your business

    1. Create a privacy aware culture within your business

    • Get leadership involved.
    • Appoint privacy ambassadors within your team. 
    • Create a privacy awareness campaign where you educate employees on your company privacy policy. 
    • Share messages about privacy around the office/or in meetings online, on internal message boards, in company newsletters, or emails. 
    • Teach new employees their role in your privacy culture and reinforce throughout their career.

    2. Organise privacy awareness training for your employees

    • Invite outside speakers to talk to employees about why privacy matters. 
    • Engage staff by asking them to consider how privacy and data security applies to the work they do on a daily basis.
    • Encourage employees to complete online courses to gain a better understanding of how to avoid privacy risks.

    3. Help employees manage their individual privacy

    • Better security and privacy behaviours at home will translate to better security and privacy practices at work. 
    • Teach employees how to update their privacy and security settings on personal accounts.
    • Use NCSA’s privacy settings page to help them get started

    4. Add privacy to the employee’s toolbox

    • Give your employees actual tools they can use to improve their privacy, such as company-branded camera covers or privacy screens for their devices, or virtual private networks (VPNs) to secure their connections.

    5. Join Matomo and we’ll be your web analytics experts

    • At Matomo, ensuring our users and customers that their privacy is protected is not only a core component of the work we do, it’s why we do what we do ! Find out how.

    Want to find out more about data privacy download your free DPD 2021 Champion Toolkit and read our post on “Why is privacy important”.

    Team Matomo

    2021 Data Privacy Day Toolkit

    Your guide to Data Privacy Day, January 28, 2021
  • FFMPEG frame counter hangs and stop streaming

    18 janvier 2021, par user2821178

    Good morning,

    


    I use a Raspberry, linked to an IP cam, in order to send the streaming to my Facebook Page.

    


    All works good, but it happen, that for some reason facebook stops to receive the streaming, but FFMPEG continues to works.

    


    I've noticed that even if FFMPEG seems to work correctly, the frame counter stops.

    


    This is the command :

    


        RTSP_URL="rtsp://xxxxxxxxxxx/videoMain";
YOUTUBE_URL="rtmps://live-api-s.facebook.com:443/rtmp/";
YOUTUBE_KEY="zzzzzzzzzxxxxxxxxyyyyyyyyyy";
LOGO="-i yyyyyyyyyyy.png -filter_complex overlay=x=1:y=(main_h-overlay_h)";
VIDEO="-s 512:288 -c:v libx264 -x264-params nal-hrd=cbr -b:v 150k -minrate 50k -maxrate 150k -bufsize 300k";
AUDIO="-c:a aac -strict experimental";
KEYFRAME="-g 100";
OUTPUTFORMAT="-f flv";

COMMAND="sudo ffmpeg -f lavfi -i anullsrc -rtsp_transport tcp -stimeout 5000000 -i ${RTSP_URL} ${LOGO} ${VIDEO} ${AUDIO} ${KEYFRAME} ${OUTPUTFORMAT} ${YOUTUBE_URL}/${YOUTUBE_KEY}";

$COMMAND > streamOut.txt 2>&1;


    


    Here an extract of the output :

    


    ffmpeg version N-96658-g3b860bfd6f Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1) 20170516
  configuration: --enable-gpl --enable-libx264 --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-nonfree --enable-version3 --enable-nonfree
  libavutil      56. 39.100 / 56. 39.100
  libavcodec     58. 68.100 / 58. 68.100
  libavformat    58. 38.100 / 58. 38.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 75.100 /  7. 75.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Input #0, lavfi, from 'anullsrc':
  Duration: N/A, start: 0.000000, bitrate: 705 kb/s
    Stream #0:0: Audio: pcm_u8, 44100 Hz, stereo, u8, 705 kb/s
[h264 @ 0x3415340] Missing reference picture, default is 65542
[h264 @ 0x3415340] Missing reference picture, default is 65544
[h264 @ 0x3415340] Missing reference picture, default is 65546
[h264 @ 0x3415340] Missing reference picture, default is 65548
[h264 @ 0x3415340] Missing reference picture, default is 65550
[h264 @ 0x3415340] Missing reference picture, default is 65552
[h264 @ 0x3415340] Missing reference picture, default is 65554
[h264 @ 0x3415340] Missing reference picture, default is 65556
[h264 @ 0x3415340] Missing reference picture, default is 65558
[h264 @ 0x3415340] Missing reference picture, default is 65560
[h264 @ 0x3415340] Missing reference picture, default is 65562
[h264 @ 0x3415340] Missing reference picture, default is 65564
[h264 @ 0x3415340] Missing reference picture, default is 65566
[h264 @ 0x3415340] Missing reference picture, default is 65568
[h264 @ 0x3415340] Missing reference picture, default is 65570
[h264 @ 0x3415340] Missing reference picture, default is 65572
[h264 @ 0x3415340] Missing reference picture, default is 65574
[h264 @ 0x3415340] Missing reference picture, default is 65576
[h264 @ 0x3415340] Missing reference picture, default is 65578
[h264 @ 0x3415340] Missing reference picture, default is 65580
[h264 @ 0x3415340] Missing reference picture, default is 65582
[h264 @ 0x3415340] Missing reference picture, default is 65584
[h264 @ 0x3415340] Missing reference picture, default is 65586
[h264 @ 0x3415340] Missing reference picture, default is 65588
[h264 @ 0x3415340] Missing reference picture, default is 65590
[h264 @ 0x3415340] Missing reference picture, default is 65592
Guessed Channel Layout for Input Stream #1.1 : mono
Input #1, rtsp, from 'rtsp://xxxxxxxxxxxxxxxx/videoMain':
  Metadata:
    title           : IP Camera Video
    comment         : videoMain
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #1:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 29.75 tbr, 90k tbn, 2108081.20 tbc
    Stream #1:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
Input #2, png_pipe, from 'zzzzzzzzzzz.png':
  Duration: N/A, bitrate: N/A
    Stream #2:0: Video: png, rgba(pc), 500x233 [SAR 3778:3778 DAR 500:233], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #1:0 (h264) -> overlay:main (graph 0)
  Stream #2:0 (png) -> overlay:overlay (graph 0)
  overlay (graph 0) -> Stream #0:0 (libx264)
  Stream #0:0 -> #0:1 (pcm_u8 (native) -> aac (native))
Press [q] to stop, [?] for help
[rtsp @ 0x34127d0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[h264 @ 0x34e0890] Missing reference picture, default is 65542
[h264 @ 0x3467ba0] Missing reference picture, default is 65544
[h264 @ 0x342e220] Missing reference picture, default is 65546
[h264 @ 0x35727c0] Missing reference picture, default is 65548
[h264 @ 0x34ffed0] Missing reference picture, default is 65550
[h264 @ 0x34e0890] Missing reference picture, default is 65552
[h264 @ 0x3467ba0] Missing reference picture, default is 65554
[h264 @ 0x342e220] Missing reference picture, default is 65556
[h264 @ 0x35727c0] Missing reference picture, default is 65558
[h264 @ 0x34ffed0] Missing reference picture, default is 65560
[h264 @ 0x34e0890] Missing reference picture, default is 65562
[h264 @ 0x3467ba0] Missing reference picture, default is 65564
[h264 @ 0x342e220] Missing reference picture, default is 65566
[h264 @ 0x35727c0] Missing reference picture, default is 65568
[h264 @ 0x34ffed0] Missing reference picture, default is 65570
[h264 @ 0x34e0890] Missing reference picture, default is 65572
[h264 @ 0x3467ba0] Missing reference picture, default is 65574
[h264 @ 0x342e220] Missing reference picture, default is 65576
[h264 @ 0x35727c0] Missing reference picture, default is 65578
[h264 @ 0x34ffed0] Missing reference picture, default is 65580
[h264 @ 0x34e0890] Missing reference picture, default is 65582
[h264 @ 0x3467ba0] Missing reference picture, default is 65584
[h264 @ 0x342e220] Missing reference picture, default is 65586
[h264 @ 0x35727c0] Missing reference picture, default is 65588
[h264 @ 0x34ffed0] Missing reference picture, default is 65590
[h264 @ 0x34e0890] Missing reference picture, default is 65592
frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[libx264 @ 0x344a2b0] using SAR=1/1
[libx264 @ 0x344a2b0] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x344a2b0] profile High, level 2.1, 4:2:0, 8-bit
[libx264 @ 0x344a2b0] 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=6 lookahead_threads=1 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=100 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=150 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=150 vbv_bufsize=300 nal_hrd=cbr filler=1 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'rtmps://live-api-s.facebook.com:443/rtmp//xzxzxxzxzxzxxzxzxzxzxxzxzxzxzxzx':
  Metadata:
    encoder         : Lavf58.38.100
    Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 512x288 [SAR 1:1 DAR 16:9], q=-1--1, 150 kb/s, 29.75 fps, 1k tbn, 29.75 tbc (default)
    Metadata:
      encoder         : Lavc58.68.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 150000/0/150000 buffer size: 300000 vbv_delay: N/A
    Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc58.68.100 aac
frame=   10 fps=9.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
frame=   22 fps= 14 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
frame=   34 fps= 16 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
frame=   45 fps= 17 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
frame=   52 fps= 16 q=29.0 size=      26kB time=00:00:01.85 bitrate= 116.1kbits/s speed=0.584x    
frame=   63 fps= 17 q=22.0 size=      29kB time=00:00:02.52 bitrate=  93.7kbits/s speed=0.68x    
......
...... 
frame=11279 fps= 14 q=20.0 size=   15356kB time=00:13:06.05 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
frame=11287 fps= 14 q=20.0 size=   15362kB time=00:13:06.58 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.967x    
frame=11295 fps= 14 q=23.0 size=   15373kB time=00:13:07.09 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.967x    
frame=11302 fps= 14 q=24.0 size=   15380kB time=00:13:07.55 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
frame=11309 fps= 14 q=23.0 size=   15386kB time=00:13:08.00 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
frame=11317 fps= 14 q=22.0 size=   15402kB time=00:13:08.50 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
frame=11325 fps= 14 q=23.0 size=   15408kB time=00:13:09.00 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
frame=11332 fps= 14 q=23.0 size=   15416kB time=00:13:09.48 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
frame=11340 fps= 14 q=21.0 size=   15454kB time=00:13:09.98 bitrate= 160.3kbits/s dup=0 drop=433 speed=0.966x    
frame=11348 fps= 14 q=21.0 size=   15459kB time=00:13:10.52 bitrate= 160.2kbits/s dup=0 drop=433 speed=0.966x    
frame=11356 fps= 14 q=22.0 size=   15466kB time=00:13:11.02 bitrate= 160.2kbits/s dup=0 drop=433 speed=0.966x    
frame=11364 fps= 14 q=21.0 size=   15472kB time=00:13:11.56 bitrate= 160.1kbits/s dup=0 drop=433 speed=0.966x    
frame=11372 fps= 14 q=21.0 size=   15477kB time=00:13:12.03 bitrate= 160.1kbits/s dup=0 drop=433 speed=0.966x    
frame=11380 fps= 14 q=21.0 size=   15488kB time=00:13:12.59 bitrate= 160.1kbits/s dup=0 drop=433 speed=0.966x    
frame=11388 fps= 14 q=21.0 size=   15493kB time=00:13:13.07 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
[rtsp @ 0x34127d0] CSeq 29 expected, 0 received.
    Last message repeated 1 times
frame=11396 fps= 14 q=22.0 size=   15500kB time=00:13:13.61 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
[rtsp @ 0x34127d0] CSeq 29 expected, 0 received.
    Last message repeated 3 times
frame=11404 fps= 14 q=20.0 size=   15507kB time=00:13:14.11 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
[rtsp @ 0x34127d0] CSeq 29 expected, 0 received.
    Last message repeated 4 times
frame=11412 fps= 14 q=23.0 size=   15520kB time=00:13:14.65 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
[rtsp @ 0x34127d0] CSeq 29 expected, 0 received.
frame=11419 fps= 14 q=20.0 size=   15527kB time=00:13:15.12 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
[rtsp @ 0x34127d0] CSeq 29 expected, 0 received.
    Last message repeated 1 times
frame=11424 fps= 14 q=20.0 size=   15534kB time=00:13:15.46 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
frame=11431 fps= 14 q=22.0 size=   15540kB time=00:13:15.86 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
frame=11439 fps= 14 q=21.0 size=   15579kB time=00:13:16.37 bitrate= 160.3kbits/s dup=0 drop=433 speed=0.966x    
frame=11446 fps= 14 q=21.0 size=   15583kB time=00:13:16.80 bitrate= 160.2kbits/s dup=0 drop=433 speed=0.966x    
......
...... 
frame=11811 fps= 14 q=21.0 size=   16022kB time=00:13:40.33 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
frame=11819 fps= 14 q=21.0 size=   16031kB time=00:13:40.84 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
frame=11827 fps= 14 q=21.0 size=   16041kB time=00:13:41.37 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
frame=11834 fps= 14 q=25.0 size=   16052kB time=00:13:41.84 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.966x    
frame=11834 fps= 14 q=25.0 size=   16052kB time=00:13:41.84 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.965x    
frame=11834 fps= 14 q=25.0 size=   16052kB time=00:13:41.84 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.965x    
frame=11834 fps= 14 q=25.0 size=   16052kB time=00:13:41.84 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.964x    
frame=11834 fps= 14 q=25.0 size=   16052kB time=00:13:41.84 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.964x    
frame=11834 fps= 14 q=25.0 size=   16052kB time=00:13:41.84 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.963x    
frame=11834 fps= 14 q=25.0 size=   16052kB time=00:13:41.84 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.962x    
frame=11834 fps= 14 q=25.0 size=   16052kB time=00:13:41.84 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.962x    
frame=11834 fps= 14 q=25.0 size=   16052kB time=00:13:41.84 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.961x    
frame=11834 fps= 14 q=25.0 size=   16052kB time=00:13:41.84 bitrate= 160.0kbits/s dup=0 drop=433 speed=0.961x    
frame=11835 fps= 14 q=21.0 size=   16076kB time=00:13:41.91 bitrate= 160.2kbits/s dup=0 drop=433 speed=0.96x    
frame=11835 fps= 14 q=21.0 size=   16076kB time=00:13:41.91 bitrate= 160.2kbits/s dup=0 drop=433 speed=0.96x    
frame=11835 fps= 14 q=21.0 size=   16076kB time=00:13:41.91 bitrate= 160.2kbits/s dup=0 drop=433 speed=0.959x    
frame=11835 fps= 14 q=21.0 size=   16076kB time=00:13:41.91 bitrate= 160.2kbits/s dup=0 drop=433 speed=0.959x    
frame=11835 fps= 14 q=21.0 size=   16076kB time=00:13:41.91 bitrate= 160.2kbits/s dup=0 drop=433 speed=0.958x    
frame=11835 fps= 14 q=21.0 size=   16076kB time=00:13:41.91 bitrate= 160.2kbits/s dup=0 drop=433 speed=0.957x    
frame=11835 fps= 14 q=21.0 size=   16076kB time=00:13:41.91 bitrate= 160.2kbits/s dup=0 drop=433 speed=0.957x    
frame=11835 fps= 14 q=21.0 size=   16076kB time=00:13:41.91 bitrate= 160.2kbits/s dup=0 drop=433 speed=0.956x    
......
...... 
frame=11839 fps=9.0 q=22.0 size=   23189kB time=02:16:02.34 bitrate=  23.3kbits/s dup=0 drop=433 speed=6.22x    
frame=11839 fps=9.0 q=22.0 size=   23197kB time=02:16:10.66 bitrate=  23.3kbits/s dup=0 drop=433 speed=6.22x    
frame=11839 fps=9.0 q=22.0 size=   23205kB time=02:16:18.92 bitrate=  23.2kbits/s dup=0 drop=433 speed=6.23x    
frame=11839 fps=9.0 q=22.0 size=   23213kB time=02:16:27.19 bitrate=  23.2kbits/s dup=0 drop=433 speed=6.23x    
frame=11839 fps=9.0 q=22.0 size=   23221kB time=02:16:35.34 bitrate=  23.2kbits/s dup=0 drop=433 speed=6.23x    
frame=11839 fps=9.0 q=22.0 size=   23229kB time=02:16:43.67 bitrate=  23.2kbits/s dup=0 drop=433 speed=6.24x    
frame=11839 fps=9.0 q=22.0 size=   23237kB time=02:16:51.89 bitrate=  23.2kbits/s dup=0 drop=433 speed=6.24x    
frame=11839 fps=9.0 q=22.0 size=   23245kB time=02:17:00.12 bitrate=  23.2kbits/s dup=0 drop=433 speed=6.25x    
frame=11839 fps=9.0 q=22.0 size=   23253kB time=02:17:08.43 bitrate=  23.2kbits/s dup=0 drop=433 speed=6.25x    



    


    There is a way to stops FFMPEG when this happen ?

    


    Thanks !

    


  • Using FFmpeg with URL input causes SIGSEGV in AWS Lambda (Python runtime)

    26 mars, par Dave94

    I'm trying to implement a video converting solution on AWS Lambda following their article named Processing user-generated content using AWS Lambda and FFmpeg.
However when I run my command with subprocess.Popen() it returns -11 which translates to SIGSEGV (segmentation fault).
I've tried to process the video with the newest (4.3.1) static build from John Van Sickle's site as with the "official" ffmpeg-lambda-layer but it seems like it doesn't matter which one I use, the result is the same.

    


    If I download the video to the Lambda's /tmp directory and add this downloaded file as an input to FFmpeg it works correctly (with the same parameters). However I'm trying to prevent this as the /tmp directory's max. size is only 512 MB which is not quite enough for me.

    


    The relevant code which returns SIGSEGV :

    


    ffmpeg_cmd = '/opt/bin/ffmpeg -stream_loop -1 -i "' + s3_source_signed_url + '" -i /opt/bin/audio.mp3 -i /opt/bin/watermark.png -shortest -y -deinterlace -vcodec libx264 -pix_fmt yuv420p -preset veryfast -r 30 -g 60 -b:v 4500k -c:a copy -map 0:v:0 -map 1:a:0 -filter_complex scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1,overlay=(W-w)/2:(H-h)/2,format=yuv420p -loglevel verbose -f flv -'
command1 = shlex.split(ffmpeg_cmd)
p1 = subprocess.Popen(command1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = p1.communicate()
print(p1.returncode) #prints -11


    


    stderr of FFmpeg :

    


    ffmpeg version 4.1.3-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzvbi --enable-libzimg
  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
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
[tcp @ 0x728cc00] Starting connection attempt to 52.219.74.177 port 443
[tcp @ 0x728cc00] Successfully connected to 52.219.74.177 port 443
[h264 @ 0x729b780] Reinit context to 1280x720, pix_fmt: yuv420p
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://bucket.s3.amazonaws.com --> presigned url with 15 min expiration time':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isomavc1
    creation_time   : 2015-09-02T07:42:42.000000Z
  Duration: 00:00:15.64, start: 0.000000, bitrate: 2640 kb/s
    Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709, left), 1280x720 [SAR 1:1 DAR 16:9], 2475 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2015-09-02T07:42:42.000000Z
      handler_name    : L-SMASH Video Handler
      encoder         : AVC Coding
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
    Metadata:
      creation_time   : 2015-09-02T07:42:42.000000Z
      handler_name    : L-SMASH Audio Handler
[mp3 @ 0x733f340] Skipping 0 bytes of junk at 1344.
Input #1, mp3, from '/opt/bin/audio.mp3':
  Metadata:
    encoded_by      : Logic Pro X
    date            : 2021-01-03
    coding_history  : 
    time_reference  : 158760000
    umid            : 0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004500F9E4
    encoder         : Lavf58.49.100
  Duration: 00:04:01.21, start: 0.025057, bitrate: 320 kb/s
    Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
    Metadata:
      encoder         : Lavc58.97
Input #2, png_pipe, from '/opt/bin/watermark.png':
  Duration: N/A, bitrate: N/A
    Stream #2:0: Video: png, 1 reference frame, rgba(pc), 701x190 [SAR 1521:1521 DAR 701:190], 25 tbr, 25 tbn, 25 tbc
[Parsed_scale_0 @ 0x7341140] w:1920 h:1080 flags:'bilinear' interl:0
Stream mapping:
  Stream #0:0 (h264) -> scale
  Stream #2:0 (png) -> overlay:overlay
  format -> Stream #0:0 (libx264)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[h264 @ 0x72d8600] Reinit context to 1280x720, pix_fmt: yuv420p
[Parsed_scale_0 @ 0x733c1c0] w:1920 h:1080 flags:'bilinear' interl:0
[graph 0 input from stream 0:0 @ 0x7669200] w:1280 h:720 pixfmt:yuv420p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[graph 0 input from stream 2:0 @ 0x766a980] w:701 h:190 pixfmt:rgba tb:1/25 fr:25/1 sar:1521/1521 sws_param:flags=2
[auto_scaler_0 @ 0x7670240] w:iw h:ih flags:'bilinear' interl:0
[deinterlace_in_2_0 @ 0x766b680] auto-inserting filter 'auto_scaler_0' between the filter 'graph 0 input from stream 2:0' and the filter 'deinterlace_in_2_0'
[Parsed_scale_0 @ 0x733c1c0] w:1280 h:720 fmt:yuv420p sar:1/1 -> w:1920 h:1080 fmt:yuv420p sar:1/1 flags:0x2
[Parsed_pad_1 @ 0x733ce00] w:1920 h:1080 -> w:1920 h:1080 x:0 y:0 color:0x000000FF
[Parsed_setsar_2 @ 0x733da00] w:1920 h:1080 sar:1/1 dar:16/9 -> sar:1/1 dar:16/9
[auto_scaler_0 @ 0x7670240] w:701 h:190 fmt:rgba sar:1521/1521 -> w:701 h:190 fmt:yuva420p sar:1/1 flags:0x2
[Parsed_overlay_3 @ 0x733e440] main w:1920 h:1080 fmt:yuv420p overlay w:701 h:190 fmt:yuva420p
[Parsed_overlay_3 @ 0x733e440] [framesync @ 0x733e5a8] Selected 1/50 time base
[Parsed_overlay_3 @ 0x733e440] [framesync @ 0x733e5a8] Sync level 2
[libx264 @ 0x72c1c00] using SAR=1/1
[libx264 @ 0x72c1c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x72c1c00] profile Progressive High, level 4.0, 4:2:0, 8-bit
[libx264 @ 0x72c1c00] 264 - core 157 r2969 d4099dd - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=9 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=1 keyint=60 keyint_min=6 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=abr mbtree=1 bitrate=4500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'pipe:':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isomavc1
    encoder         : Lavf58.20.100
    Stream #0:0: Video: h264 (libx264), 1 reference frame ([7][0][0][0] / 0x0007), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 4500 kb/s, 30 fps, 1k tbn, 30 tbc (default)
    Metadata:
      encoder         : Lavc58.35.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/4500000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, fltp, 320 kb/s
    Metadata:
      encoder         : Lavc58.97
frame=   27 fps=0.0 q=32.0 size=     247kB time=00:00:00.03 bitrate=59500.0kbits/s speed=0.0672x
frame=   77 fps= 77 q=27.0 size=    1115kB time=00:00:02.03 bitrate=4478.0kbits/s speed=2.03x
frame=  126 fps= 83 q=25.0 size=    2302kB time=00:00:04.00 bitrate=4712.4kbits/s speed=2.64x
frame=  177 fps= 87 q=26.0 size=    3576kB time=00:00:06.03 bitrate=4854.4kbits/s speed=2.97x
frame=  225 fps= 88 q=25.0 size=    4910kB time=00:00:07.96 bitrate=5047.8kbits/s speed=3.13x
frame=  272 fps= 89 q=27.0 size=    6189kB time=00:00:09.84 bitrate=5147.9kbits/s speed=3.22x
frame=  320 fps= 90 q=27.0 size=    7058kB time=00:00:11.78 bitrate=4907.5kbits/s speed=3.31x
frame=  372 fps= 91 q=26.0 size=    8098kB time=00:00:13.84 bitrate=4791.0kbits/s speed=3.4x


    


    And that's the end of it. It should continue to do the processing until 00:04:02 as that's my audio's length but it stops here every time (approximately this is my video length).

    


    The relevant code which works correctly :

    


    ffmpeg_cmd = '/opt/bin/ffmpeg -stream_loop -1 -i "' + '/tmp/' + s3_source_key + '" -i /opt/bin/audio.mp3 -i /opt/bin/watermark.png -shortest -y -deinterlace -vcodec libx264 -pix_fmt yuv420p -preset veryfast -r 30 -g 60 -b:v 4500k -c:a copy -map 0:v:0 -map 1:a:0 -filter_complex scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1,overlay=(W-w)/2:(H-h)/2,format=yuv420p -loglevel verbose -f flv -'
command1 = shlex.split(ffmpeg_cmd)
p1 = subprocess.Popen(command1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = p1.communicate()
print(p1.returncode) #prints 0


    


    With this code it repeats the video as many times as it has to do to be as long as the audio.

    


    Both versions work correctly on my computer.

    


    This question is almost the same but in my case FFmpeg is able to access the signed URL.