
Recherche avancée
Médias (91)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (62)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
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 (...)
Sur d’autres sites (3663)
-
Can't link FFMPEG dynamically to VS 2019 project
10 février 2021, par Maya SelaI downloaded the source code of FFMPEG 3.4.8 and built with MSVC as such :

After unzipping, open x86_x64 Cross Tools Command Prompt for VS 2019 and runmsys2_shell.cmd
. From there, run

./configure --toolchain=msvc --arch=x86_64 --enable-yasm --enable-asm --enable-shared --disable-static

and
make



I then created a new project in VS 2019.

In Properties > C/C++ > General > Additional Include Directories :

(Where all the headers are)

E:\ffmpeg-3.4.8\libavutil
E:\ffmpeg-3.4.8\libavcodec
E:\ffmpeg-3.4.8\libavdevice
E:\ffmpeg-3.4.8\libavfilter
E:\ffmpeg-3.4.8\libavresample
E:\ffmpeg-3.4.8\libpostproc
E:\ffmpeg-3.4.8\libswscale
E:\ffmpeg-3.4.8\libswresample
E:\ffmpeg-3.4.8\libavformat



In Properties > Linker > General > Additional Library Directories :

(Where the .lib files are)

E:\ffmpeg-3.4.8\libavutil
E:\ffmpeg-3.4.8\libavcodec
E:\ffmpeg-3.4.8\libavdevice
E:\ffmpeg-3.4.8\libavfilter
E:\ffmpeg-3.4.8\libavresample
E:\ffmpeg-3.4.8\libpostproc
E:\ffmpeg-3.4.8\libswscale
E:\ffmpeg-3.4.8\libswresample
E:\ffmpeg-3.4.8\libavformat



In Properties > Linker > Input > Additional Dependencies :


avcodec.lib
avdevice.lib
avfilter.lib
avformat.lib
swresample.lib
swscale.lib



For good measure, I copied the .dll files of each library to the Release folder of the project. There is one source file I am trying to build and run :



extern "C" {
#include <libavformat></libavformat>avformat.h>
}

int main() {
 AVFormatContext* pFormatContext = avformat_alloc_context();
}



The result is as follows :


1>------ Build started: Project: FFMPEG_example, Configuration: Release x64 ------
1>Source.cpp
1>Source.obj : error LNK2001: unresolved external symbol avformat_alloc_context
1>C:\Users\maya.s\source\repos\FFMPEG_example\x64\Release\FFMPEG_example.exe : fatal error LNK1120: 1 unresolved externals
1>Done building project "FFMPEG_example.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Does anyone have an idea ?

Thanks !

-
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()