
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (57)
-
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 -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (11330)
-
how to prevent long text going out of video bounds ?
30 décembre 2023, par Dhruvisha Joshii am adding text to video using ffmpeg.


var filterComplex = ""
for (index, textData) in textDataArray.enumerated() {
 print("x: \(textData.xPosition), y: \(textData.yPosition)")
 let x = (textData.xPosition * 1080) / videoViewWidth
 let y = (textData.yPosition * 1920) / videoViewHeight
 
 let fontSizeForWidth = (20 * 1080) / videoViewWidth
 let fontSizeForHeight = (20 * 1920) / videoViewHeight
 print("fontSizeForWidth: \(fontSizeForWidth)")
 print("fontSizeForHeight: \(fontSizeForHeight)")
 
 if index == textDataArray.count - 1 {
 let textFilter = "[video\(index)]drawtext=text='\(textData.text)':fontfile=\(fontPath):fontsize=\(fontSizeForHeight):fontcolor=white:x=(main_w-text_w-\(x)):y=(\(y)-(text_h/2))"
 filterComplex += textFilter
 } else {
 let textFilter = "[video\(index)]drawtext=text='\(textData.text)':fontfile=\(fontPath):fontsize=\(fontSizeForHeight):fontcolor=white:x=(main_w-text_w-\(x)):y=(\(y)-(text_h/2))[video\(index + 1)];"
 filterComplex += textFilter
 }
 
}



this is my code to add drawtext to command. now my problem is if text is longer it is going out of video bounds instead i want it to be at same x y positons but i want to convert it to multiple lines.


i have seen some solutions where they are telling me to add \n to my text but i am getting it from user and i am not able to determine that where to add \n so this solution is not working for me. if possible tell me how to change x y so that i can manage this or any other solutions if more effective.


-
FFmpeg4 android Applying Overlay (watermark) taking too long
13 janvier 2019, par Web DeveloperI’m using ffmpeg4 on android (Java) to apply overlay/watermark on the bottom left corner of the recorded video that is saved in the SD CARD.
The video recording has maximum duration of 59 seconds. The problem that I’m facing is that I’m applying water through this command of ffmpeg4
String[] complexCommand1 = new String[]"ffmpeg", "-y", "-i",
"input.mp4", "-strict", "experimental", "-c:v", "libx264", "-preset",
"ultrafast", "-vf", "movie=/water.png [watermark] ; [in][watermark] overlay=main_w-overlay_w-", "10:10", " [out]", "-s", "320x480", "-aspect",
"2:3", "-r", "30", "-b:v", "500k",
"output.mp4" ;I’ve reduced the video resolution to 320x480 after the conversion and 480p to recorded video that is provided as input to this command but still the processing time is around 40 seconds.
Can someone provide me workaround this to reduce this processing time.
or what should I do to reduce this processing time. I’ve researched a lot on this and found some GitHub issues link and tried their solutions but none of them seemed to work for me.
-
cv2.VideoCapture() taking extremely long time to connect and returning empty frames
18 novembre 2022, par John SchmidtWhen executing the code


cap = cv2.VideoCapture('udp://127.0.0.1:1080',cv2.CAP_FFMPEG)



The script will yield for at least a minute, and then connect. Along with that, it seems that, almost at random, the script will completely break and cv2.VideoCapture() will return nothing. the stream is initiated with the command


ffmpeg.exe -y -f dshow -thread_queue_size 4096 -hwaccel cuda -hwaccel_output_format cuda -i video="OBS Virtual Camera" -f rawvideo -c:v mjpeg -qscale:v 0 -r 20 udp://127.0.0.1:1080



if that helps any.


I tried many different methods of starting the stream, color formats, and more. Still, they all had this issue.


(note this does work sometimes, but seemingly at random will completely stop working for many days to come, and then suddenly begin working)