
Recherche avancée
Autres articles (101)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...)
Sur d’autres sites (8893)
-
Having trouble building FFmpeg using GNU make, Makefile:182 : /tests/Makefile : No such file or directory
24 mai 2022, par DaedalusI'm having trouble building FFmpeg as a library to use in a project in vscode C++. I have no experience working with C/C++ libraries and would greatly appreciate any help. I've installed chocolatey and GNU make (GNU Make 4.3) with that, and the source code for FFmpeg. I cannot run make, as it tells me to do in the INSTALL.md file of the source code. I've been using command prompt to run the commands. Here are my errors :


C:\ffmpeg>PowerShell ./configure

C:\ffmpeg>make
Makefile:182: /tests/Makefile: No such file or directory
make: *** No rule to make target '/tests/Makefile'. Stop.

C:\ffmpeg>make install
Makefile:182: /tests/Makefile: No such file or directory
make: *** No rule to make target '/tests/Makefile'. Stop.



I've installed FFmpeg from github, and I can't find a working prebuilt library. I've tried different variations of the commands, with PowerShell and directories, but nothing has worked. This is INSTALL.md :




Installing FFmpeg


- 

-
Type
./configure
to create the configuration. A list of configure options is printed by runningconfigure --help
.

configure
can be launched from a directory different from the FFmpeg sources to build the objects out of tree. To do this, use an
absolute path when launchingconfigure
, e.g.
/ffmpegdir/ffmpeg/configure
.

-
Then type
make
to build FFmpeg. GNU Make 3.81 or later is required.

-
Type
make install
to install all binaries and libraries you built.









NOTICE


- 

- Non system dependencies (e.g. libx264, libvpx) are disabled by default.






Any help would be greatly appreciated. Thanks in advance.


-
-
How to pass data cuvidParseVideoData
28 avril 2022, par Serhan ErkovanI try to develop streaming program,I have 4k videos that 5 fps and 20 seconds, I encode frames with cuda encoder successfully, i send encoded data over rtp successfully but when i try to decode that data, i got 0 frame from
cuvidParseVideoData
. Should i do something before thecuvidParseVideoData
for example use ffmpeg demuxer ?

RecvDec.cpp


Server* server = new Server(8890 + thread_no);
server->recv_packets();
totBuf* totBuf = server->getTotalBuf();
 if (totBuf->perBuf == nullptr) {
 
 std::cout << prompt << "perBuf null!" << std::endl;
 nVideoBytes = 1;
 continue;
 }

pVideo = new uint8_t[totBuf->totSize];
memcpy(pVideo, totBuf->perBuf->perBuf, totBuf->totSize);
nVideoBytes = totBuf->perBuf->size;
int nFrameReturned = 0;
nFrameReturned = dec.Decode(pVideo, nVideoBytes);





NvDecoder.cpp


int NvDecoder::Decode(const uint8_t *pData, int nSize, int nFlags, int64_t nTimestamp)
{
 m_nDecodedFrame = 0;
 m_nDecodedFrameReturned = 0;
 CUVIDSOURCEDATAPACKET packet = { 0 };
 packet.payload = pData;
 packet.payload_size = nSize;
 packet.flags = nFlags | CUVID_PKT_TIMESTAMP;
 packet.timestamp = nTimestamp;
 if (!pData || nSize == 0) {
 packet.flags |= CUVID_PKT_ENDOFSTREAM;
 }
 NVDEC_API_CALL(cuvidParseVideoData(m_hParser, &packet));
 m_cuvidStream = 0;

 return m_nDecodedFrame;
}




Decode function always returns 0.
If i have to pass my datas from Ffmpeg demuxer, how can i pass type of uint8_t* data to demuxer ?
My data always starts with 0x00 0x00 0x00 0x01. This is start frame tag.


-
How to work with Cuda cuvidParseVideoData
27 avril 2022, par Serhan ErkovanI try to develop streaming program,I have 4k videos that 5 fps and 20 seconds, I encode frames with cuda encoder successfully, i send encoded data over rtp successfully but when i try to decode that data, i got 0 frame from
cuvidParseVideoData
. Should i do something before thecuvidParseVideoData
for example use ffmpeg demuxer ?

RecvDec.cpp


Server* server = new Server(8890 + thread_no);
server->recv_packets();
totBuf* totBuf = server->getTotalBuf();
 if (totBuf->perBuf == nullptr) {
 
 std::cout << prompt << "perBuf null!" << std::endl;
 nVideoBytes = 1;
 continue;
 }

pVideo = new uint8_t[totBuf->totSize];
memcpy(pVideo, totBuf->perBuf->perBuf, totBuf->totSize);
nVideoBytes = totBuf->perBuf->size;
int nFrameReturned = 0;
nFrameReturned = dec.Decode(pVideo, nVideoBytes);





NvDecoder.cpp


int NvDecoder::Decode(const uint8_t *pData, int nSize, int nFlags, int64_t nTimestamp)
{
 m_nDecodedFrame = 0;
 m_nDecodedFrameReturned = 0;
 CUVIDSOURCEDATAPACKET packet = { 0 };
 packet.payload = pData;
 packet.payload_size = nSize;
 packet.flags = nFlags | CUVID_PKT_TIMESTAMP;
 packet.timestamp = nTimestamp;
 if (!pData || nSize == 0) {
 packet.flags |= CUVID_PKT_ENDOFSTREAM;
 }
 NVDEC_API_CALL(cuvidParseVideoData(m_hParser, &packet));
 m_cuvidStream = 0;

 return m_nDecodedFrame;
}




Decode function always returns 0.
If i have to pass my datas from Ffmpeg demuxer, how can i pass type of uint8_t* data to demuxer ?
My data always starts with 0x00 0x00 0x00 0x01. This is start frame tag.