
Recherche avancée
Autres articles (40)
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (10503)
-
Convert AVStream PTS value to real time in seconds
15 janvier 2015, par KamleshThe below code snippet gets the PTS value of different frames from a video file
AVStream *stream = avctx->streams[avpkt.stream_index];
if ( 0 > ( err = avcodec_decode_video2 ( stream->codec, frame, &got_frame, &avpkt ) && got_frame ) )
{
int64_t pts = av_frame_get_best_effort_timestamp ( frame );
pts = av_rescale_q ( pts, stream->time_base, AV_TIME_BASE_Q );
}The PTS value that it returns are given below.
- 66733
- 100100
- 133467
Confusion is on the time format of the above values, whether they are in milliseconds or microseconds.
Is there any other way to get a real time PTS values of the frames, as these will be required for subtitle rendering -
ffmpeg aac encoder shows "Input contains (near) NaN/+-Inf"
26 janvier 2021, par zzzzzzhere's a question.
When my code goes to
ret = avcodec_send_frame(enc_ctx, tmpFrame)
, sometimes it returnsAVERROR(EINVAL)
. Many people say that the reason is the format of tmpFrame isAV_SAMPLE_FMT_S16
, but encoder needsAV_SAMPLE_FMT_FLTP
. However, my log shows thattmpFrame->format: 8, tmpFrame->channels: 1, tmpFrame->channel_layout: 4, tmpFrame->sample_rate: 32000, tmpFrame->nb_samples: 1024
. Here 8 is the value ofAV_SAMPLE_FMT_FLTP
.

So what is the reason of this bug ?


-
ffmpeg causes browser to hang up ?
24 juillet 2012, par Itai SagiI'm using ffmpeg to convert videos on the fly, as they say, and I'm facing with a very annoying, unsolvable and unreferenced problem (as of yet ;) ), when I run my php script, it basically works - takes the file, uses ffmpeg, starts converting it, but halway through it's finished, the browser hangs, I don't understand why or how to resolve it :
(even with set_time_limit the bastard won't work).function convertToMp4(){
/*
* Converts a file to mp4, returns the new file name
*/
set_time_limit(0);
$tmpFile = $this->fileName;
$newFile = uniqid();
$outputFile = "output/$justFile.mp4";
exec("ffmpeg -i " . $tmpFile . " -acodec copy -ar 44100 -ab 96k " . $outputFile. " &");
unlink($tmpFile);
return $outputFile;
}Ideas ?