Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (103)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

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

  • 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"

Sur d’autres sites (7431)

  • How to combine/concatenate videos stored in AWS S3 bucket based on title of the file name

    9 juin 2020, par orangecube

    I am using a service that allows me to record videos that get automatically pushed to a folder (submissions) in an S3 bucket. There are multiple videos however they need to be grouped together and concatenated so the output is one video per group.

    



    So, basically, any tips on how I can take videos based on the title and stitch them together ?

    



    Example :

    



    Submissions folder will have :

    



    a-100-2.mp4
a-200-6.mp4
b-123-5.mp4


    



    Expected output in processed folder :

    



    a.mp4     - (both 'a' videos get stitched together)
b.mp4     - (only 'b' gets sent over since there is only one video.)


    



    Thanks in advance !

    



    Edit : Some additional and detailed information below if it helps.

    



    The files will be labeled with :
name-location-video_token-stream_token.mp4

    



    Need help creating a script or process that will concatenate the videos using the procedure outlined below :

    



    Processing rules (back end) :

    



      

    1. Check if videos have same video_token in ‘submissions folder’. If so, keep the newest one and delete old ones.

    2. 


    3. Take all videos in ‘submissions folder’ with same name and location in title and concatenate the videos. Save output video to a new folder in the bucket labeled as the location for the folder name. 
Output file name : 
name-location-year.mp4.

    4. 


    



    EXAMPLE :

    



    Submissions folder :
joey-toronto-001-354.mp4

    



    joey-toronto-001-241.mp4 - this will be deleted

    



    joey-toronto-103-452.mp4

    



    alex-montreal-352-232.mp4

    



    alex-montreal-452-223.mp4

    



    Resulting output :

    



    Toronto folder :

    



    Joey-toronto-2020.mp4

    



    Montreal folder :

    



    Alex-montreal-2020.mp4

    


  • Why PyAudio doesn't read 'mp3' ?

    22 octobre 2020, par freshITmeat

    I tried to read file that I give with absolute path.
When I run my code first that I see is this message :

    


    D:\prog\datascience\anaconda\lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
  warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)


    


    I tried this :

    


    PATH_TO_FFMPEG = 'D:\\prog\\ffmpeg-win-2.2.2\\ffmpeg.exe'
pydub.AudioSegment.converter = r'D:\\prog\\ffmpeg-win-2.2.2\\ffmpeg.exe'


    


    And I separately installed ffmpeg with pip. But it didn't help.
When I try this :

    


    raw_sound = pydub.AudioSegment.from_mp3(file=track_path)


    


    where track_path is correct absolute path generated automatically.
So I got this this error :

    


    Traceback (most recent call last):&#xA;  File "D:\prog\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1448, in _exec&#xA;    pydev_imports.execfile(file, globals, locals)  # execute the script&#xA;  File "D:\prog\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile&#xA;    exec(compile(contents&#x2B;"\n", file, &#x27;exec&#x27;), glob, loc)&#xA;  File "D:/testtask2/test_task/testtask/get_mffc.py", line 165, in <module>&#xA;    slice_all_in_a_dir(&#x27;May 27 2020 LNC/Hydrophone 1/raw_records&#x27;)&#xA;  File "D:/testtask2/test_task/testtask/get_mffc.py", line 70, in slice_all_in_a_dir&#xA;    slice_samples(track_path= [file],&#xA;  File "D:/testtask2/test_task/testtask/get_mffc.py", line 48, in slice_samples&#xA;    raw_sound = pydub.AudioSegment.from_mp3(file=track_path)&#xA;  File "D:\prog\datascience\anaconda\lib\site-packages\pydub\audio_segment.py", line 738, in from_mp3&#xA;    return cls.from_file(file, &#x27;mp3&#x27;, parameters=parameters)&#xA;  File "D:\prog\datascience\anaconda\lib\site-packages\pydub\audio_segment.py", line 680, in from_file&#xA;    stdin_data = file.read()&#xA;AttributeError: &#x27;list&#x27; object has no attribute &#x27;read&#x27;&#xA;python-BaseException&#xA;</module>

    &#xA;

  • Can't overlay a WebM transpartent video on top of a MP4 using ffmpeg [closed]

    27 octobre 2020, par Hervé

    I have been struggling for hours trying to overlay a WebM transpartent video on top of a MP4 using ffmpeg. The two videos have the same duration. It should therefore be easy but I am getting desperate.

    &#xA;

    "c:\Program Files\ffmpeg\bin\ffmpeg.exe" ^&#xA;-i drone.mp4 ^&#xA;-i trans.webm -pix_fmt yuv444p  ^&#xA;-filter_complex "[1:v]format=rgba,colorchannelmixer=aa=0.5[trans];[0:v][trans]overlay=10:10" ^&#xA;out.mp4&#xA;

    &#xA;

    I tried MANY MANY different options, formats, but kept obtaining the same outcome : ffmpeg simply ignores the alpha channel of the trans.webm file and considers its background as black. I used the colorchannelmixer=aa=0.5 and the 10:10 offset to actually see the problem. My goal is really to keep the original subtle alpha channel of trans.webm, NOT to set the black color to transparent.

    &#xA;

    Some information about the two files :

    &#xA;

    drone.mp4

    &#xA;

        Metadata:&#xA;    creation_time   : 2020-10-27T10:18:38.000000Z&#xA;    handler_name    : VideoHandler&#xA;    encoder         : h264&#xA;    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default)&#xA;    Metadata:&#xA;    creation_time   : 2020-10-27T10:18:38.000000Z&#xA;    handler_name    : SoundHandler&#xA;

    &#xA;

    trans.webm

    &#xA;

        Input #0, matroska,webm, from &#x27;trans.webm&#x27;:&#xA;    Metadata:&#xA;    ENCODER         : Lavf58.51.100&#xA;    Duration: 00:00:27.00, start: 0.000000, bitrate: 28 kb/s&#xA;    Stream #0:0: Video: vp9 (Profile 0), yuv420p(tv), 1920x1080, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)&#xA;    Metadata:&#xA;    alpha_mode      : 1&#xA;    ENCODER         : Lavc58.100.100 libvpx-vp9&#xA;    DURATION        : 00:00:27.000000000&#xA;

    &#xA;