
Recherche avancée
Médias (21)
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Lights in the Sky
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Head Down
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (111)
-
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. -
Que fait exactement ce script ?
18 janvier 2011, parCe script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
Installation de dépendances de MediaSPIP
Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)
Sur d’autres sites (8992)
-
Can't merge mp4 files with FFmpeg on android
6 mai 2017, par BrianI’m using https://github.com/hiteshsondhi88/ffmpeg-android-java in an app that needs to combine multiple mp4 files into one.
Here is a command
ffmpeg -i concat:"/data/data/com.testapp.app/cache:temp/lds82df9skov65i15k3ct16cik.mp4|/data/data/com.testapp.app/cache:temp/qm5s0utmb8c1gbhch6us2tnilo.mp4" -codec copy /data/data/com.testapp.app/cache:temp/4egqalludvs03tnfleu5dgb6iv.mp4
java method to append files, movie files is an array holding files i want to combine
public void appendFiles() {
showProgressDialog();
movieFile = getRandomFile();
StringBuilder b = new StringBuilder();
try {
for (int i = 0; i < movieFiles.size(); i++) {
File f = movieFiles.get(i);
if (!f.exists()) {
continue;
}
if(i != 0){
b.append("|");
}
b.append(f.getPath());
}
final String command = "-i concat:\""+b.toString() + "\" -codec copy " + movieFile.getPath();
try {
ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
@Override
public void onFailure(String s) {
app.log("FAILED with output : " + s);
}
@Override
public void onSuccess(String s) {
app.log("SUCCESS with output : " + s);
createThumbnail();
stopProgressDialog();
startReview();
}
@Override
public void onProgress(String s) {
app.log("Started command : ffmpeg " + command);
}
@Override
public void onStart() {
app.log("Started command : ffmpeg " + command);
}
@Override
public void onFinish() {
app.log("Finished command : ffmpeg " + command);
}
});
}
catch (FFmpegCommandAlreadyRunningException e) {
e.printStackTrace();
}
}
catch (Exception e) {
e.printStackTrace();
}
}and getRandomFile()
public File getRandomFile() {
if (captureDir != null) {
if (captureDir.exists()) {
SecureRandom random = new SecureRandom();
File file = new File(captureDir, new BigInteger(130, random).toString(32) + ".mp4");
return file;
}
}
return null;
}but I keep seeing the error no such file or directory
concat :"/data/data/com.testapp.app/cache:temp/lds82df9skov65i15k3ct16cik.mp4|/data/data/com.testapp.app/cache:temp/qm5s0utmb8c1gbhch6us2tnilo.mp4" : No such file or directory
any ideas ?
-
lavu : add new D3D11 pixfmt and hwcontext
6 juin 2017, par wm4lavu : add new D3D11 pixfmt and hwcontext
To be used with the new d3d11 hwaccel decode API.
With the new hwaccel API, we don’t want surfaces to depend on the
decoder (other than the required dimension and format). The old D3D11VA
pixfmt uses ID3D11VideoDecoderOutputView pointers, which include the
decoder configuration, and thus is incompatible with the new hwaccel
API. This patch introduces AV_PIX_FMT_D3D11, which uses ID3D11Texture2D
and an index. It’s simpler and compatible with the new hwaccel API.The introduced hwcontext supports only the new pixfmt.
Frame upload code untested.
Significantly based on work by Steve Lhomme <robux4@gmail.com>, but with
heavy changes/rewrites.Signed-off-by : Diego Biurrun <diego@biurrun.de>
-
Get displaymatrix and change it using ffmpeg C API [closed]
24 février 2023, par VioGLDue to how phones are oriented if a phone takes a picture with portrait mode, the video seems to have an aspect ratio where height is greater than width, but the buffer inside it is rotated.


Here is what I'm trying to mean, originally, when displayed through "Videos" on debian 11 the video looks like this :




But when I normally use it with ffmpeg (I write the data I got from decoder to an opengl texture and display it) and view it on firefox it looks like this (Ignore the background being green it's intentional) :




As you can see even though the aspect ratios are the same (roughly 500x1000), for some reason ffmpeg and firefox displays the video like that.


I've deduced that there is a metadata called display matrix that show's me a rotation value. This rotation value is in fact there because the video is shot from an Iphone which does add a rotation data depending on how you are holding the phone while recording (in this case it's held vertically)


I can see the rotation metadata using this ffprobe command :


ffprobe phone_video.mp4



Along the lines of the output I can see this :


Side data:
 displaymatrix: rotation of -90.00 degrees



Which is exactly what I need. It is indeed rotated 90 degrees. However I can't access this inside my C/C++ code, here is what I've tried so far :


for (int j = 0; j < av_frame->nb_side_data; j++) 
{
 AVFrameSideData *sd = av_frame->side_data[j];

 if(sd->type == AV_FRAME_DATA_DISPLAYMATRIX) 
 {
 float a = av_display_rotation_get((int32_t *)sd->data);
 PRINT_INFO("=> displaymatrix: rotation of {} degrees",a );
 }
}



This results in no output so far.


Also I've noticed that on firefox, the video is displayed as rotated but chrome manages to display the video correctly.


I have two questions :


- 

- How can I get the metadata information of the videos
displaymatrix
rotation with the C API ? - How can I flip the video to be displayed correctly, preferably inside the C API ?






Note that I want to change the data inside the buffer so the aspect ratio remains the same. So I want the bottom video to look like the top one.


- How can I get the metadata information of the videos