
Recherche avancée
Autres articles (7)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (1350)
-
flutter integration with ffmpeg package for video stream recording using rtsp url
16 avril, par Brijesh GangwarLaunching lib\main.dart on SM X115 in debug mode...
C:\Users\hp\AppData\Local\Pub\Cache\hosted\pub.dev\ffmpeg_kit_flutter_full_gpl-6.0.3\android\src\main\java\com\arthenica\ffmpegkit\flutter\FFmpegKitFlutterPlugin.java:157: error: cannot find symbol
 public static void registerWith(final io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
 ^
 symbol: class Registrar
 location: interface PluginRegistry
C:\Users\hp\AppData\Local\Pub\Cache\hosted\pub.dev\ffmpeg_kit_flutter_full_gpl-6.0.3\android\src\main\java\com\arthenica\ffmpegkit\flutter\FFmpegKitFlutterPlugin.java:651: error: cannot find symbol
 protected void init(final BinaryMessenger messenger, final Context context, final Activity activity, final io.flutter.plugin.common.PluginRegistry.Registrar registrar, final ActivityPluginBinding activityBinding) {
 ^
 symbol: class Registrar
 location: interface PluginRegistry
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ffmpeg_kit_flutter_full_gpl:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.

BUILD FAILED in 15s

┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────┐
│ [!] Consult the error logs above to identify any broken plugins, specifically those containing │
│ "error: cannot find symbol..." │
│ This issue is likely caused by v1 embedding removal and the plugin's continued usage of removed │
│ references to the v1 embedding. │
│ To fix this error, please upgrade your current package's dependencies to latest versions by │
│ running `flutter pub upgrade`. │
│ If that does not work, please file an issue for the problematic plugin(s) here: │
│ https://github.com/flutter/flutter/issues │
└─────────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1

Exited (1). 



how to solve this


I tried to use
widget_record_video
package instead but it is still depended on flutter ffmpeg package.
I have already tried to install app on real device.
Help me out to solve this error

-
How to replace the video track in a video file with a still image ?
22 février 2021, par cornerstoreI am trying to use ffmpeg to replace the video track in a video file with a still image. I tried some commands I got from other questions such as the one here


ffmpeg -i x.png -i orig.mp4 final.mp4


ffmpeg -r 1/5 -i x.png -r 30 -i orig.mp4 final.mp4


But these didn't work. I'm not sure which of these arguments are required or not. The output should be accepted by YouTube as a valid video - I was able to simply remove the video track, but apparently they don't let you upload a video without a video track.


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