Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (80)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (6074)

  • Output always corrupt from FFMPEG using selenium python

    28 avril 2021, par Didit Setiawan

    i try to running testcase using selenium python and want to record video on every testacases, but when i try the output is always corrupted. FFMPEG process are running, no error appear on the output line. I attach my code, Please anyone help me is there anything i need to add or remove

    


    here's the first file, for recorder :

    


    import subprocess
from subprocess import Popen
from subprocess import call


class recorderMethod():
    videoRecording = None

    @staticmethod
    def recorder_start(res,name):
        rec_lib          = 'ffmpeg -y -rtbufsize 2000M -f dshow  -i video="screen-capture-recorder" -s '
        resolution       = res
        buffer           = ' -b:v 512k -r 20 -vcodec libx264 '
        filename         = name
        extension        = '.mp4'
        complete_command = rec_lib+resolution+buffer+filename+extension

        recorderMethod.videoRecording = Popen(str(complete_command))

    @staticmethod
    def recorder_stop():
        if recorderMethod.videoRecording.poll() is None:
            call('taskkill /F /T /PID ' + str(recorderMethod.videoRecording.pid))


    


    here's the main test file for record the video

    


    import unittest
import recorder_main
from selenium import webdriver
from time import sleep

class recordingTest(unittest.TestCase):
    #init test
    browser         = webdriver.Chrome()
    baseurl         = 'http://www.facebook.com/'
    record          = recorder_main.recorderMethod
    
    #setup
    def setUp(self):
        #declare to use browser
        self.driver = recordingTest.browser
        #make variable for easy access
        driver = self.driver
        #maximize Firefox
        driver.maximize_window()
        #go to maukerja
        driver.get(recordingTest.baseurl)

    #test001
    def test_001_record(self):
        #start recording
        recordingTest.record.recorder_start('1920x1080','Test_Sleep')
        sleep(10)
        #stop_recording
        recordingTest.record.recorder_stop()


    #teardown
    def test_999_ShutDownTest(self):
        self.driver.close()
        
if __name__ == '__main__':
    unittest.main(exit=False)


    


  • Ffmpeg command to create mp4 video sharable to Instagram, etc

    5 février 2019, par Ken Rothman

    I’m creating an mp4 video in my Android application by combining a static 1080x1080 .png image with 24/48 .wav audio, trying to generate a file that is compatible with and can be shared to social media platforms, such as Facebook and Instagram (feed).

    When I attempt to share the videos I’ve created, they load and preview in the Instagram app (tested on both Android and iOS), but after hitting the "Share" button on the final step, the UI returns to my feed and the upload progress immediately switches to "Not Posted Yet. Try Again". If I then tap the retry button, I immediately get a dialog stating "Couldn't Post Video" "There was a problem rendering your video. If this keeps happening, you may have to use another video."

    I’m using ffmpeg (via tanersener’s mobile-ffmpeg library) to do this.

    All of the documentation I’ve found this far does not show highly specific details for upload requirements for Instagram.
    I’m using AAC for audio, and h.264 (libx264) for video.
    The sample I’m using has a duration of 30 seconds. The PNG, as mentioned above, is 1080x1080.

    I’ve taken Android out of the picture by using cmd-line ffmpeg on my Mac with the same input files and testing many variations of parameters, none of which create an uploadable video.

    I have a similar .mp4 file created by our iOS app (not using ffmpeg), which I brought over to my Android device and it uploads successfully.
    I’ve also sent my .mp4 file to the iOS device and it will not upload, so it seems likely it’s an encoding issue of some sort.

    I have yet to find a combination of ffmpeg parameters that generate a video that can be successfully shared to Instagram.

    Is there a way to get verbose logs from Instagram to have some sort of idea why it’s rejecting the files ?

    This is the ffmpeg command I’ve been concentrating on :

    ffmpeg -i test.wav -i test.png -c:a aac -b:a 256k -ar 44100 -c:v libx264 -b:v 5M -r 30 -pix_fmt yuv420p -preset faster -tune stillimage test.mp4

    I’ve tried all sorts of variations of video and audio bitrates, framerates, scaling, presets, tunes, profiles, etc. But no luck as of yet.

    Does anyone have a working ffmpeg command for generating videos for Instagram ?

  • How to setup a video chunker or FFMPEG to bypass Cloudflare ?

    20 avril 2021, par RustyGates

    In full transparency, I am a noob so please forgive my lack of appropriate lingo as I am just barely starting to learn the languages of web development. Hope you don't have to try and decipher too much of what I'm trying to say.

    


    So in an attempt to put this as simply as possible.

    


    I have a PHP Script CMS that I have been doing some extensive custom work to. As mentioned, I am still learning for the most part and while my front end skills are getting very well polished, I'm still completely lose mostly when it comes to back end endeavors. And for reference, the CMS I am using is Wowonder from Codecanyon. It's essentially just a social media cms, like Facebook.

    


    I have this installed on my own dedicated server, have WHM/Cpanel, all that good stuff. I also have my website/domain setup through Cloudflare properly. This is where the issue arises. Cloudflare limits uploads to 100 megabytes. Some of the users on my website will be uploading videos and media much bigger than 100 megabytes. (Up to 10 gigabytes in some cases). I have researched the issue long and hard and it would seem to me the obvious was to resolve the problem would be to use a video chunker (and/or something like FFMPEG ? But not sure if FFMPEG Is capable of it. Am just assuming).

    


    I understand the basic, general idea of what chunkers do and have found some seemingly good options. Will post a couple below just as an example but not necessarily options I was considering.

    


    [https://github.com/blueimp/jQuery-File-Upload][1]

    


    [https://github.com/c0decracker/video-splitter][2]

    


    [https://github.com/appijumbo/video-chunk][3]

    


    So again, I understand the basic idea, it would chunk up the video while uploading (somewhere beneath the 100 megabyte maximum) to bypass Cloudflare's limit, and then stitch the video back together so it's in it's in it's complete form again. However, with a website that has many users uploading, I have not the slightest idea what the best solution is, or if this is the best solution at all, and if it is, how to implement it properly.

    


    I have also installed FFMPEG on my server and did so successfully but not sure how to implement that properly either now how to tell it that it should automatically encode any videos uploaded to the website by any users and so on, nor sure if it's possible to do chunking with it although it seemingly is ?

    


    Any advice is on the topic is much appreciated and I would be much obliged. Thanks in advance.