Recherche avancée

Médias (91)

Autres articles (50)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

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

Sur d’autres sites (5379)

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


    


  • FFMpeg multiple action in single command

    10 juin 2020, par Hasan Yilmaz

    i want to convert and resize a video and put a logo on it.
i am doing this with 2 different command line like this.

    



    command line1 :
D :\Logo\ffmpeg -i "D :\Logo\video.mxf" -vf scale=1280:720 "D :\Logo\video.mxf_fullHDtoHD.mp4"

    



    command line 2 :
D :\Logo\ffmpeg -i "D :\Logo\video.mxf_fullHDtoHD.mp4" -i D :\Logo\logo_720p.png -filter_complex "[0:v][1:v] overlay=60:50" "D :\Logo\output_720p_with_logo.mp4"

    



    can i do this in just one line command.
thank you very much

    


  • Opencv tracking object moving on live video

    14 août 2016, par user3689259

    i want to detect logo inside video in order to remove it , the logo moving .
    if possible add logo.png for hide the logo when showing .