
Recherche avancée
Autres articles (112)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (11800)
-
7 Reasons to Migrate from Google Analytics to Matomo Now
15 mai 2022, par Erin -
Manim Animation Rendering Fails on Google Cloud Run : Segment Combination Issues [closed]
28 juin, par Ahaskar KashyapProblem Summary


I'm running a Manim animation server on Google Cloud Run that successfully creates video segments but fails during the FFmpeg combination step. The behavior is inconsistent based on the number of segments created.


Environment


- 

- Platform : Google Cloud Run (8GB RAM, 4 CPU)
- Container : Debian 12 (bookworm) with Python 3.9.23
- FFmpeg : 5.1.6 (with h264 support enabled)
- Manim : Latest version with
-ql
(480p15) quality setting - Timeout : 240 seconds












Observed Behavior






 Animation Complexity 

Segments Created 

Final Video 

Status 







 Simple (2 segments) 

✅ Success 

✅ Created (7,681 bytes) 

❌ Reports "failed" 




 Complex (8+ segments) 

✅ Success 

❌ Not created 

❌ Actually fails 







Code Structure


# Manim command used
manim_cmd = [
 'manim', python_file, scene_class,
 '--media_dir', output_dir,
 '-ql', # Low quality (480p15)
 '--disable_caching',
 '--output_file', f"{output_filename}.mp4",
 '--verbosity', 'ERROR',
 '--progress_bar', 'none',
 '--write_to_movie'
]



Specific Issues


Issue 1 : False Negatives (Simple Animations)


- 

- What happens : Manim creates 2 segments successfully, FFmpeg combines them into final video
- Problem : Final video exists and is playable, but process reports "Manim failed (code 1)"
- Evidence : Can download the "failed" video via
/videos/filename.mp4
and it plays correctly








Issue 2 : Real Failures (Complex Animations)


- 

- What happens : Manim creates 8+ segments successfully
- Problem : FFmpeg combination step genuinely fails, no final video created
- Error : Process exits with code 1, only partial segments remain








Key Questions


- 

- Why does FFmpeg combination work for 2 segments but fail for 8+ segments ?
- Why does the same code work locally but fail on Cloud Run ?
- Is this a Cloud Run container limitation, FFmpeg configuration issue, or Manim-specific problem ?
- How can I debug FFmpeg combination failures in a containerized environment ?










File Structure (When Working)


/app/manim_animations/
└── animation_name/
 └── videos/
 └── animation_name_1234/
 └── 480p15/
 ├── partial_movie_files/
 │ └── SceneClass/
 │ ├── uncached_00000.mp4
 │ └── uncached_00001.mp4
 └── final_animation.mp4 # This gets created for 2 segments



Error Output


🔒 ISOLATED: Manim return code: 1
Manim failed (code 1): [stderr contains FFmpeg errors]



Has anyone encountered similar issues with Manim + FFmpeg on Cloud Run or other containerized environments ? Any insights into why segment count affects combination success would be greatly appreciated.


Investigation Results


What Works :


- 

- ✅ Local development (identical code works perfectly)
- ✅ FFmpeg installation (
ffmpeg -version
works, h264 encoders available) - ✅ Segment creation (all
uncached_*.mp4
files created with correct sizes) - ✅ Simple animations after container restart










What Doesn't Work :


- 

- ❌ Segment combination for 8+ segments
- ❌ Status detection for 2-segment animations
- ❌ Animations after multiple renders (resource accumulation ?)








Theories Tested :


- 

- Resource constraints : Upgraded to 16GB/8CPU - made things worse
- FFmpeg version : Upgraded 5.1.6→7.x - broke basic functionality
- File accumulation : Container restart helps temporarily
- Path detection : Isolation script may look in wrong directories










-
Red5 live stream - huge delay on localhost
23 janvier 2013, par user1958067I m running Red5 1.0.0 RC1, with JW Player and ffmpeg on Linux Mint14
There is a huge delay while streaming, even when everythings happening on my
machine/localhost
.I do following steps :
-
FFmpeg :
ffmpeg -i 'http://localhost:port' rtmp://localhost/oflaDemo/live.flv
-
Red5 :
TCPnoDelay
ist set to true. -
JW Player : Bufferlength is set to 0. Also tried 2 and 3.
:
<code class="echappe-js"><script type=&#39;text/javascript&#39;><br />
jwplayer(&#39;mediaspace&#39;).setup({<br />
&#39;flashplayer&#39;: &#39;player.swf&#39;,<br />
&#39;file&#39;: &#39;live&#39;,<br />
&#39;type&#39;: &#39;rtmp&#39;,<br />
&#39;streamer&#39;: &#39;rtmp://localhost/oflaDemo&#39;,<br />
&#39;controlbar&#39;: &#39;none&#39;,<br />
&#39;autostart&#39;: &#39;true&#39;,<br />
&#39;bufferlength&#39;: &#39;3&#39;,<br />
&#39;width&#39;: &#39;640&#39;,<br />
&#39;height&#39;: &#39;380&#39;<br />
});<br />
</script>The delay is something between 7-10 seconds !
This all is happening on and from localhost, so bandwith shouldnt be the issue. -