
Recherche avancée
Médias (5)
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
Autres articles (98)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (10854)
-
Getting realtime output of ffmpeg with pexpect or winpexpect
27 février 2014, par Shumanhi i'm trying to get the progress info when calling ffmpeg command line tool, with pexpect, i can get the progress with regex, but the problem is after a few seconds, maybe 20 or 10sec, pexpect stops getting new print outs from ffmpeg, it's still running, i saw the output file size growing. am i doing something wrong ?
cmd = 'ffmpeg -i rtmp://xxxx -c copy -absf aac_adtstoasc /usr/tmp/tmp/out.mp4'
import os
import re
import time
import subprocess
import pexpect
thread = pexpect.spawn(cmd)
print 'started'
reo = re.compile("""\S+\s+(?P\d+) # frame
\s\S+\s+(?P<fps>\d+) # fps
\sq=(?P<q>\S+) # q
\s\S+\s+(?P<size>\S+) # size
\stime=(?P<time>\S+) # time
\sbitrate=(?P<bitrate>[\d\.]+) # bitrate
""", re.X)
durationReo = ('(?<=Duration:\s)\S+(?=,)')
cpl = thread.compile_pattern_list([
pexpect.EOF,
reo,
durationReo
])
while True:
i = thread.expect_list(cpl, timeout=None)
if i == 0: # EOF
print "the sub process exited"
break
elif i == 1:
frame_number = thread.match.group(0)
print frame_number
elif i == 2:
durationLine = thread.match.group(0).strip()
print 'Duration:', durationLine
</bitrate></time></size></q></fps>the output is
started
Duration: 03:55:42.00
frame= 74 fps= 55 q=-1.0 size= 984kB time=00:00:06.17 bitrate=1304.5
frame= 89 fps= 43 q=-1.0 size= 1197kB time=00:00:07.43 bitrate=1319.8
frame= 113 fps= 41 q=-1.0 size= 1407kB time=00:00:09.33 bitrate=1234.8
frame= 125 fps= 32 q=-1.0 size= 1613kB time=00:00:10.35 bitrate=1275.6
frame= 132 fps= 29 q=-1.0 size= 1705kB time=00:00:10.95 bitrate=1274.7
frame= 135 fps= 26 q=-1.0 size= 1825kB time=00:00:11.23 bitrate=1330.6
frame= 140 fps= 24 q=-1.0 size= 2022kB time=00:00:11.60 bitrate=1426.5
frame= 140 fps= 21 q=-1.0 size= 2097kB time=00:00:11.70 bitrate=1467.7
frame= 142 fps= 19 q=-1.0 size= 2224kB time=00:00:11.79 bitrate=1544.4
frame= 143 fps= 17 q=-1.0 size= 2447kB time=00:00:11.98 bitrate=1672.8
frame= 145 fps= 16 q=-1.0 size= 2687kB time=00:00:12.07 bitrate=1822.8
frame= 155 fps= 15 q=-1.0 size= 2780kB time=00:00:12.95 bitrate=1757.6
frame= 163 fps= 15 q=-1.0 size= 2940kB time=00:00:13.65 bitrate=1764.2
frame= 167 fps= 14 q=-1.0 size= 3062kB time=00:00:13.83 bitrate=1812.3
frame= 168 fps= 13 q=-1.0 size= 3149kB time=00:00:14.02 bitrate=1839.4
frame= 190 fps= 14 q=-1.0 size= 3322kB time=00:00:15.78 bitrate=1723.6
frame= 213 fps= 15 q=-1.0 size= 3481kB time=00:00:17.78 bitrate=1603.4
frame= 235 fps= 16 q=-1.0 size= 3671kB time=00:00:19.59 bitrate=1534.3
frame= 244 fps= 16 q=-1.0 size= 3790kB time=00:00:20.29 bitrate=1530.0
frame= 256 fps= 16 q=-1.0 size= 3909kB time=00:00:21.31 bitrate=1502.1
frame= 276 fps= 16 q=-1.0 size= 4029kB time=00:00:22.94 bitrate=1438.8
frame= 299 fps= 17 q=-1.0 size= 4177kB time=00:00:24.93 bitrate=1372.1
frame= 339 fps= 19 q=-1.0 size= 4388kB time=00:00:28.28 bitrate=1270.9
frame= 363 fps= 19 q=-1.0 size= 4557kB time=00:00:30.18 bitrate=1236.8
frame= 405 fps= 20 q=-1.0 size= 4587kB time=00:00:33.76 bitrate=1113.1
frame= 421 fps= 20 q=-1.0 size= 4598kB time=00:00:35.15 bitrate=1071.4it stops here but the code is still running. the file size is still growing and the code didn't exit, so it's not because of the timeout bug in pexpect.
and also , if user press ctrl+c to terminate the main program, ffmpeg still runs in the bg, how do i also tell it to exit ?
edit : i found that the culprit might be ffmpeg is not printing out all the info after 10 lines or so. it only update the display where it needs to be changed.so the regex is not matching, so what to do now , make 6 seperate regex ?
edit2 : it seems if i use this regex, it works...
reo = re.compile("""frame=\s*(?P\d+) # frame
\sfps=\s*(?P<fps>\d+) # fps
\sq=\s*(?P<q>\S+) # q
\ssize=\s*(?P<size>\S+) # size
\stime=\s*(?P<time>\S+) # time
\sbitrate=\s*(?P<bitrate>[\d\.]+) # bitrate
""", re.X)
</bitrate></time></size></q></fps>it's saying only match when frame number is updated, ( maybe this implies all the other text are also updated ? )
edit3 : in linux it's working, but under windows, i don't know how to get it to work with this latest forked winpexpect
basically i'm using the same code
import winpexpect
thread = winpexpect.winspawn(cmd,timeout=99999999999 )there is another problem
winpexpect.EOF
seems not working, every new line caused a match -
Revision 7f17b2e476 : gen_msvs_vcxproj.sh : Set TargetName instead of OutputFile. Set TargetName for l
20 février 2014, par Tom FineganChanged Paths :
Modify /build/make/gen_msvs_vcxproj.sh
gen_msvs_vcxproj.sh : Set TargetName instead of OutputFile.Set TargetName for library builds instead of changing the value of
OutputFile.This fixes the following warnings :
warning MSB8012 : TargetPath does not match Library's OutputFile property
value.Change-Id : I4320b6d9ea922d3a15b9823c7c6694ee33edbf45
-
batch ffmpeg conversion (aspect, crop, and concatenate) and naming based on subfolder
3 avril 2015, par hordorTYIA for any help !
Seems I have a somewhat complicated, multi-step process. If you can help any part of it that would be appreciated.
What I hope to accomplish
- Example of folder/file is here : https://mega.co.nz/#F !RJRWRLTJ !c6b-z3Vl-Tlh0uGbCflx7Q
- I have many subfolders that each contain 7 files from a DVD (originally PAL-encoded I think). I only care about the VTS_01_1.VOB AND VTS_01_2.VOB files. The two files together are one match
- The videos are stretched (from 4:3 to 16:9) and letterboxed. I want to undo that
- The future title of the final MP4 video should be the name of the folder
- BONUS : title of the video should also include the folder before it (e.g. "Friday H2 G1 CAN - BEL.mp4")
I’d like to do this via batch file because there are a lot of folders.
What I have done :
dir/b/s *.vob | findstr /v VIDEO | findstr /v 01_ >list.txt
@echo off
for %%i in list.txt
do
ffmpeg -i VTS_01_1.VOB -aspect 4:3 "%%~pi\v1step1.mp4"
ffmpeg -i vob1.mp4 -vf "crop=704:432:10:72" "%%~pi\v1step2.mp4"
ffmpeg -i vob11.mp4 -c copy "%%~pi\v1step3.ts"
ffmpeg -i VTS_01_2.VOB -aspect 4:3 "%%~pi\v2step1.mp4"
ffmpeg -i vob2.mp4 -vf "crop=704:432:10:72" "%%~pi\v2step2.mp4"
ffmpeg -i vob22.mp4 -bsf h264_mp4toannexb -c copy "%%~pi\v2step3.ts"
ffmpeg -i "concat:v1step3.ts|v2step3.ts" -c copy file.mp4 "%%~pi\Match.mp4"
@echo on
pauseProblem with current code
- Doesn’t start converting (can’t see error message either)
- Doesn’t have the file naming that I want
- A lot of steps in conversation - can that be simplified ?
- Not sure why it wanted the -bsf command for the second conversion but not the first
Apologies if I’d made basic mistakes. I’m a big newbie and just to get this far has taken me hours of research. Thanks again !