Recherche avancée

Médias (0)

Mot : - Tags -/publication

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

Autres articles (97)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (7646)

  • mobile-ffmpeg can't open gallery videos

    25 juillet 2020, par MoTahir

    I'm trying to practice video editing with ffmpeg, I made a sample app which allows the users to either record a video then edit it or choose a video from gallery to edit.

    


    When the user records videos with the application a temporary file is created then that file path is sent to ffmpeg to edit then save

    


    "-i $videoPath  -vf crop=ih/$screenR:ih $outPath"


    


    I'm just cropping the video then saving it as a test, The above command works as intended without any problems.

    


    When I try to edit videos from gallery it doesn't work, I understand that the storage system in new versions of android devices is different, the uri is just an address to the content not an actual path to the file

    


    the video path from gallery is something like this

    


    


    content ://media/external/file/38625

    


    


    ffmpeg can not access the video with that path so it can't edit it, what should I do ? thank you in advance.

    


  • Combine videos using Ffmpeg in Lambda and S3

    6 mars 2021, par Stan van Weringh

    Goal

    


    Im making a video converting tool with AWS Lambda where videos can be uploaded using a webpage to a S3 bucket. When all videos (1 or more) are uploaded to the bucket a done.json file will be uploaded last. A Lambda function is called on every upload and only will do something when the final done.json is uploaded.

    


    Code walkthrough

    


    Once the done.json is uploaded it will get all the videos in the current folder and convert them using Ffmpeg like this :

    


     i = 0
 ts_video_paths = []
 for video in video_paths:
     video_ts = os.path.splitext(video)[0] + '.ts'
     s3_source_signed_url = s3_client.generate_presigned_url('get_object', Params={'Bucket': S3_SOURCE_BUCKET, 'Key': video},  ExpiresIn=SIGNED_URL_TIMEOUT)
                
     ts_video_paths.append(f'/tmp/{rnd}/ts_video{i}.ts')
     ffmpeg_ts_cmd = f'/opt/bin/ffmpeg -i {s3_source_signed_url} -c:v copy -copyts -bsf:v h264_mp4toannexb -f mpegts -flags -global_header -af aresample=async=1:first_pts=0 /tmp/{rnd}/ts_video{i}.ts'
     command = shlex.split(ffmpeg_ts_cmd)
     subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
                
     i += 1


    


    After all the .ts files are made they will be made into one file (saw somewhere that you can just add .ts files)

    


     data = b''
 for video in ts_video_paths:
   f = open(video, 'rb')
   data += f.read()
            
   f = open(f'/tmp/{rnd}/all.ts', 'wb')
   f.write(data)
   f.close()          


    


    The last step is to convert the all.ts to a .mp4 video. In this step I sometimes can't an error. It only happens with some videos and I cant find a solution.

    


    ffmpeg_combine_cmd = f'/opt/bin/ffmpeg -i /tmp/{rnd}/all.ts -acodec copy -vcodec copy -f mp4 /tmp/{rnd}/video.mp4'
command_final = shlex.split(ffmpeg_combine_cmd)
p2 = subprocess.run(command_final , check=True)  # Sometimes gives an error videos 


    


    Error that I get with some video converting :

    


    Command '['/opt/bin/ffmpeg', '-i', '/tmp/CLZHC/all.ts', '-acodec', 'copy', '-vcodec', 'copy', '-f', 'mp4', '/tmp/CLZHC/video.mp4']' returned non-zero exit status 1.


    


    My question to you

    


      

    • Is this the "right" way to tackle this problem ?
    • 


    • Does someone know what the erro is im getting ?
    • 


    • Or can anybody give me tips ?
    • 


    


  • Special characters in ffmpeg cmd

    28 avril 2021, par user12221095

    Good day.

    


    I am trying to write a batch file to easily record an specific window running on the background while I can work on something else. The current code is :

    


    set Clase=Estacion Servicio 1
set Audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{9B5F7B86-881D-490E-BA6F-1D4DFE78C334}"
ffmpeg -rtbufsize 2G -f gdigrab -framerate 20 -i title="Title" -f dshow -i audio=%Audio% -b:v 180K -maxrate 200K -bufsize 1M -ab 96k "C:\Users\Usuario\Documents\Clases\%Clase%.mp4"
pause 


    


    The code works great for the quality required, however the title of the window I need to capture sometimes has special characters which ffmpeg isn't recognising, for example, replacing "Title" with :

    


    Reproductor de grabaciones basadas en red - Curso Modelación y cálculo de una estación de servicio (1/6)

    


    (title copied from PowerShell to avoid spelling mistakes)

    


    fails with the following error :

    


    [gdigrab @ 0000018079ce37c0] Can't find window 'Reproductor de grabaciones basadas en red - Curso Modelación y cálculo de una estación de servicio (1/6)', aborting.
title=Reproductor de grabaciones basadas en red - Curso Modelación y cálculo de una estación de servicio (1/6): I/O error


    


    I imagine all I have to do is replace the "á" and "ó" with something, but I don't know what.

    


    Thanks.