Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (112)

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

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (13749)

  • Google Speech Recognition API output errors, unsure why they're occuring

    8 novembre 2019, par Requiem_7

    This is the output for when I feed flac files into Google’s Speech Recognition API. It says that if starts and finishes most of the files but then it gives me these errors when it nears the end. I have checked and all these files are native flac files. I took out a good chunk of the output above "source/out70.flac started" becuase it’s all the same besides the file number.

    source/out70.flac started
    source/out25.flac started
    source/out17.flac done
    source/out18.flac started
    source/out25.flac done
    source/out20.flac done
    source/out21.flac started
    source/out10.flac done
    source/out100.flac started
    source/out14.flac done
    source/out18.flac done
    source/out21.flac done
    Traceback (most recent call last):
     File "C:\Users\hmkur\AppData\Roaming\Python\Python37\site-packages\speech_recognition\__init__.py", line 203, in __enter__
       self.audio_reader = wave.open(self.filename_or_fileobject, "rb")
     File "C:\Program Files (x86)\Python37-32\lib\wave.py", line 510, in open
       return Wave_read(f)
     File "C:\Program Files (x86)\Python37-32\lib\wave.py", line 164, in __init__
       self.initfp(f)
     File "C:\Program Files (x86)\Python37-32\lib\wave.py", line 129, in initfp
       self._file = Chunk(file, bigendian = 0)
     File "C:\Program Files (x86)\Python37-32\lib\chunk.py", line 63, in __init__
       raise EOFError
    EOFError

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
     File "C:\Users\hmkur\AppData\Roaming\Python\Python37\site-packages\speech_recognition\__init__.py", line 208, in __enter__
       self.audio_reader = aifc.open(self.filename_or_fileobject, "rb")
     File "C:\Program Files (x86)\Python37-32\lib\aifc.py", line 917, in open
       return Aifc_read(f)
     File "C:\Program Files (x86)\Python37-32\lib\aifc.py", line 352, in __init__
       self.initfp(file_object)
     File "C:\Program Files (x86)\Python37-32\lib\aifc.py", line 314, in initfp
       chunk = Chunk(file)
     File "C:\Program Files (x86)\Python37-32\lib\chunk.py", line 63, in __init__
       raise EOFError
    EOFError

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
     File "C:\Users\hmkur\AppData\Roaming\Python\Python37\site-packages\speech_recognition\__init__.py", line 234, in __enter__
       self.audio_reader = aifc.open(aiff_file, "rb")
     File "C:\Program Files (x86)\Python37-32\lib\aifc.py", line 917, in open
       return Aifc_read(f)
     File "C:\Program Files (x86)\Python37-32\lib\aifc.py", line 358, in __init__
       self.initfp(f)
     File "C:\Program Files (x86)\Python37-32\lib\aifc.py", line 314, in initfp
       chunk = Chunk(file)
     File "C:\Program Files (x86)\Python37-32\lib\chunk.py", line 63, in __init__
       raise EOFError
    EOFError

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
     File "C:\Users\hmkur\Desktop\Python\Transcribing_Audio_GoogleAPI_Python\fast.py", line 92, in <module>
       all_text = pool.map(transcribe, enumerate(files))
     File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\pool.py", line 268, in map
       return self._map_async(func, iterable, mapstar, chunksize).get()
     File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\pool.py", line 657, in get
       raise self._value
     File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\pool.py", line 121, in worker
       result = (True, func(*args, **kwds))
     File "C:\Program Files (x86)\Python37-32\lib\multiprocessing\pool.py", line 44, in mapstar
       return list(map(*args))
     File "C:\Users\hmkur\Desktop\Python\Transcribing_Audio_GoogleAPI_Python\fast.py", line 82, in transcribe
       with sr.AudioFile(name) as source:
     File "C:\Users\hmkur\AppData\Roaming\Python\Python37\site-packages\speech_recognition\__init__.py", line 236, in __enter__
       raise ValueError("Audio file could not be read as PCM WAV, AIFF/AIFF-C, or Native FLAC; check if file is corrupted or in another format")
    ValueError: Audio file could not be read as PCM WAV, AIFF/AIFF-C, or Native FLAC; check if file is corrupted or in another format
    </module>
  • Manim Animation Rendering Fails on Google Cloud Run : Segment Combination Issues [closed]

    28 juin, par Ahaskar Kashyap

    Problem Summary

    &#xA;

    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.

    &#xA;

    Environment

    &#xA;

      &#xA;
    • Platform : Google Cloud Run (8GB RAM, 4 CPU)
    • &#xA;

    • Container : Debian 12 (bookworm) with Python 3.9.23
    • &#xA;

    • FFmpeg : 5.1.6 (with h264 support enabled)
    • &#xA;

    • Manim : Latest version with -ql (480p15) quality setting
    • &#xA;

    • Timeout : 240 seconds
    • &#xA;

    &#xA;

    Observed Behavior

    &#xA;

    &#xA;&#xA;&#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;&#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    &#xA;

    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

    &#xA;

    Code Structure

    &#xA;

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

    &#xA;

    Specific Issues

    &#xA;

    Issue 1 : False Negatives (Simple Animations)

    &#xA;

      &#xA;
    • What happens : Manim creates 2 segments successfully, FFmpeg combines them into final video
    • &#xA;

    • Problem : Final video exists and is playable, but process reports "Manim failed (code 1)"
    • &#xA;

    • Evidence : Can download the "failed" video via /videos/filename.mp4 and it plays correctly
    • &#xA;

    &#xA;

    Issue 2 : Real Failures (Complex Animations)

    &#xA;

      &#xA;
    • What happens : Manim creates 8+ segments successfully
    • &#xA;

    • Problem : FFmpeg combination step genuinely fails, no final video created
    • &#xA;

    • Error : Process exits with code 1, only partial segments remain
    • &#xA;

    &#xA;

    Key Questions

    &#xA;

      &#xA;
    1. Why does FFmpeg combination work for 2 segments but fail for 8+ segments ?
    2. &#xA;

    3. Why does the same code work locally but fail on Cloud Run ?
    4. &#xA;

    5. Is this a Cloud Run container limitation, FFmpeg configuration issue, or Manim-specific problem ?
    6. &#xA;

    7. How can I debug FFmpeg combination failures in a containerized environment ?
    8. &#xA;

    &#xA;

    File Structure (When Working)

    &#xA;

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

    &#xA;

    Error Output

    &#xA;

    &#128274; ISOLATED: Manim return code: 1&#xA;Manim failed (code 1): [stderr contains FFmpeg errors]&#xA;

    &#xA;

    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.

    &#xA;

    Investigation Results

    &#xA;

    What Works :

    &#xA;

      &#xA;
    • ✅ Local development (identical code works perfectly)
    • &#xA;

    • ✅ FFmpeg installation (ffmpeg -version works, h264 encoders available)
    • &#xA;

    • ✅ Segment creation (all uncached_*.mp4 files created with correct sizes)
    • &#xA;

    • ✅ Simple animations after container restart
    • &#xA;

    &#xA;

    What Doesn't Work :

    &#xA;

      &#xA;
    • ❌ Segment combination for 8+ segments
    • &#xA;

    • ❌ Status detection for 2-segment animations
    • &#xA;

    • ❌ Animations after multiple renders (resource accumulation ?)
    • &#xA;

    &#xA;

    Theories Tested :

    &#xA;

      &#xA;
    1. Resource constraints : Upgraded to 16GB/8CPU - made things worse
    2. &#xA;

    3. FFmpeg version : Upgraded 5.1.6→7.x - broke basic functionality
    4. &#xA;

    5. File accumulation : Container restart helps temporarily
    6. &#xA;

    7. Path detection : Isolation script may look in wrong directories
    8. &#xA;

    &#xA;

  • FFmpeg take screenshots from videos with variable duration

    9 mai 2015, par Igor Loskutov

    I have bunch of videos which are rather long, so I take screenshots of 10th second (-ss 00:00:10). Sometimes videos are very short, like 5 seconds, and -ss 00:00:10 fails.

    I don’t have an option to compute video size as don’t have an option to download them whole (videos are hosted on S3 and used as streams through CloudFront).

    Maybe there are some built-in options that I overlooked ?

    What I really don’t want to do is shorten -ss option gradually on fails so it would be the last resort.