
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (111)
-
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 -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (10795)
-
How to apply ffmpeg code to apply watermark while converting video ?
12 août 2017, par asifThere are three options in video converter PHP script, before converting via
ffmpeg
on a Linux server.- 1.Video Quality
- 2.Audio Quality
- 3.Video Size
For quality, code lines in PHP are :
<option value="2000000">high</option>
<option value="1000000">medium</option>For audio :
<option value="44100">high</option>
<option value="22050">medium</option>
<option value="11025">low</option>For size :
<option value="640x360">640x360</option>
<option value="854x480">854x480</option>
<option value="1280x720">1280x720</option>Likewise the conversion code is :
if ($new_format=="mp4") {
$call = $ffmpeg." -i ".$video_to_convert." -vcodec mpeg4 -r 30 -b ".$quality." -acodec libmp3lame -ab 126000 -ar ".$audio." -ac 2 -s ".$size." ".$converted_vids.$name.".".$new_format." -y 2> log/".$name.".txt";
}
// enter code hereI saw this on one site : http://hd69.info/process.php?uploaded_name=11 1.mp4
They have applied a watermark code line. I am doing the same but it results in an error, I put code lines in the video quality just like they did, putting this code in video quality options :
-i watermark.png -filter_complex 'overlay=main_w-overlay_w-10:main_h-overlay_h-10'
I am getting errors, please help how to do it like on that site.
-
FFmpeg raw audio and H264 in RTSP
21 août 2017, par Max RidmanTrying to grab correctly video and audio data from an IP camera Hikvision.
Everything works like a charm when doing so for H264 + MP2 for example.
When trying to grab RAW audio in PCM s16le - smile goes off of my face.
Here is how I grab my camera :
ffmpeg -re -acodec pcm_s16le -ac 1 -rtsp_transport tcp -i rtsp ://ipcameraaddress:554 -vcodec copy -acodec libfdk_aac -vbr 5 test.ts
The command works and packs RTSP stream to a TS file.
However the duration of audio and video is different. For an example, I am recording 21 sec, from that I have 21 sec of Audio and 15 of Video.
The audio is being stretched and pitch is lowered. Have spent several days reading FFmpeg documentation and applied various options like async, changing sample rate and so on - no luck.
I hope Mulvya or other FFmpeg experts will advice me a FIX to get things done correctly.
-
FFMPEG- filtered video coming rotated
31 août 2017, par Alok Kumar VermaAfter a lot of struggle I finally did what I want, i.e., save filters using ffmpeg now for now I’m using the Vintage filter command line from FFMPEG in order to add Vintage Filter to it. But there is a certain problem, and the problem is that The output is coming 90 degree clockwise rotated which is not what I wanted.
I’ve used this command from FFMPEG documentation, and the vintage filter application is working fine.
String complexCommand[] = {"-y", "-i", stringBuilder.toString(), "-strict", "experimental", "-vf", "curves=vintage",
"-s", "640x480", "-r", "30", "-aspect", "4:3", "-ab",
"48000","-ac", "2", "-ar", "22050", "-b:a", "2097k", "-vcodec", "mpeg4", savingPath};I’ve read about how to do the rotation from this link : Video Rotation using FFMPEG
Now what I’ve tried is rotating the video 90 degree counterclockwise which transpose=2 after -vf from the documentation.
1.This is what I’ve done :
String complexCommand[] = {"-y", "-i", stringBuilder.toString(), "-strict", "experimental", "-vf", "transpose=2", "curves=vintage",
"-s", "640x480", "-r", "30", "-aspect", "4:3", "-ab",
"48000","-ac", "2", "-ar", "22050", "-b:a", "2097k", "-vcodec", "mpeg4", savingPath};But I got this problem in my logcat, i.e.,
[NULL @ 0xaaab0c00] Unable to find a suitable output format for 'curves=vintage' curves=vintage: Invalid argument
2. I’ve also done this in order to get the desired result :
String complexCommand[] = {"-y", "-i", stringBuilder.toString(), "-strict", "experimental", "-vf", "transpose=2",
"-s", "640x480", "-r", "30", "-aspect", "4:3", "-ab",
"48000","-ac", "2", "-ar", "22050", "-b:a", "2097k", "-vcodec", "mpeg4", savingPath};Now from above the result is fine, without any filter.
3. I’ve tried this also which was my last attempt to do that :
String complexCommand[] = {"-y", "-i", stringBuilder.toString(), "-strict", "experimental", "-vf", "curves=vintage", "-vf", "transpose=2",
"-s", "640x480", "-r", "30", "-aspect", "4:3", "-ab",
"48000","-ac", "2", "-ar", "22050", "-b:a", "2097k", "-vcodec", "mpeg4", savingPath};Here is what I have changed : "-vf", "curves=vintage", "-vf","transpose=2"
But the result was same as in the second, only the rotated video, no fiters applied to the video.
I’m in need of the result as I’ve reached close to my destination but the problem is there and I need the result as the filtered video with the rotated form and that has to be implemented in the string only.
I think there is some issue with the string before -vf as the video is getting rotated before -vf and when I apply transpose then the correct result comes. Any suggestion would be appreciated.
EDITS
I’ve tried using this too, the && in between the command in order to get the result but I’m getting this error in my logcat :
E/MediaMetadataRetrieverJNI: getFrameAtTime: videoFrame is a NULL pointer
What I’ve done is :
String complexCommand[] = {"-y", "-i", stringBuilder.toString(), "-strict", "experimental", "-vf", "curves=vintage",
"&&", "-vf", "transpose=2", "-s", "720x720", "-r", "30", "-aspect", "4:3", "-ab",
"48000","-ac", "2", "-ar", "22050", "-b:v", "2097k", "-vcodec", "mpeg4", savingPath};