
Recherche avancée
Autres articles (47)
-
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 -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
Création définitive du canal
12 mars 2010, parLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)
Sur d’autres sites (7296)
-
Avconv/php priduces small gif files instead of video files (gifs are not allowed to upload)
5 juin 2018, par VerodeI allow users to upload the following video files :
wmv|avi|mpg|mp4|mov|ogg|flv|3gp|3g2|m4v
First of all my php scripts checks file extension. If it’s not one of the permitted extensions, the upload aborts.
Second. The script checks mime type :
$finfo = new finfo;
$ftyp = $finfo->file($uploaded_file, FILEINFO_MIME_TYPE);
$avava = array(
"video/mp4",
"video/x-ms-asf",
"video/x-ms-wmv",
"video/x-msvideo",
"video/mpeg",
"video/quicktime",
"video/x-flv",
"video/ogg",
"video/3gpp",
"video/3gpp2"
);
if (!in_array($ftyp, $avava)) {
$file->error = $this->get_error_message('accept_file_types');
return false;
}The script also checks frame rate and dimensions etc.
If everything is correct, the upload finishes and a cronjob every 10 minutes converts uploaded video files to mp4 and decrease dimensions if they are very large :
$thuc = exec("avconv -y -i $fai -map 0 -c:v libx264 -crf 22 -c:a copy $fai2");
if ($width > 800) {
$thuc = exec("avconv -y -i $fai2 -filter:v scale=\"750:trunc(ow/a/2)*2\" -c:a copy $fai3");
}When I access uploaded videos, most videos are fine, but a few videos are not working - video doesn’t start and doesn ; t show anything.
All these files are small 45 bytes files that in text editor show the following lines :
GIF89a € ÿÿÿ !ù , „ ;
What is this ? Is it a gif file ? How people can upload gif files if they are not among allowed mime types ? Why these files are so small ? What causes this problem ? Php scripts allows upload gif files ? It’s a avconv problem ?
-
Android Camera Video frames decoding coming out distorted with horizontal lines
13 novembre 2018, par Iain StanfordI’ve been porting over the following Test Android example to run in a simple Xamarin Android project.
https://bigflake.com/mediacodec/ExtractMpegFramesTest_egl14.java.txt
I’m running a video captured by the camera (on the same device) through this pipeline but the PNGs I’m getting out the other end are distorted, I assume due to the minefield of Android Camera color spaces.
Here are the images I’m getting running a Camera Video through the pipeline...
Its hard to tell, but it ’kinda’ looks like it is a single line of the actual image, stretched across. But I honestly wouldn’t want to bank on that being the issue as it could be a red herring.
However, when I run a ’normal’ video that I grabbed online through the same pipeline, it works completely fine.
I used the first video found on here (the lego one) http://techslides.com/sample-webm-ogg-and-mp4-video-files-for-html5
And I get frames like this...
Checking out some of the ffmpeg probe data of the video, both this and my camera video have the same pixel format (pix_fmt=yuv420p) but there are differences in color_range.
The video that works has,
color_range=tv
color_space=bt709
color_transfer=bt709
color_primaries=bt709And the camera video just has...
color_range=unknown
color_space=unknown
color_transfer=unknown
color_primaries=unknownThe media format of the camera video appears to be in SemiPlanar YUV, the codec output gets updated to that at least. I get an OutputBuffersChanged message which sets the output buffer of the MediaCodec to the following,
{
mime=video/raw,
crop-top=0,
crop-right=639,
slice-height=480,
color-format=21,
height=480,
width=640,
what=1869968451,
crop-bottom=479,
crop-left=0,
stride=640
}I can also point the codec output to a TextureView as opposed to OpenGL surface, and just grab the Bitmap that way (obviously slower) and these frames look fine. So maybe its the OpenGL display of the raw codec output ? Does Android TextureView do its on decoding ?
Note - The reason I’m looking into all this is I have a need to try and run some form of image processing on a raw camera feed at as close to 30fps as possible. Obviously, this is not possible some devices, but recording a video at 30fps and then processing the video after the fact is a possible workaround I’m investigating. I’d rather try and process the image in OpenGL for the improved speed than taking each frame as a Bitmap from the TextureView output.
In researching this I’ve seen someone else with pretty much the exact same issue here How to properly save frames from mp4 as png files using ExtractMpegFrames.java ?
although he didn’t seem to have much luck finding out what might be going wrong.EDIT - FFMpeg Probe outputs for both videos...
Video that works - https://justpaste.it/484ec .
Video that fails - https://justpaste.it/55in0 . -
avfilter/vf_convolution : add horizontal/row mode
3 mai 2018, par Paul B Mahol