
Recherche avancée
Autres articles (61)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
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
Sur d’autres sites (6954)
-
Rotation on Video frame image makes video quality low and becomes green ffmpeg opencv
21 novembre 2013, par bindalI am working on one application in which i have to record video on touch which includes pause recording so , i am using FFmpegFrameRecorder for that
But when i am recording video with rear camera then in onpreviewframe
i am getting yuvIplImage in portrait mode that is correct but when i
am recording with front camera in portrait mode then in onPreviewframe
i am getting image upside down , so my half, so from that result my
half video is showing in correct portrait mode and remaining half
video id showing upside down, so i am applying rotation on yuvIplImage
when recording from front cameraHere is my onPreviewFrame Method
@Override
public void onPreviewFrame(byte[] data, Camera camera) {
long frameTimeStamp = 0L;
if (mAudioTimestamp == 0L && firstTime > 0L)
frameTimeStamp = 1000L * (System.currentTimeMillis() - firstTime);
else if (mLastAudioTimestamp == mAudioTimestamp)
frameTimeStamp = mAudioTimestamp + frameTime;
else {
long l2 = (System.nanoTime() - mAudioTimeRecorded) / 1000L;
frameTimeStamp = l2 + mAudioTimestamp;
mLastAudioTimestamp = mAudioTimestamp;
}
synchronized (mVideoRecordLock) {
if (recording && rec && lastSavedframe != null
&& lastSavedframe.getFrameBytesData() != null
&& yuvIplImage != null) {
mVideoTimestamp += frameTime;
if (lastSavedframe.getTimeStamp() > mVideoTimestamp)
mVideoTimestamp = lastSavedframe.getTimeStamp();
try {
yuvIplImage.getByteBuffer().put(
lastSavedframe.getFrameBytesData());
videoRecorder.setTimestamp(lastSavedframe
.getTimeStamp());
// if (defaultCameraId == 1) {
// CvSize size = new CvSize(yuvIplImage.height(),
// yuvIplImage.width());
// IplImage yuvIplImage2 = opencv_core.cvCreateImage(
// size, yuvIplImage.depth(),
// yuvIplImage.nChannels());
//
// videoRecorder.record(yuvIplImage2);
// } else {
// }
if (defaultCameraId == 1) {
yuvIplImage = rotate(yuvIplImage, 270);
videoRecorder.record(yuvIplImage);
}else
{
videoRecorder.record(yuvIplImage);
}
// else
// opencv_core.cvTranspose(yuvIplImage, yuvIplImage);
} catch (com.googlecode.javacv.FrameRecorder.Exception e) {
e.printStackTrace();
}
}
lastSavedframe = new SavedFrames(data, frameTimeStamp);
}
}
}Here is rotation function
public static IplImage rotate(IplImage image, double angle) {
IplImage copy = opencv_core.cvCloneImage(image);
IplImage rotatedImage = opencv_core.cvCreateImage(
opencv_core.cvGetSize(copy), copy.depth(), copy.nChannels());
CvMat mapMatrix = opencv_core.cvCreateMat(2, 3, opencv_core.CV_32FC1);
// Define Mid Point
CvPoint2D32f centerPoint = new CvPoint2D32f();
centerPoint.x(copy.width() / 2);
centerPoint.y(copy.height() / 2);
// Get Rotational Matrix
opencv_imgproc.cv2DRotationMatrix(centerPoint, angle, 1.0, mapMatrix);
// opencv_core.cvReleaseImage(copy);
// Rotate the Image
opencv_imgproc.cvWarpAffine(copy, rotatedImage, mapMatrix,
opencv_imgproc.CV_INTER_CUBIC
+ opencv_imgproc.CV_WARP_FILL_OUTLIERS,
opencv_core.cvScalarAll(170));
opencv_core.cvReleaseImage(copy);
opencv_core.cvReleaseMat(mapMatrix);
return rotatedImage;
}But Final output of video makes half of the video green
Thanks in advance
-
avcodec : Fix duration error after seek operation
15 novembre 2013, par wangxingchaoavcodec : Fix duration error after seek operation
After seek, s->duration need recalculation, AVCodecParserContext need be set
again. Without the fix, the first audio packet would be dropped after
compute_pkt_fields() as the final pts/dts become invalid.Signed-off-by : wangxingchao <wangxingchao@xiaomi.com>
Signed-off-by : Michael Niedermayer <michaelni@gmx.at> -
How to use ffmpeg without root access
6 octobre 2016, par Charlie227I’ve successfully installed ffmpeg using ssh, as root, on my dedicated server (CentOS 7).
ffmpeg works fine - but now I need to use it without root access.When i try to use ffmpeg without root access, I get the following error :
ffmpeg: error while loading shared libraries: libx264.so.148:
cannot open shared object file: No such file or directoryThe final goal is to be able to use ffmpeg inside my PHP scripts which do not root access.
Any help is appreciated.