
Recherche avancée
Autres articles (51)
-
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 (...)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (3159)
-
RTMP Stream Save Video using FFMPEG
9 août 2019, par Abhishek SenguptaI am having trouble saving a live stream to disk using FFMPEG.
It is saving the file after running the command :
ffmpeg -i rtmp://000.00.0.0/hls/test1705269295 -c copy -f mp4 /var/www/html/1_1564654090862.mp4
But it is becoming corrupted, if we dont use CTRL+C to save it manually, while the stream is still live.
Is there any way so that ffmpeg will automatically save the files properly when the live stream ends by the streamer ?
-
What is the right way to clean memory in ffmpeg ?
27 mars 2018, par hagorHi i have a class with these fields :
bool m_initializedAndRegistered = false;
std::atomic <bool> m_recievingFrames = false;
int m_init_frames = 10000;
int m_capacity = 10;
std::thread readingThread;
std::string m_streamAdress;
SwsContext *m_img_convert_ctx_ptr = NULL;
AVFormatContext *m_format_ctx_ptr = NULL;
AVFormatContext *m_output_ctx_ptr = NULL;
AVCodecContext *m_codec_ctx_ptr= NULL;// = NULL;
AVPacket m_packet;
AVStream *m_stream_ptr = NULL;
AVCodec *m_codec_ptr = NULL;
AVFrame *m_picture_ptr = NULL;
AVFrame *m_picture_rgb_ptr = NULL;
int m_video_stream_index = -1;
uint8_t *m_picture_buffer_ptr = NULL;
uint8_t *m_picture_buffer_2_ptr = NULL;
circ_buffer m_imageBuffer;
</bool>is it a correct way to clean all memory or do I forget to clean something ?
It seems that I have 0.2 MB memory leak when I do this :m_recievingFrames = false;
readingThread.join();
readingThread.~thread();
while (m_imageBuffer.size() > 0)
{
m_imageBuffer.receive().release();
}
av_packet_unref(&m_packet);
av_frame_free(&m_picture_ptr);
av_frame_free(&m_picture_rgb_ptr);
av_read_pause(m_format_ctx_ptr);
avio_close(m_output_ctx_ptr->pb);
avio_close(m_format_ctx_ptr->pb);
avformat_close_input(&m_format_ctx_ptr);
avformat_close_input(&m_output_ctx_ptr);
avformat_free_context(m_output_ctx_ptr);
avformat_free_context(m_format_ctx_ptr);
m_video_stream_index = -1;
av_free(m_picture_buffer_ptr);
av_free(m_picture_buffer_2_ptr);
avcodec_free_context(&m_codec_ctx_ptr);
av_free(m_stream_ptr);
sws_freeContext(m_img_convert_ctx_ptr);I used malloc in m_picture_buffer_ptr allocation, but I cant free() it, because I get a heap exception. Do I need manually clean all Info for streams as it is suggested here ?
My work is based on this old ffmpeg streamer.
I don’t do av_register_all() and avformat_network_init() on every streamer restart.
What is a good way (tool) to find memory leaks ? -
concat 2 mini audio files and make a loop and add a background music
11 octobre 2020, par Johny SharmaI Need to concatenate 2 small audio files with loop and add background music in a single command.



I am capable to concatenate two audio files with a background music. My above given code is working.



ffmpeg -i 1.mp3 -i 2.mp3 -i background.mp3 
-filter_complex "[0:0][1:0]concat=n=2:v=0:a=1,volume=1dB,aformat=fltp, pan=stereo|c0=c0|c1=c0[a0]; 
[2]volume=0.5dB,aformat=fltp,pan=stereo|c0=c0|c1=c1[a1];[a0][a1]amix=inputs=2:duration=longest,aformat=fltp[a]"
-map "[a]" -strict -2 -y output.mp3




but i want to a make a loop of the concatenated files till the end of the background music. background music is longer than approx 5 times from concatenated files.



If someone can suggest a single command solution.



I know about amovie tag but unfortunately its not possible to use in here because amovie requires file name which is not possible with concatenated files as per my knowledge.



Can anyone help me how can i achieve my goal !



Thanks