
Recherche avancée
Autres articles (55)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
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 -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (11783)
-
Playing RTSP stream in Android
9 décembre 2014, par KamilI’m trying to play video stream on Android device. Unfortunatelly I still get the same problem with MediaPlayer/VideoView. I’m searching for a few days, but still haven’t found any working solution.
For test purposes I’m using MediaPlayer app from API Demos (API Demos/Media/MediaPlayer/Play Streaming Video).
Here is code snippet for playing streammMediaPlayer = new MediaPlayer();
mMediaPlayer.setDataSource(path);
mMediaPlayer.setDisplay(holder);
mMediaPlayer.prepare();
mMediaPlayer.setOnBufferingUpdateListener(this);
mMediaPlayer.setOnCompletionListener(this);
mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.setOnVideoSizeChangedListener(this);When I try to play stream I get this info from logcat
http://pastebin.com/5Uib5CH5This is configuration of ffserver streaming the video
Port 8090
BindAddress 0.0.0.0
RTSPPort 7654
RTSPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000
CustomLog -
NoDaemon
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 5M
Launch ffmpeg -i mmsh://tempserv.cam/vid1
ACL allow 127.0.0.1
</Feed>
<Stream rat1.mpg>
Feed feed1.ffm
Format rtp
NoAudio
VideoBitRate 56k
VideoBufferSize 40
VideoFrameRate 12
VideoSize 176x144
VideoGopSize 12
VideoCodec libx264
AVPresetVideo baseline
</Stream>If anyone can advise me how to fix it, or at least indicate an mistake, I will be grateful.
-
tips needed : aac encode on android using ffmpeg-neon optimization
13 octobre 2011, par user992537there
I am trying to do some performance improvement about libfaac/libx264 encoder using ffmpeg and neon.seems successfully compiled ffmpeg with neon support,and video encode performance indeed has some improvement,however when it comes to aac encode, it barely can run...Do I have to do some code change about aac specificly ? Does this have something to do with neon`s fft stuff ?Totally clueless, any tips would be greatly appreciated !Thanks -
Encoding Raw PCM data to AAC using ffmpeg in Android
10 janvier 2012, par NISHAnTNow, i m using libfaac directly to convert raw PCM data to AAC in JNI. Frames Encoded successfully still bytesWritten is always 0 it means there will b some problem in code Here is my Code.
JNIEXPORT
jbyteArray JNICALL Java_com_encodePCMFrame(JNIEnv * env,
jclass clazz,short* data,jint bitRate,jint sampleSize,jint channelConfig)
{
faacEncHandle hEncoder;
unsigned long samplesInput, maxBytesOutput, totalBytesWritten;
faacEncConfigurationPtr faacPtr;
char *faac_id_string;
char *faac_copyright_string;
unsigned long inputsamples;
unsigned long maxoutputbytes;
unsigned char* bitbuf;
int bytesWritten;
jbyteArray AACframe;
jsize size;
if(faacEncGetVersion(&faac_id_string, &faac_copyright_string) == FAAC_CFG_VERSION)
{
__android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "\nFAAC_ID_STRING %s\n\n ", faac_id_string);
}
hEncoder = faacEncOpen(sampleSize, channelConfig,&inputsamples, &maxoutputbytes);
if(hEncoder)
{
__android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "AAC Codec Open (samplesize = %d)\n (channelConfig = %d)\n (input Samples = %d)\n(Max OUTPUT BYTES = %d)\n (bitRate = %d)...",sampleSize,channelConfig,inputsamples,maxoutputbytes,bitRate);
}
faacPtr = faacEncGetCurrentConfiguration(hEncoder);
faacPtr->aacObjectType = MAIN;
faacPtr->mpegVersion = MPEG2;
faacPtr->outputFormat = 1; //ADTS
faacPtr->bitRate = bitRate;
faacPtr->inputFormat = FAAC_INPUT_16BIT;
if (faacEncSetConfiguration(hEncoder, faacPtr)==0)
{
__android_log_print(ANDROID_LOG_VERBOSE, APPNAME,"fail to set");
faacEncClose ( hEncoder );
hEncoder =0;
}
bitbuf = (unsigned char*)malloc(maxoutputbytes*sizeof(unsigned char));
bytesWritten = faacEncEncode(hEncoder,(int32_t *)data,inputsamples,bitbuf,maxoutputbytes);
if(bytesWritten<=0)
{
__android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "Can Not Encode Frame... bytesWritten = %d ",bytesWritten);
faacEncClose(hEncoder);
}
else
{
__android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "Bytes Written = %d ",bytesWritten);
__android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "Encoding frame %d ",bitbuf);
}
AACframe = (*env)->NewByteArray(env,maxoutputbytes);
(*env)->SetByteArrayRegion(env,AACframe, 0,maxoutputbytes, bitbuf);
__android_log_print(ANDROID_LOG_VERBOSE, APPNAME, "Buffer AAC Frame == %d Allocated... Size == %d ",AACframe,maxoutputbytes);
return AACframe;
av_free(bitbuf);
av_free(data);
(*env)->ReleaseByteArrayElements(env, AACframe, 0, JNI_ABORT);
}Thanks in Advance.