
Recherche avancée
Autres articles (56)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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
Sur d’autres sites (8526)
-
how encode xdcam.mxf and set for mediainfo flag "standard : component"
3 août 2018, par livioMy goal is to encode an XdcamHD 50Mb .mxf, with ffmpeg or ffmbc or bmx, and get the following Mediainfo technical and tag data
Format Settings, Matrix : Custom
Standard : Component
When I try to convert with FFmbc I get a correct XdcamHD in every aspects, except the following Mediainfo technical data :
Format Settings, Matrix : Default
Standard : PAL
The target file and my file analized whith ffprobe are identical
on the left target file on the right my encoded file
and this is my code
ffmbc.exe -i %1 -tff -target xdcamhd422 -t 5 -y rewrapffmbc.mxf
When i try to convert with ffmpeg I obtain the same good file but if I read the technical and tag data in Mediainfo the flag "Standard :" has disappeared. Also in this case my file is being rejected from a Broadcast Company we deal with.
here is the ffmpeg code
ffmpeg.exe -i %1 -r 25 -aspect 16:9 -pix_fmt yuv422p -color_primaries 1 -color_trc 1 -colorspace 1 -vcodec mpeg2video -non_linear_quant 1 -flags +ildct+ilme -top 1 -intra_vlc 1 -qmax 3 -lmin "1*QP2LAMBDA" -vtag xd5c -rc_max_vbv_use 1 -rc_min_vbv_use 1 -g 12 -b:v 50000k -minrate 50000k -maxrate 50000k -bufsize 3835k -bf 2 -trellis 1 -map 0:0 -map 0:1 -map 0:2 -map 0:1 -map 0:2 -map 0:1 -map 0:2 -map 0:1 -map 0:2 -map_channel 0.1.0:0.1.0 -map_channel 0.2.0:0.2.0 -map_channel 0.1.0:0.3.0 -map_channel 0.2.0:0.4.0 -map_channel 0.1.0:0.5.0 -map_channel 0.2.0:0.6.0 -map_channel 0.1.0:0.7.0 -map_channel 0.2.0:0.8.0 -c:a pcm_s24le -ar 48000 -ac 1 -map_metadata 0 -timecode 09:59:59:20 -y profilo-1.mxf
Can someone provide a solution or a workaround ?
Thank you
-
Pyinstaller exe works halfway on another computer
5 novembre 2022, par At BayI wrote a code which uses FFMPEG and os, subprocess, datetime, speechrecognition, and xlsxwriter libraries. Below a brief sketch of the code - it goes through a directory of wav files and creates a transcription for X seconds in length and saves it into an excel sheet.
import os
import subprocess
import datetime
import speech_recognition as sr
import xlsxwriter


def ffmpeg():
 #create clip
 subprocess.run(["ffmpeg", "-ss", starti, "-t", lengthi, "-i", filepathO, filepathNEW1])

 #convert to mono
 subprocess.run(["ffmpeg", "-i", filepathNEW1, "-ac", "1", filepathNEW2])
 
 #compres to 44.1 kHZ
 subprocess.run(["ffmpeg", "-i", filepathNEW2, "-ar", "44100", filepathNEW3])

def transcription():
 with sr.AudioFile(os.path.abspath(clippath)) as source:
 audio = r.record(source) # read the entire audio file
 transcriptstring = str(r.recognize_google(audio, language = 'en', show_all=True))
 worksheet.write(tcol, transcriptstring)


#call functions in this order
for filename in os.listdir(ufolder):
 if (filename.endswith(".wav")):
 ffmpeg() #cuts clips, compresses to mono and 44.1 khz
 transcription() 

workbook.close()




When I try to run the exe created by pyinstaller, I get the following error :


Enter directory of wav files: C:\Users\myname\Downloads\
Enter clip start (seconds): 0
Enter desired clip length (seconds): 5
Traceback (most recent call last):
 File "cliptranscript.py", line 134, in <module>
 File "cliptranscript.py", line 47, in ffmpeg
 File "subprocess.py", line 503, in run
 File "subprocess.py", line 971, in __init__
 File "subprocess.py", line 1440, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
[13304] Failed to execute script 'cliptranscript' due to unhandled exception!
</module>


Below is a partial view of the folder created by pyinstaller :



-
audio is not exact copy in ffmpeg proxies
9 mars 2023, par 5DiraptorI always work with proxy footage in Premiere Pro, so I have a batch file set up to run any new raw footage through ffmpeg and produce a proxy version. I avoid creating proxies through Premiere Pro as it's slow, I have little control over the output, and often the proxies aren't compressed as much as they could be.


This is the command I run to create proxies. It also overlays a watermark so that it is obvious when proxies are used.


ffmpeg -i "original.MOV" -i "proxy_overlay.png" -filter_complex "overlay=0:0" -crf 20 -c:v libx264 -c:a copy "Proxy/proxy_for_original.mov"



This has always been fine, but I've received some footage to work on from a different camera, and when I create proxies and try to attach them in Premiere Pro, I get the error : "Proxy Media and Full Resolution Media must have matching audio channels."




When I compare the file properties in Premiere Pro, I see this :


Original :




Proxy :




As you can see, the original contains 8x audio tracks and a timecode track, but the proxy version doesn't state this.


I've been working on the ffmpeg command to try and retain the original audio details, but nothing I do seems to work. I thought that the command
-c:a copy
would copy the audio tracks across without any changes at all. However I can't seem to find a command that creates an exact copy of all audio tracks. Also does the timecode track matter, should I map this to the proxy as well ?