
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (6)
-
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Que fait exactement ce script ?
18 janvier 2011, parCe script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
Installation de dépendances de MediaSPIP
Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)
Sur d’autres sites (3110)
-
Why the source order matters on working with multiple media sources in a single AVFormatContext ?
24 avril 2024, par Mehmet YILMAZavformat_open_input()
deletes theAVFormatContext*
and returns-6
when the source order changes.

I am trying to open multiple media sources dynamically with different(mixed) formats and codecs in a single context (
AVFormatContext
).

My media sources are a BlackMagic DeckLink Duo SDI input as first source and an
mp4 file
orrtsp stream
as second.

When I order to open (
avformat_open_input()
) the source 2 (RTSP or MP4 file) at first and then open the BlackMagic DeckLink Duo, proceed as expected.

But when I change the order, and first open the DeckLink and then try to open RTSP stream or MP4 file, as I inspected in the step debugger ;
AVFormatContext*
deleting in theav_open_input()
function and it returns-6
as result.

Please find the simple error reproduction code snappet below ;


AVFormatContext* context{avformat_alloc_context()};
const char* url_source1{"DeckLink Duo (1)"};
const AVInputFormat* format_source1{av_find_input_format("decklink")};

const char* url_source2{"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"};

// Open the first media input
int result = avformat_open_input(&context, url_source1, format_source1, NULL);

if(result < 0) {
 exit(1);
}

// Open the second media input
// This function in current order deletes the context and returns -6
result = avformat_open_input(&context, url_source2, NULL, NULL);
if(result < 0) {
 exit(1);
}

// Since the context has been deleted in previous step, segmentation fault accours here!
result = avformat_find_stream_info(context, NULL);
if(result < 0) {
 exit(1);
}

std::cout << "Total number of streams: " << context->nb_streams << std::endl;




But When I change the order and call the
avformat_open_input()
first for themp4
file and then theDeckLink
device as following it proceed as expected, no error.

AVFormatContext* context{avformat_alloc_context()};
const char* url_source1{"DeckLink Duo (1)"};
const AVInputFormat* format_source1{av_find_input_format("decklink")};

const char* url_source2{"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"};


// Open the second media input
int result = avformat_open_input(&context, url_source2, NULL, NULL);
if(result < 0) {
 exit(1);
}


// Open the first media input
result = avformat_open_input(&context, url_source1, format_source1, NULL);

if(result < 0) {
 exit(1);
}


result = avformat_find_stream_info(context, NULL);
if(result < 0) {
 exit(1);
}

std::cout << "Total number of streams: " << context->nb_streams << std::endl;




-
How to convert frames to mp4 using ffmpeg - Conversion Error [closed]
2 mai 2022, par ibibI have 1,170 frames (.png), named from img_001.png to img_1170.png.
I am trying to create an mp4 video from these frames using ffmpeg in windows. However, every command that I have used returns a conversion errors, some of which are :


Error initializing output stream 0:0 — Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed !


Appreciate any suggestions and codes.


-
FFmpeg - how to configure H264 encoder to output 1 packet after 1 frame (no B frames)
30 octobre 2018, par maxestIs it possible to configure FFmpeg encoder such that when I call :
avcodec_send_frame
I can then call :
avcodec_receive_packet
and receive the packet ?
Right now I have to call avcodec_send_frame a few dozens times before avcodec_receive_packet returns any valid packet. In other words I would like the latency to be reduced to 0.