Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

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

Autres articles (49)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

Sur d’autres sites (5469)

  • Combine 2 .FLV videos

    4 décembre 2015, par Rune

    For the last 4 hours I’ve been trying to combine 2 .flv files into one using ffmpeg (or well, just C# in general).

    Here’s what I got so far :
    I’ve converted both the videos to .mp4 videos :

    "-i " + videoFileLocation + " -c copy -copyts " + newConvertedFileLocation

    I have then combined the two .mp4 files into a single one using :
    (txtPath is the text file with the two mp4 file locations)

    "-f concat -i " + txtPath + " -c copy " + saveLocation

    This ends up with an mp4 file which contains the combination of both the videos BUT with the following fault :

    The length of the first video is 0:05

    The length of the second video is 6:11

    However the length of the combined video is for some reason 07:51 - thus the video runs at a slower pace than it should.

    Furthermore the audio is async with the video.

    What am I doing wrong here ?

    I haven’t used ffmpeg before and I just wanna get this working.

    Any help is greatly appreciated !

    As requested here is the output from running ’ffmpeg -i input1.flv -i input2.flv’ :

    ffmpeg version 2.7 Copyright (c) 2000-2015 the FFmpeg developers   built with gcc 4.9.2 (GCC)...

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'filepath\input1.flv':   Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 1970-01-01 00:00:00
       encoder         : Lavf53.24.2   Duration: 00:00:05.31, start: 0.000000, bitrate: 1589 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1205 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 384 kb/s (default)
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : SoundHandler Input #1, flv, from 'filepath\input2.flv':   Metadata:
       audiosize       : 4476626
       canSeekToEnd    : true
       datasize        : 23876671
       videosize       : 19004263
       hasAudio        : true
       hasCuePoints    : false
       hasKeyframes    : true
       hasMetadata     : true
       hasVideo        : true
       lasttimestamp   : 372
       metadatacreator : flvtool++ (Facebook, Motion project, dweatherford)
       totalframes     : 9298
       encoder         : Lavf56.36.100   Duration: 00:06:11.92, start: 0.080000, bitrate: 513 kb/s
       Stream #1:0: Video: h264 (High), yuv420p, 646x364 [SAR 1:1 DAR 323:182], 400 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc
       Stream #1:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 96 kb/s At least one output file must be specified
  • avcodec/v210dec : add support for frame and slice threading

    25 novembre 2019, par Limin Wang
    avcodec/v210dec : add support for frame and slice threading
    

    1, Test server configure :
    [root@localhost ]# cat /proc/cpuinfo |grep "model name"
    model name : Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
    model name : Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
    ...

    [root@localhost ]# free -h
    total used free shared buff/cache available
    Mem : 102G 1.1G 100G 16M 657M 100G
    Swap : 4.0G 0B 4.0G

    2, Test result :
    encode the v210 input data for testing :
    ./ffmpeg -y -i 4k_422.ts -c:v v210 -vframes 10 test.avi

    master :
    ./ffmpeg -y -threads 1 -stream_loop 1000 -i ./test.avi -benchmark -f null -
    frame=10010 fps= 60 q=-0.0 Lsize=N/A time=00:38:26.30 bitrate=N/A speed=13.7x
    video:5240kB audio:432432kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : unknown
    bench : utime=101.869s stime=66.181s rtime=167.996s
    bench : maxrss=186552kB

    patch applied :
    ./ffmpeg -y -threads 2 -thread_type slice -stream_loop 1000 -i ./test.avi -benchmark -f null -
    frame=10010 fps= 72 q=-0.0 Lsize=N/A time=00:38:26.30 bitrate=N/A speed=16.5x
    video:5240kB audio:432432kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : unknown
    bench : utime=103.562s stime=74.858s rtime=139.599s
    bench : maxrss=188616kB

    ./ffmpeg -y -threads 2 -thread_type frame -stream_loop 1000 -i ./test.avi -benchmark -f null -
    frame=10010 fps= 85 q=-0.0 Lsize=N/A time=00:38:26.30 bitrate=N/A speed=19.6x
    video:5240kB audio:432432kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : unknown
    bench : utime=114.310s stime=92.685s rtime=117.693s
    bench : maxrss=231896kB

    Signed-off-by : Limin Wang <lance.lmwang@gmail.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/v210dec.c
    • [DH] libavcodec/v210dec.h
  • 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

    &#xA;

    here's the first file, for recorder :

    &#xA;

    import subprocess&#xA;from subprocess import Popen&#xA;from subprocess import call&#xA;&#xA;&#xA;class recorderMethod():&#xA;    videoRecording = None&#xA;&#xA;    @staticmethod&#xA;    def recorder_start(res,name):&#xA;        rec_lib          = &#x27;ffmpeg -y -rtbufsize 2000M -f dshow  -i video="screen-capture-recorder" -s &#x27;&#xA;        resolution       = res&#xA;        buffer           = &#x27; -b:v 512k -r 20 -vcodec libx264 &#x27;&#xA;        filename         = name&#xA;        extension        = &#x27;.mp4&#x27;&#xA;        complete_command = rec_lib&#x2B;resolution&#x2B;buffer&#x2B;filename&#x2B;extension&#xA;&#xA;        recorderMethod.videoRecording = Popen(str(complete_command))&#xA;&#xA;    @staticmethod&#xA;    def recorder_stop():&#xA;        if recorderMethod.videoRecording.poll() is None:&#xA;            call(&#x27;taskkill /F /T /PID &#x27; &#x2B; str(recorderMethod.videoRecording.pid))&#xA;

    &#xA;

    here's the main test file for record the video

    &#xA;

    import unittest&#xA;import recorder_main&#xA;from selenium import webdriver&#xA;from time import sleep&#xA;&#xA;class recordingTest(unittest.TestCase):&#xA;    #init test&#xA;    browser         = webdriver.Chrome()&#xA;    baseurl         = &#x27;http://www.facebook.com/&#x27;&#xA;    record          = recorder_main.recorderMethod&#xA;    &#xA;    #setup&#xA;    def setUp(self):&#xA;        #declare to use browser&#xA;        self.driver = recordingTest.browser&#xA;        #make variable for easy access&#xA;        driver = self.driver&#xA;        #maximize Firefox&#xA;        driver.maximize_window()&#xA;        #go to maukerja&#xA;        driver.get(recordingTest.baseurl)&#xA;&#xA;    #test001&#xA;    def test_001_record(self):&#xA;        #start recording&#xA;        recordingTest.record.recorder_start(&#x27;1920x1080&#x27;,&#x27;Test_Sleep&#x27;)&#xA;        sleep(10)&#xA;        #stop_recording&#xA;        recordingTest.record.recorder_stop()&#xA;&#xA;&#xA;    #teardown&#xA;    def test_999_ShutDownTest(self):&#xA;        self.driver.close()&#xA;        &#xA;if __name__ == &#x27;__main__&#x27;:&#xA;    unittest.main(exit=False)&#xA;

    &#xA;