
Recherche avancée
Autres articles (69)
-
Initialisation de MediaSPIP (préconfiguration)
20 février 2010, parLors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
Dans un premier temps il active ou désactive des options de SPIP qui ne le (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
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 (8413)
-
How can I capture and record only specific part of the desktop using ffmpeg ?
23 juillet 2018, par Benzi AvrumiThis is how I’m using now to record the desktop.
Using ffmpeg.exe : ffmpeg -f gdigrab -framerate 24 -i desktop -preset ultrafast -pix_fmt yuv420p out.mp4
Or using csharp :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Diagnostics;
namespace Ffmpeg_App
{
class Ffmpeg
{
Process process;
public void Start(string FileName, int Framerate)
{
process = new System.Diagnostics.Process();
process.StartInfo.FileName = @"D:\ffmpegx86\ffmpeg.exe"; // Change the directory where ffmpeg.exe is.
process.EnableRaisingEvents = false;
process.StartInfo.WorkingDirectory = @"D:\ffmpegx86"; // The output directory
process.StartInfo.Arguments = @"-f gdigrab -framerate " + Framerate + " -i desktop -preset ultrafast - pix_fmt yuv420p " + FileName;
process.Start();
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = false;
Close();
}
public void Close()
{
process.Close();
}
}
}And using it like this for example :
Ffmpeg fpeg = new Ffmpeg();
private void Start_Click(object sender, EventArgs e)
{
fpeg.Start("test.mp4", 24);
}
private void Stop_Click(object sender, EventArgs e)
{
fpeg.Close();
}This will record the entire desktop window to a video file.
But how can I record a specific rectangle area in the desktop ? For example to record only the right bottom corner rectangle size 10x10.So when I will play the video file I will see full screen video but only of the right bottom corner of the desktop.
-
FFmpeg concat creating corrupted video part (Media Info provided)
6 mai 2022, par krvI am using concat to join a list of video files with the following command


ffmpeg -f concat -safe 0 -i filesList.txt -c copy output.mp4 



The issue here is that there are a few files that were recorded in slow motion on my phone. The slow-motion files have the same frame rate as the other files.


But when concatenated the part where the slow-motion files are concatenated appears to be frozen / glitch (it does not play a single frame).


I am able to seek forward and backward the part that does not play. So the portion of the video that contained normal files plays and as soon as the slow-motion video comes, nothing plays, and when a normal file comes it starts playing again.


I am attaching the media Info of both files


Info of the slow motion file :


General
Complete name : I:\concate Test\VID20210727114100.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (isom/mp42)
File size : 27.6 MiB
Duration : 1 min 0 s
Overall bit rate : 3 825 kb/s
Encoded date : UTC 2021-07-27 06:11:08
Tagged date : UTC 2021-07-27 06:11:08
xyz : +21.6146+071.2342/
com.android.version : 11

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L3.1@Main
Codec ID : hvc1
Codec ID/Info : High Efficiency Video Coding
Duration : 1 min 0 s
Source duration : 1 min 0 s
Bit rate : 3 771 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 30.000 FPS
Minimum frame rate : 29.910 FPS
Maximum frame rate : 30.090 FPS
Real frame rate : 240.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.136
Stream size : 27.2 MiB (99%)
Source stream size : 27.2 MiB (99%)
Title : VideoHandle
Language : English
Encoded date : UTC 2021-07-27 06:11:08
Tagged date : UTC 2021-07-27 06:11:08
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
mdhd_Duration : 60524
Codec configuration box : hvcC



Info of the regular video file



General
Complete name : I:\concate Test\VID20210727113901.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (isom/mp42)
File size : 39.0 MiB
Duration : 37 s 930 ms
Overall bit rate : 8 615 kb/s
Encoded date : UTC 2021-07-27 06:09:40
Tagged date : UTC 2021-07-27 06:09:40
xyz : +21.6146+071.2342/
com.android.version : 11

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L4@Main
Codec ID : hvc1
Codec ID/Info : High Efficiency Video Coding
Duration : 37 s 930 ms
Source duration : 37 s 900 ms
Bit rate : 8 408 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 29.604 FPS
Minimum frame rate : 29.508 FPS
Maximum frame rate : 29.605 FPS
Real frame rate : 30.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.137
Stream size : 38.0 MiB (98%)
Source stream size : 38.0 MiB (98%)
Title : VideoHandle
Language : English
Encoded date : UTC 2021-07-27 06:09:40
Tagged date : UTC 2021-07-27 06:09:40
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
mdhd_Duration : 37930
Codec configuration box : hvcC

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 37 s 909 ms
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 592 KiB (1%)
Title : SoundHandle
Language : English
Encoded date : UTC 2021-07-27 06:09:40
Tagged date : UTC 2021-07-27 06:09:40





-
avutil/tests/channel_layout : make printing results part of the tests
8 mars 2024, par Marton Balintavutil/tests/channel_layout : make printing results part of the tests
Deduplicates a lot of code.
Some minor differences (mostly white space and inconsistent use of quotes) are
expected in the fate tests, there was no point aiming for exactly the same
formatting.Signed-off-by : Marton Balint <cus@passwd.hu>