
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
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
Autres articles (54)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 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 (2876)
-
The Mystery of the No such file or directory exception
22 avril 2022, par JohnWickNo idea what's going on here. Set a breakpoint after the for of loop in the following function. temp/concat.txt exists but the following exception is thrown :




Uncaught Error Error : ffmpeg exited with code 1 : temp/concat.txt : No
such file or directory




Outputting stderr gives a bit more info :




[concat @ 000001e2e30124c0] Impossible to open
'temp/concat.txt#voiceover #funny #fall #lol.mp4' index.js:19
temp/concat.txt : No such file or directory




And here is the contents of concat.txt, standard ffmpeg concat demuxer format :


file '#voiceover #funny #fall #lol.mp4'
file 'part 2 repost 🙄 #fyp #funny @jordond262 @princemoonjq add my snap heroicdw333.mp4'
file 'This is my hair wet wet WOAHHH #GrowUpWithMe #fyp #foryoupage #love #funny #puppy #goldenretriever #cute #dog #wetwet.mp4'
file 'POV calling your friends when your 90#FootlongShuffle #GhostMode #funny #grandma #fyp #halloween #collegegotmelike #tiktok #foryoupage.mp4'
file 'Sam Ki Singing Kaisi Lgi 😂😜 insta-samayranarula #foryou #trending #lockdown #queen_samayra #tiktokindia #funny #gharbaithoindia 🏠 #comedyindia.mp4'
file 'Reply to @juswa646 #fyp#funny #relatable.mp4'
file 'RaNdOm ViDeOs! #fy #fypシ #viral #meme #funny #xyzbca #funnyvideos #randomvideo.mp4'
file 'Reply to @bratzdoll.maya what should I do next 🙄 #fyp #foryoupage #leethe4th #memes #tall #funny #lol.mp4'
file 'Part 2 #fyp #foryou #viral #foryoupageofficiall #funny #trending.mp4'
file 'Lmfao 😂 (via @danibreezy01) #lmao #lmfao #funny #cousins #family #fyp #foryou #foryoupage.mp4'
file 'When you are a clumsy kitty #trend #joke #Khaleesi #funny #kittensoftiktok #foryou #fyp #foryoupage #cute #catsoftiktok.mp4'
file 'Tag That Friend That Always Be Falling Asleep 😂 #foryou #funny #fail #nap #sleep #pennsylvania #SHEINcares #viral #trending #meme #memes #foryoupage.mp4'
file '#funny #funnyvideos #girlfriend #crzy #Birdshit.mp4'
file 'He forgot he was a dog. #dog #fyp #talkingdog #cute #pet #funny.mp4'
file 'Bad Day #part1 #badday #falling #funny #memes #viral #jokes #comedy #trending #fyp #foryou #share #likes #us #uk #xyzbca #epic #pourtoi #fail #wee.mp4'
file 'I think he got offended ( #catsoftiktok #fyp #funny #catlover #MyJob #yellow #foryoupage.mp4'
file 'They took OFF today 🐶🤠🐶 #joshbutlertv #roxyandremi #funny #comedy #dogs #viral #memes.mp4'
file 'Had to make sure momma was there #funny #fyp #raccoons #love #bff #foryoupage #ThisorThatSBLV.mp4'
file 'That\'s not how you get out... #mysterymakers #escaperoom #foryou #fyp #crazystory #friends #funny #crazy #teammate.mp4'



The function throwing the exception.


async function makeCompilation(paths, outPath) {
 for (const filePath of paths) {
 await fs.appendFile(
 "temp/concat.txt",
 `file '${path.basename(filePath).replace("'", "\\'")}'${os.EOL}`
 );
 }
 return new Promise((resolve, reject) => {
 ffmpeg("temp/concat.txt")
 .inputOptions(["-f concat", "-safe 0"])
 .outputOption("-c copy")
 .on("stderr", (line) => console.log(line))
 .on("end", async () => {
 await fs.rm("temp/concat.txt");
 resolve();
 })
 .save(outPath);
 });
}



-
I want to reduce my PYTHON code and also make proper
7 mai 2022, par Anuj SaxenaI have a CSV file From the client.
In my code, first, read the CSV file and create folders based on the CSV Column Heading name
and, convert the video into jpeg and also compress the video and apply a watermark on the compressed video.
hi below is my code example. Is there a way to reduce the number of lines of code and save time ?
example.. using function or loops. I need any other method. please help




CODE BEGIN


#import library
import csv
import os
import subprocess
import shutil

path = r'/home/anuj/FIle_server/from_client/shots_data.csv' #path of client CSV File
root = r"/home/anuj/FIle_server/production/"# path where i want create folders 
list = ['JPG', 'LOW', 'RAW'] #also add these folders in the last directory


def read_csv(path): #create function to read csv file 
 with open(path, 'r') as csv_file:
 csv_reader = csv.DictReader(csv_file)
 for line in csv_reader:
 print(line)
 new_path = f"{root}/{line['Project']}/{line['Sequence']}/{line['Shot']}/{line['task']}/{line['software']}/{line['artist']}"
 print(new_path)
 os.makedirs(new_path) #create folders.
 for items in list:
 path = os.path.join(new_path, items)
 os.mkdir(path) #create jpeg, low ,raw folders in the last directory


read_csv(path)

def convert_1mov_to_seq():# Declare function to convert video into jpeg and also compress the video,and apply watermark on the compressed video
 # input = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_001/SH001/ROTO/NUKE/VISHAL/RAW/SH001.MOV"
 input = r"/home/anuj/FIle_server/from_client/AI_PROJECT/SEQ_001/SH001.MOV"
 output = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_001/SH001/ROTO/NUKE/VISHAL/JPG/frm_seq_v001.%3d.jpeg"
 output2 = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_001/SH001/ROTO/NUKE/VISHAL/LOW/SH001.mp4"
 output3 = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_001/SH001/ROTO/NUKE/VISHAL/LOW/Compress_SH001.mp4"

 cmd = f'ffmpeg -i "{input}" "{output}"'
 cmd2 = f"ffmpeg -i {input} -vcodec libx264 -acodec aac {output2}"
 cmd3 = f"ffmpeg -i {output2} -i watermark.png -filter_complex 'overlay=1660:970' {output3}"
 print(cmd)
 print(cmd2)
 print(cmd3)
 subprocess.call(cmd, shell=True)
 subprocess.call(cmd2, shell=True)
 subprocess.call(cmd3, shell=True)

def convert_2mov_to_seq():
 # input = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_002/SH002/MM/MAYA/ANUJ/RAW/SH002.MOV"
 input = r"/home/anuj/FIle_server/from_client/AI_PROJECT/SEQ_001/SH002.MOV"
 output = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_002/SH002/MM/MAYA/ANUJ/JPG/frm_seq_v001.%3d.jpeg"
 output2 = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_002/SH002/MM/MAYA/ANUJ/LOW/SH002.mp4"
 output3 = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_002/SH002/MM/MAYA/ANUJ/LOW/Compress_SH002.mp4"

 cmd = f'ffmpeg -i "{input}" "{output}"'
 cmd2 = f"ffmpeg -i {input} -vcodec libx264 -acodec aac {output2}"
 cmd3 = f"ffmpeg -i {output2} -i watermark.png -filter_complex 'overlay=1660:970' {output3}"
 print(cmd)
 print(cmd2)
 print(cmd3)
 subprocess.call(cmd, shell=True)
 subprocess.call(cmd2, shell=True)
 subprocess.call(cmd3, shell=True)

def convert_3mov_to_seq():
 # input = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_003/SH003/VFX/HOUDINI/KESHV/RAW/SH003.MOV"
 input = r"/home/anuj/FIle_server/from_client/AI_PROJECT/SEQ_001/SH003.MOV"
 output = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_003/SH003/VFX/HOUDINI/KESHV/JPG/frm_seq_v001.%3d.jpeg"
 output2 = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_003/SH003/VFX/HOUDINI/KESHV/LOW/SH003.mp4"
 output3 = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_003/SH003/VFX/HOUDINI/KESHV/LOW/compress_SH003.mp4"

 cmd = f'ffmpeg -i "{input}" "{output}"'
 cmd2 = f"ffmpeg -i {input} -vcodec libx264 -acodec aac {output2}"
 cmd3 = f"ffmpeg -i {output2} -i watermark.png -filter_complex 'overlay=1660:970' {output3}"
 print(cmd)
 print(cmd2)
 print(cmd3)
 subprocess.call(cmd, shell=True)
 subprocess.call(cmd2, shell=True)
 subprocess.call(cmd3, shell=True)

def convert_4mov_to_seq():# i want only one compressed video with watermark, but here i create two compressed video one with watermark and another without watermark.
 # input = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_004/SH004/CLEANUP/BLENDER/VARSHA/RAW/SH004.MOV"
 input = r"/home/anuj/FIle_server/from_client/AI_PROJECT/SEQ_001/SH004.MOV"
 output = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_004/SH004/CLEANUP/BLENDER/VARSHA/JPG/frm_seq_v001.%3d.jpeg"
 output2 = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_004/SH004/CLEANUP/BLENDER/VARSHA/LOW/SH004.mp4"
 output3 = r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_004/SH004/CLEANUP/BLENDER/VARSHA/LOW/Compress_SH004.mp4"

 cmd = f'ffmpeg -i "{input}" "{output}"'
 cmd2 = f"ffmpeg -i {input} -vcodec libx264 -acodec aac {output2}"
 cmd3 = f"ffmpeg -i {output2} -i watermark.png -filter_complex 'overlay=1660:970' {output3}"
 print(cmd)
 print(cmd2)
 print(cmd3)
 subprocess.call(cmd, shell=True)
 subprocess.call(cmd2, shell=True)
 subprocess.call(cmd3, shell=True)

 convert_1mov_to_seq()
 convert_2mov_to_seq()
 convert_3mov_to_seq()
 convert_4mov_to_seq()

def copy_mov(): #copy videos from client folder to RAW folders
 shutil.copy2(r"/home/anuj/FIle_server/from_client/AI_PROJECT/SEQ_001/SH001.MOV", r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_001/SH001/ROTO/NUKE/VISHAL/RAW/SH001.mp4")
 shutil.copy2(r"/home/anuj/FIle_server/from_client/AI_PROJECT/SEQ_001/SH002.MOV", r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_002/SH002/MM/MAYA/ANUJ/RAW/SH002.mp4")
 shutil.copy2(r"/home/anuj/FIle_server/from_client/AI_PROJECT/SEQ_001/SH003.MOV", r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_003/SH003/VFX/HOUDINI/KESHV/RAW/SH003.mp4")
 shutil.copy2(r"/home/anuj/FIle_server/from_client/AI_PROJECT/SEQ_001/SH004.MOV", r"/home/anuj/FIle_server/production/AI_PROJECT/SEQ_004/SH004/CLEANUP/BLENDER/VARSHA/RAW/SH004.mp4")


copy_mov()