
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (89)
-
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 -
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 -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)
Sur d’autres sites (12264)
-
Error to encode audio though out the video in FFmpegFrameRecorder
28 mars 2016, par Ragghwendra SuryawanshiHello Stack World,
I am trying to crate video from images in android using FFMpeg and
javacv. I am able to crate video from images with out audio, when i try
the same thing with audio video is crated but audio is just for 1
sec of the videoFFmpegFrameRecorder myFFmpegFrameRecorder = new FFmpegFrameRecorder(new StringBuilder(String.valueOf(strPath)).append("/").append(this.FileName).toString(), 640, 480, frameGrabber.getAudioChannels());
myFFmpegFrameRecorder.setVideoCodec(13);
myFFmpegFrameRecorder.setFormat("mp4");
myFFmpegFrameRecorder.setPixelFormat(0);
myFFmpegFrameRecorder.setSampleFormat(frameGrabber.getSampleFormat());
myFFmpegFrameRecorder.setSampleRate(44100);
myFFmpegFrameRecorder.setFrameRate(1.0d);
myFFmpegFrameRecorder.setVideoBitrate(AccessibilityEventCompat.TYPE_TOUCH_INTERACTION_START);
myFFmpegFrameRecorder.setAudioCodec(avcodec.AV_CODEC_ID_MP3);
boolean isAudioFinish = false;
try {
frameGrabber.start();
IplImage iplimage = new IplImage();
myFFmpegFrameRecorder.start();
for (int i = 0; i <= imgname - 1; i++) {
for (int j = 0; j <= 6; j++) {
Frame frame = frameGrabber.grabFrame();
if (frame != null) {
myFFmpegFrameRecorder.record(frame);
}
long l1 = 1000L * (System.currentTimeMillis() - l);
if (l1 < myFFmpegFrameRecorder.getTimestamp()) {
l1 = 1000L + myFFmpegFrameRecorder.getTimestamp();
}
myFFmpegFrameRecorder.setTimestamp(l1);
}
iplimage = opencv_highgui.cvLoadImage(myObjects.get(i).toString());
myFFmpegFrameRecorder.record(iplimage);
opencv_core.cvReleaseImage(iplimage);
}
myFFmpegFrameRecorder.stop();
frameGrabber.stop();
} catch (Exception e) {
e.printStackTrace();
}Please help me to solve it. I am missing something due to which it not working out here. I have read doc of the FFmpegFrameRecorder but unable to find my error.
-
How can I get start time of rtsp-sesson via ffmpeg (C++) ? start_time_realtime always equal -9223372036854775808
5 août 2019, par chuchuchuI’m trying to get a frame by rtsp and calculate its real-world timestamp. I previously used Live555 for this (presentationTime).
As far as I understand, ffmpeg does not provide such functionality, but provides the ability to read the relative time of each frame and the start time of the stream. In my case, the frame timestamps (pts) works correctly, but the stream start time (start_time_realtime) is always -9223372036854775808.
I’m trying to use simple example from this Q : https://stackoverflow.com/a/11054652/5355846
Value does not change. regardless of the position in the code
int main(int argc, char** argv) {
// Open the initial context variables that are needed
SwsContext *img_convert_ctx;
AVFormatContext* format_ctx = avformat_alloc_context();
AVCodecContext* codec_ctx = NULL;
int video_stream_index;
// Register everything
av_register_all();
avformat_network_init();
//open RTSP
if (avformat_open_input(&format_ctx, "path_to_rtsp_stream",
NULL, NULL) != 0) {
return EXIT_FAILURE;
}
...
}while (av_read_frame(format_ctx, &packet) >= 0 && cnt < 1000) { //read ~ 1000 frames
//// here!
std::cout<< " ***** "
<< std::to_string(format_ctx->start_time_realtime)
<< " | "<start_time
<< " | "<best_effort_timestamp;
...
}***** -9223372036854775808 | 0 | 4120 | 40801 Frame : 103
What am I doing wrong ?
-
Creating an ffmpeg html/php form process and need ffmpeg technical feedback
7 juin 2016, par daveI have decided to create an input form for ffmpeg to go with my video uploader.
This is for my video uploader plugin for a social site software. Users have told me that they want technical options for videos so they can choose the specific options they want including thumbnail options.
I have been reading the ffmpeg docs most of the morning as well as watching some videos and i have come up with a rough draft of my form. The videos uploaded will more than likely be non gaming, personal and hobby videos.
The goal here is to have a form that is easy enough for the non technical user, but technical for those that want the options. So i do plan to have a checkbox which allows the non technical user to skip the technical settings. This will result in a generic ffmpeg command with default settings. If they choose to use the technical specs then it will create a more specific ffmpeg command stream.
here is what i have so far in the draft.
select max size options ’50MB’,’100MB’,’200MB’,’500MB’,’650MB’,’750MB’,’1GB’,’2GB’,’3GB’
input for thumbcapture in seconds maxlength 2 size 2
input for video in ’mpg’,’wma’,’mov’,’flv’,’mp4’,’avi’,’qt’,’wmv’,’rm’
option for video size ’200x100’,’320x240’,’560x315’,’640x360’,’853x480’,’1280x720’ not sure if i want to offer a custom slot or not.
my thought here is that if they do not want the tech version of the form then the codecs will be b:v copy b:a copy (if that is the smart way to do it) or just left out and let ffmpeg decide what is best.
===== this is the technical part of the form =======
select for acodec options copy, mp3, mp1, mp2, dnet, 28_8, wmav2, alac, cook
select for vcodec option copy, ffv1, ms-cram, mpeg-4, rv40, wmv, xvid, mov, qt, avchd
select for bitrate audio 32k, 64k, 128k
select for bitrate video 1000k, 1200k, 1500k
select for sampling rate 22050, 44100
input for crf(mp4 out only) size 2 maxlength 2 minval 2 maxval 49
input for avi quantanizer (avi out only) size 2 maxlength 2 minval 2 maxval 49
===== end technical form =====================
select for video out ’avi’,’mp4’,’flv’
that is what i have so far. How does that combination on the technical side look to you ffmpeg pros ?
Any suggestions ? :)