correstion diverses

This commit is contained in:
rep 2015-11-27 19:03:32 +01:00
parent 29b9699e63
commit 5ce0a89bb6

View File

@ -1,7 +1,6 @@
#!/usr/bin/python #!/usr/bin/python
# coding: utf-8 # coding: utf-8
<<<<<<< HEAD
''' '''
ffmpeg -i drone.mp4 -vf fps=30 ./drone/img%03d.jpg ffmpeg -i drone.mp4 -vf fps=30 ./drone/img%03d.jpg
''' '''
@ -9,10 +8,6 @@ ffmpeg -i drone.mp4 -vf fps=30 ./drone/img%03d.jpg
import sys # sys.argv[] import sys # sys.argv[]
import Image # Image.open() import Image # Image.open()
import os # os.getcwd import os # os.getcwd
=======
import sys
import Image
>>>>>>> adc56b0f751a338bfe5c843061889df049d4390b
''' '''
im1 = Image.open(str(sys.argv[1])) im1 = Image.open(str(sys.argv[1]))
@ -35,13 +30,12 @@ for x in range(1,allongement+1):
print('%03.1i' % x) print('%03.1i' % x)
''' '''
<<<<<<< HEAD
script = os.getcwd() script = os.getcwd()
print script print script
index = 1 index = 1
allongement = 10 #4818 allongement = 16 #4818
im1 = Image.open("./captain/img001.jpg") im1 = Image.open("./capt/img001.jpg")
im2 = Image.new("RGBA",(im1.size[0]*allongement, im1.size[1]*allongement)) im2 = Image.new("RGBA",(im1.size[0]*allongement, im1.size[1]*allongement))
largeur = im1.size[0] largeur = im1.size[0]
hauteur = im1.size[1] hauteur = im1.size[1]
@ -51,37 +45,22 @@ positiony = 0
for x in range(0,allongement): for x in range(0,allongement):
positionx = 0 positionx = 0
for y in range(1,11): for y in range(1,17):
z = x*10 + y z = x*10 + y
im1 = Image.open("./captain/img%03.1i.jpg" % z) im1 = Image.open("./capt/img%03.1i.jpg" % z)
print "z="+str(z) #print "z="+str(z)
im2.paste(im1, (positionx,positiony)) im2.paste(im1, (positionx,positiony))
#print position #print position
#print("./drone/img%03.1i.jpg" % x) #print("./drone/img%03.1i.jpg" % x)
positionx = positionx + largeur positionx = positionx + largeur
print "px"+str(positionx) #print "px"+str(positionx)
positiony = positiony + hauteur positiony = positiony + hauteur
print "py"+str(positiony) #print "py"+str(positiony)
#scriptpy = str(sys.argv[1]) #scriptpy = str(sys.argv[1])
#script = scriptpy[:-3] #script = scriptpy[:-3]
im2.save(script+"/"+str(x)+".2.png",'PNG', quality=100) im2.save(script+"/"+str(x)+".2.png",'PNG', quality=100)
''' '''
1145 ffmpeg -i noir...png.mp4 noir...png.enscribe.norm.wav -c:a copy -c:v copy noir..HQ..mp4 1145 ffmpeg -i noir...png.mp4 noir...png.enscribe.norm.wav -c:a copy -c:v copy noir..HQ..mp4
1146 ffmpeg -i noir...png.mp4 -i noir...png.enscribe.norm.wav -c:a copy -c:v copy noir..HQ..mp4 1146 ffmpeg -i noir...png.mp4 -i noir...png.enscribe.norm.wav -c:a copy -c:v copy noir..HQ..mp4
@ -123,14 +102,12 @@ im2.save(script+"/"+str(x)+".2.png",'PNG', quality=100)
1975 ffmpeg -i drone.mp4 1975 ffmpeg -i drone.mp4
2006 history | grep ffmpeg 2006 history | grep ffmpeg
2009 history | grep ffmpeg 2009 history | grep ffmpeg
'''
''' '''
=======
index = 1 index = 1
allongement = 300 #4818 allongement = 300 #4818
im1 = Image.open("./drone/img001.jpg") im1 = Image.open("./drone/img001.jpg")
im2 = Image.new("RGBA",(im1.size[0]*allongement, im1.size[1])) im2 = Image.new("RGBA",(im1.size[0]*allongement, im1.size[1]))
@ -149,5 +126,4 @@ for x in range(0,allongement/10):
scriptpy = str(sys.argv[1]) scriptpy = str(sys.argv[1])
script = scriptpy[:-3] script = scriptpy[:-3]
im2.save(script+"_"+str(x)+".png",'PNG', quality=100) im2.save(script+"_"+str(x)+".png",'PNG', quality=100)
'''
>>>>>>> adc56b0f751a338bfe5c843061889df049d4390b