Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (64)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (9677)

  • Issue with creating Video files from Binary files

    22 septembre 2022, par user20057686

    We have a bunch of binary files that represent Video data.
This is how the binary files were created :

    


      

    1. Used MediaRecorder from a React application to capture the browser window.
To capture the screen stream we used (Navigator.)MediaDevices.getDisplayMedia() API
    2. 


    3. Each video is recorded for 1-second duration
    4. 


    5. This data is then encoded with base64 and sent through a websocket. The server decodes the base64 string and stores the binary data in a file (without any extension)
    6. 


    


    So we now have a bunch of binary files each containing 1 second worth of video data.

    


    The issue is, we are not able to convert all the binary files back to a single video.

    


      

    1. We tried using ffmpeg

      


      copy /b * merged.

      


      ffmpeg -i merged merged.mp4

      


    2. 


    


    Basically first merging all the binary files and converting to mp4. It didn't work. The resulting video duration is not equal to the (number_of_files) in seconds.

    


      

    1. We also tried converting individual chunks with ffmpeg but we get the below error :

      


      [h264 @ 000001522dc74b80] [error] non-existing PPS 0 referenced
[h264 @ 000001522dc74b80] [error] non-existing PPS 0 referenced
[h264 @ 000001522dc74b80] [error] decode_slice_header error
[h264 @ 000001522dc74b80] [error] no frame !
I can provide the complete logs if needed.

      


    2. 


    3. Next thing we tried was to use MoviePy library in Python. We programmatically concatenated the files and saved them as WebM and imported it into MoviePy as a Video.

      


    4. 


    


    In all the above approaches, we couldn't get the full video.

    


  • ffmpeg is not executing clip.run() when compiled with pyinstaller

    24 septembre 2018, par Thriskel

    When executing the .exe file in another machine that doens’t have it’s requeriments installed, running the programs gives the error :

    Exception in thread Thread-1:
    Traceback (most recent call last):
     File "threading.py", line 916, in _bootstrap_inner
     File "threading.py", line 864, in run
     File "y2m.py", line 80, in workit
     File "site-packages\ffmpeg\_run.py", line 202, in run
     File "subprocess.py", line 707, in __init__
     File "subprocess.py", line 992, in _execute_child
    FileNotFoundError: [WinError 2] The system cannot find the file specified

    I’m compiling the exe file using the command :

    pyinstaller y2m.py

    I’ve been reading every other post in this and others forums refered to this kind of problem but I don’t seem to find or understand the way of fixing this.

    The source code is in here

    and the warny2m.txt file is in here

    Things that I have tried :

    • using —paths=pathToLibFolder
    • using -w
    • using an older pyinstaller version
    • adding python3 to path
    • using -p DIR to add C :\Python3\Lib location then sub locations, also individual scripts. (those 3 ways to see if it would work)

    EDIT :

    When using ffmpeg_run.py the code fails. line is clip.run() where clip presents the input and output file.

  • Bash : sort find results using part of a filename

    13 novembre 2015, par utt50

    I have 3 webcams set up in a building, uploading still images to a webserver. I’m using ffmpeg to encode the jpgs to mp4 video.

    The directories are set up like this :

    Cam1/201504
    Cam1/201505
    Cam2/201504
    Cam2/201505
    Cam3/201504
    Cam3/201505

    I’m using the following bash loop/ffmpeg parameters to make one video per camera, per year. This works well so far (well... except that my SSD is rapidly degrading in performance - too many simultaneous read/write operations ?) :

    find Cam2/2013* -name "*.jpg" -print0 | xargs -0 cat | ffmpeg -f image2pipe -framerate 30 -vcodec mjpeg -i - -vcodec libx264 -profile:v baseline -level 3.0 -movflags +faststart -crf 19 -pix_fmt yuv420p -r 30 "Cam2-2013-30fps-19crf.mp4"

    The individual files are named like this (confusing ffmpeg’s built-in file sequencer) :

    Cam1_2015052413543201.jpg
    Cam1_2015052413544601.jpg
    Cam2_2015052413032601.jpg
    Cam2_2015052413544901.jpg

    I now need to create one video for an entire year across all 3 cameras, ordered by timestamp. To accomplish this, I need to sort the find results by the segment of the filename after the underscore.

    What do I pipe the find output to to accomplish this ? For example, the files above would be ordered like this :

    Cam2_2015052413032601.jpg
    Cam1_2015052413543201.jpg
    Cam1_2015052413544601.jpg
    Cam2_2015052413544901.jpg

    Any help is very much appreciated !