
Recherche avancée
Médias (91)
-
Spoon - Revenge !
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
My Morning Jacket - One Big Holiday
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Zap Mama - Wadidyusay ?
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
David Byrne - My Fair Lady
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Beastie Boys - Now Get Busy
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (55)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Les statuts des instances de mutualisation
13 mars 2010, parPour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...) -
L’agrémenter visuellement
10 avril 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.
Sur d’autres sites (10197)
-
FFmpeg - Channel relabelling of multi audio tracked video file [closed]
8 avril 2024, par Mahi sI'm trying to relabel the audio channels of the multitrack audio, video files. For some reason I could not relabel the audio channels or audio streams using FFmpeg command. Can someone please help me with a ffmpeg command that can retain all the audio properties like audio count and retain the tracks unaltered(some ffmpeg commands that I have tried just picks one out of multiple streams and provides the output).


Example scenario : I have a video file which has multi stream audio's (6 audio streams, 6 channel) file with audio format pcm, which was wrongly labelled as C C C C C C (when checked in media info - channel layout). But I need to change the labeling of audio tracks as L R C LFE Ls Rs (The desired audio codec is 5.1 (surround)).


The scenarios that I have faced when trying to relabel this video file is :


- 

- FFMpeg relabels correctly as L R C LFE Ls Rs, but it just takes one audio stream and places them in C channel (when checked in Audacity I can see the audio is present only in C channel), and leaves out other channels.
- Or it just merges all the audio streams into one (i.e.,the audio count becomes 1- media info output on the resulting file) resulting in a 5.1(LRC) audio codec- matrix.






The command that got me close was


ffmpeg -i input.mov -map 0:v -map 0:a:0 -c:a:0 copy -metadata:s:a:0 channel_layout="L" -map 0:a:1 -c:a:1 copy -metadata:s:a:1 channel_layout="R" -map 0:a:2 -c:a:2 copy -metadata:s:a:2 channel_layout="C" -map 0:a:3 -c:a:3 copy -metadata:s:a:3 channel_layout="LFE" -map 0:a:4 -c:a:4 copy -metadata:s:a:4 channel_layout="Ls" -map 0:a:5 -c:a:5 copy -metadata:s:a:5 channel_layout="Rs" -c:v copy output.mov"



But output.mov file does not have any channel layout labeled to it (when checked in media info).


Kindly help me with the proper command, so that I can convert the following file into a properly labeled (L R C LFE Ls Rs) 6 audio track, 5.1 (surround) file.


Expecting a FFMpeg command to relabel the audio channel layout (in media info) from "C C C C C C" (array) to "L R C LFE Ls Rs" (array) and audio codec to be "5.1 (Surround)", audio count to be "6" retaining all video properties from parent file.


-
fftools/ffmpeg : add InputStream.index
19 mai 2023, par Anton Khirnov -
Using libavformat to mux H.264 frames into RTP
18 septembre 2021, par DanielB6I have an encoder that produces a series of H.264 I-frames and P-frames. I'm trying to use libavformat to mux and transmit these frames over RTP, but I'm stuck.



My program sends RTP data, but the RTP timestamp increments by 1 each successive frame, instead of 90000/fps. It also doesn't look like it's doing the proper framing for H.264 NAL, since I can't decode the stream as H.264 in Wireshark.



I suspect that I'm not setting up the codec information properly, but it appears in many places in the output format context, so it's unclear what exactly needs to be setup. The examples seem to all copy codec context info from encoders, which isn't my use case.



This is what I'm trying :



int main() {
 AVFormatContext context = avformat_alloc_context();

 if (!context) {
 printf("avformat_alloc_context failed\n");
 return;
 }

 AVOutputFormat *format = av_guess_format("rtp", NULL, NULL);

 if (!format) {
 printf("av_guess_format failed\n");
 return;
 }

 context->oformat = format;

 snprintf(context->filename, sizeof(context->filename), "rtp://%s:%d", "192.168.2.16", 10000);

 if (avio_open(&(context->pb), context->filename, AVIO_FLAG_READ_WRITE) < 0) {
 printf("avio_open failed\n");
 return;
 }

 stream = avformat_new_stream(context, NULL);

 if (!stream) {
 printf("avformat_new_stream failed\n");
 return;
 }

 stream->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
 stream->codecpar->codec_id = AV_CODEC_ID_H264;
 stream->codecpar->width = 1920;
 stream->codecpar->height = 1080;

 avformat_write_header(context, NULL);

 ...
 write packets
 ...
}




Example write packet :



int write_packet(uint8_t *data, int size) {
 AVPacket p;
 av_init_packet(&p);
 p.data = buffer;
 p.size = size;
 p.stream_index = stream->index;

 av_interleaved_write_frame(context, &p);
}




I've even went so far to build in libx264, find the encoder, and copy the codec context info from there into the stream codecpar, with the same result. My goal is to build without libx264, and any other libs that aren't required, but it isn't clear whether libx264 is required for defaults such as time base.



How can the libavformat RTP muxer be initialized to properly send H.264 frames over RTCP+RTP ?