
Recherche avancée
Autres articles (49)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne 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, parWe 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, parCertains 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 RuneFor 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 Wangavcodec/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.0G2, Test result :
encode the v210 input data for testing :
./ffmpeg -y -i 4k_422.ts -c:v v210 -vframes 10 test.avimaster :
./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=186552kBpatch 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=231896kBSigned-off-by : Limin Wang <lance.lmwang@gmail.com>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
Output always corrupt from FFMPEG using selenium python
28 avril 2021, par Didit Setiawani 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)