Bonjour ! J'ai traduit ceci avec Google, car je ne parle pas français. J'espère donc que cela vous sera compréhensible.
J'ai créé deux plug-ins pour envoyer des commandes de conversion de format d'image à CasparCG. Il suffit ensuite d'insérer le plug-in avant le fichier vidéo dans la playlist Plycast.
C'était assez simple : il suffit de créer deux copies d'un des plug-ins existants dans votre dossier de plug-ins Plycast. Nommez-en un « 4x3.py » et un « 16x9.py ».
Dans le fichier 4x3, remplacez la section def OnAir() par le script suivant :
def OnAir():
HOST="127.0.0.1"
PORT=5251
RECVMAX=10240
clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM);
clientSocket.connect((HOST,PORT)); data = "MIXER 1-1 FILL 0.125 0 0.75 1 0 Linear"+'\r\n';
clientSocket.send(data.encode());
Dans le fichier 16x9, remplacez la section def OnAir() par le script suivant :
def OnAir():
HOST="127.0.0.1"
PORT=5251
RECVMAX=10240
clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM);
clientSocket.connect((HOST,PORT));
data = "MIXER 1-1 FILL 0 0 1 1"+'\r\n';
clientSocket.send(data.encode());
Dans chaque cas, assurez-vous que l'hôte et le port correspondent à votre configuration Plycast.
Dans Plycast, avant de lire un fichier vidéo 4x3, insérez votre plug-in 4x3 dans la playlist. Après le fichier 4x3, insérez le plug-in 16x9 pour revenir au format 16x9 (sinon, vous obtiendrez une vidéo 16x9 dans une image 4x3).
Je n'ai pas eu besoin de convertir l'ARC en 2:35x1, mais la commande de mixage à insérer dans la chaîne de données serait « MIXER 1-1 FILL 0 0.125 1 0.75 0 Linear ».
J'espère que cela vous sera utile.
.......
Hello! I have translated this using Google since I do not speak French, so I hope it will make sense to you.
I have handled this by creating two plug-ins to send Aspect Ratio Conversion commands to CasparCG. You then insert the Plugin before the video file in the Plycast playlist.
This was quite easy to do, simply create two copies of one of the existing plugins in your Plycast plugins folder. Name one "4x3.py" and one "16x9.py"
In the 4x3 file, replace the def OnAir() section with the following script:
def OnAir():
HOST="127.0.0.1"
PORT=5251
RECVMAX=10240
clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM);
clientSocket.connect((HOST,PORT));
data = "MIXER 1-1 FILL 0.125 0 0.75 1 0 Linear"+'\r\n';
clientSocket.send(data.encode());
In the 16x9 file, replace the def OnAir() section with the following script:
def OnAir():
HOST="127.0.0.1"
PORT=5251
RECVMAX=10240
clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM);
clientSocket.connect((HOST,PORT));
data = "MIXER 1-1 FILL 0 0 1 1"+'\r\n';
clientSocket.send(data.encode());
In each case, ensure the HOST and PORT correctly reflect your Plycast config.
Now, in Plycast, before you play a 4x3 video file, Insert your 4x3 Plugin in the playlist. And after the 4x3 file, insert the 16x9 Plugin to return to 16x9 (otherwise you will get 16x9 video in a 4x3 frame).
I have not had a requirement to ARC to 2:35x1 but the mixer command you'd insert into the data string would be "MIXER 1-1 FILL 0 0.125 1 0.75 0 Linear"
Hope this helps.