
Recherche avancée
Autres articles (96)
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
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, (...) -
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 (10637)
-
FFmpeg av_interleaved_write_frame invalid parameter -22
21 octobre 2017, par Frank NatoliWindows 7 64 bit environment. C# Windows Forms application calling FFmpeg libraries through C++ bridge DLL including avcodec-57.dll, avformat-57.dll, avutil-55.dll, swresample-2.dll and swscale-4.dll to write MPEG-4 file using H.264/MPEG-4 AVC codec. When writing a single MP4 file, never a problem. When writing multiple MP4 files concurrently, via multiple C# threads, occasionally get av_interleaved_write_frame failure -22 which is invalid parameter on one or two but never all files. Needless to say, the parameters never change. Does FFmpeg use temporary files ? Is it possible that there is a fratricidal effect when using the same DLLs to write multiple files concurrently ?
Edit : placed mutex at entry/exit to my write frame function, see source below, and can no longer reproduce the problem. It would appear something about FFmpeg is not thread-safe.extern "C" __declspec(dllexport) int ffmpeg_write_video_frame(FFMPEG_CONTEXT *ffmpegContext, uint8_t *frameBuffer)
{
#ifdef SINGLE_THREAD
WaitForSingleObject(hMutex, INFINITE);
#endif
AVFrame *frame = ffmpeg_get_video_frame(&ffmpegContext->video, frameBuffer);
if (frame == NULL)
{
MessageBox(GetActiveWindow(), "ffmpeg_get_video_frame returned NULL", "ffmpeg_write_video_frame", MB_OK);
#ifdef SINGLE_THREAD
ReleaseMutex(hMutex);
#endif
return(-1);
}
AVPacket pkt = { 0 };
av_init_packet(&pkt);
// encode the image
int got_packet = 0;
int result = avcodec_encode_video2(ffmpegContext->video.avCodecContext, &pkt, frame, &got_packet);
if (result < 0)
{
char text[256];
sprintf_s(text, sizeof(text), "avcodec_encode_videos failure=%d", result);
MessageBox(GetActiveWindow(), text, "ffmpeg_write_video_frame", MB_OK);
#ifdef SINGLE_THREAD
ReleaseMutex(hMutex);
#endif
return(result);
}
// if the encoder has produced an output packet
if (got_packet)
{
result = ffmpeg_write_frame(ffmpegContext->avFormatContext, &ffmpegContext->video.avCodecContext->time_base, ffmpegContext->video.avStream, &pkt);
if (result < 0)
{
char text[256];
sprintf_s(text, sizeof(text), "ffmpeg_write_frame failure=%d", result);
MessageBox(GetActiveWindow(), text, "ffmpeg_write_video_frame", MB_OK);
#ifdef SINGLE_THREAD
ReleaseMutex(hMutex);
#endif
return(result);
}
}
#ifdef SINGLE_THREAD
ReleaseMutex(hMutex);
#endif
return (0);
}
extern "C" int ffmpeg_write_frame(AVFormatContext *fmt_ctx, const AVRational *time_base, AVStream *st, AVPacket *pkt)
{
/* rescale output packet timestamp values from codec to stream timebase */
av_packet_rescale_ts(pkt, *time_base, st->time_base);
pkt->stream_index = st->index;
/* Write the compressed frame to the media file. */
#if 0
log_packet(fmt_ctx, pkt);
#endif
int result = av_interleaved_write_frame(fmt_ctx, pkt);
if (result < 0)
{
char text[256];
sprintf_s(text, sizeof(text), "av_interleaved_write_frame failure=%d", result);
MessageBox(GetActiveWindow(), text, "ffmpeg_write_frame", MB_OK);
}
return(result);
} -
FFMPEG S3 AWS Laravel Unable to check existence
18 avril 2023, par Moomen Aldahdouhthe error in logs laravel file
[2023-04-18 14:11:22] production.ERROR : Unable to check existence for : videos/643ea50862566/643ea50862566_0_300_%05d.ts "exception" :"[object] (League\Flysystem\UnableToCheckFileExistence(code : 0) : Unable to check existence for : videos/643ea50862566/643ea50862566_0_300_%05d.ts at C :\inetpub\mysite\vendor\league\flysystem\src\UnableToCheckExistence.php:19)
[stacktrace]


I'm trying to upload a video on S3 service using Laravel FFMPEG and convert the video to multi-resolution after adding Frames, the error appears on the server, but on localhost not appear, and working very well locally.


`FFMpeg::fromDisk('s3')//uploads
 ->open($this->data["storage_path_full"])
 ->exportForHLS()
 ->addFormat($lowBitrate, function ($media) {
 $media->addFilter('scale=256:144'); 
 })
 ->addFormat($superLowBitrate, function ($media) {
 $media->addFilter('scale=426:240'); 
 })
 ->addFormat($midBitrate, function ($media) {
 $media->addFilter('scale=480:360'); 
 })
 ->addFormat($superMidBitrate, function ($media) {
 $media->addFilter('scale=640:480'); 
 })
 ->addFormat($highBitrate, function ($media) {
 $media->addFilter('scale=1280:720'); 
 })
 ->addFormat($superHighBitrate, function ($media) {
 $media->addFilter('scale=1920:1080'); 
 })
 ->toDisk('s3')
 ->save($this->data["storage_path_video"]);`



-
Application won't work after disconnecting from RDP [closed]
12 juillet 2023, par Duri EunThe problem is that my Java Script runs perfectly fine when I have a connection with RDP to my Windows Server but when I disconnect (Clicking X) as title says my Script wont work as expected.


It is recieving the requests from my website but can't do the tasks properly such as FFMpeg.




Error adding banner to the video : Error : ffmpeg exited with code 1 :
at ChildProcess. (C :\Users\durieun02\Desktop\server\node_modules\fluent-ffmpeg\lib\processor.js:182:22)
at ChildProcess.emit (node:events:513:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)




This is just an explanation error, in reality my process is not even working.


And such more errors like this when I am disconnected, The whole point of me opening a VM was to keep my actual PC offline while server would run for me in the background.


I have also tried running my Script as a background process but it didn't worked either. It still somehow didn't have the permissions or something, not really sure why.


I also edited gpedit.msc and Edited necessary things such as "Session Time Limits" but its not revelant at all since my session is not turning off but rather function don't work properly when RDP is not connected.


I have also trying running it as a scheduled task and windows service, the problem is still same, the script runs but its not working as expected, my website esentiially returns the errors.


Thanks for the helps, I hope we can find a solution for all.