
Recherche avancée
Autres articles (17)
-
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 -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (4944)
-
avcodec/jpeg2000dec : Allocate lengthinc and data_start arrays as needed
17 décembre 2017, par Michael Niedermayeravcodec/jpeg2000dec : Allocate lengthinc and data_start arrays as needed
Decreases memory requirements
Fixes : OOM
Fixes : 4525/clusterfuzz-testcase-minimized-6400713073623040Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
cx_Freeze missing ffmpeg
30 décembre 2017, par DexstrumI am trying to deploy a python application with cx_Freeze. I have my setup.py created as below :
from cx_Freeze import Executable, setup
import ffmpeg
build_exe_options = {
'packages': ['os'],
'include_files': [ffmpeg.__file__, ],
}
setup(
name='myapp',
version='0.0.1',
description='MyApp',
options={'build_exe': build_exe_options},
executables=[Executable('bin/myapp.py')],
)I also have a requirements file setup as such :
ffmpeg-python
cx_FreezeWhen I run python setup.py build, I get the following error :
File "setup.py", line 2, in <module>
import ffmpeg
ImportError: No module named ffmpeg
</module>The program runs fine in PyCharm and ffmpeg is recognized. I’m not sure why cx_Freeze does not recognize it.
-
FFmpeg live streaming RGB frame buffer
23 février 2018, par Mher DidaryanWhen we have a local video file This code works for streaming. What we want to achieve is to change input file with RGB frame buffer that we grab from screen. The code below uses input file’s
time_base
for PTS and DTS calculation.if(pkt.stream_index==videoindex) {
AVRational time_base=ifmt_ctx->streams[videoindex]->time_base;
AVRational time_base_q={1,AV_TIME_BASE};
int64_t pts_time = av_rescale_q(pkt.dts, time_base, time_base_q);
int64_t now_time = av_gettime() - start_time;
if (pts_time > now_time)
av_usleep(pts_time - now_time);
}
in_stream = ifmt_ctx->streams[pkt.stream_index];
out_stream = ofmt_ctx->streams[pkt.stream_index];
/* copy packet */
//Convert PTS/DTS
pkt.pts = av_rescale_q_rnd(pkt.pts, in_stream->time_base, out_stream->time_base, (AVRounding)(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
pkt.dts = av_rescale_q_rnd(pkt.dts, in_stream->time_base, out_stream->time_base, (AVRounding)(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
pkt.duration = av_rescale_q(pkt.duration, in_stream->time_base, out_stream->time_base);Following this answer which increments PTS value by one for every frame
VideoSt.Frame->pts = VideoSt.NextPts++;
saving in local file or streaming to Wowza server works (low quality) but fails on Youtube and Twitch.av_interleaved_write_frame
function returns error -22. To improve quality we loweredqmin
andqmax
values but the bit-rate of video increased too much (30Mb/s and even more for HD video).VideoSt.Ctx->codec_id = VideoCodec->id;
VideoSt.Ctx->width = ViewportSize.X;
VideoSt.Ctx->height = ViewportSize.Y;
VideoSt.Stream->time_base = VideoSt.Ctx->time_base = { 1, 30 };
VideoSt.Ctx->time_base = timeBase;
VideoSt.Ctx->gop_size = 60;
VideoSt.Ctx->bit_rate = 400000;
VideoSt.Ctx->pix_fmt = AV_PIX_FMT_YUV420P;
VideoSt.Ctx->qmin = 1;
VideoSt.Ctx->qmax = 2;
VideoSt.Ctx->max_qdiff = 3;
VideoSt.Ctx->qcompress = 1.0f;How can we stream lossless quality video with reasonable bit-rate using flv1 codec ? If streaming to Youtube or Twitch fails is it just a problem with requirements of this services or there’s an issue with encoding ?
Regarding error code -22 there’s a detailed explanation which explains how we should increment PTS and DTS values.
In which cases calculating PTS and DTS values are necessary ?
And by the way what are these PTS and DTS ? After reading many posts and Understanding PTS and DTS in video frames accepted answer I still do not understand.