Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (53)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (7277)

  • SDL2 won't play with more than 6 audio channels

    13 juin 2020, par Hiko Haieto

    I am trying to stream (raw) video and audio from a capture device as part of my home media setup (with my pc acting similarly to a receiver in a typical home theatre setup), but the biggest problem I haven't been able to get past is that I haven't been able to get ffplay (using SDL2 as its audio backend) to work with all 8 channels in 7.1 streams - two simply get dropped, despite it recognising 8 channel input or me specifying a 7.1 layout.

    



    I have been able to confirm that all 8 channels are present in the source by first using ffmpeg to save the output of a speaker test to a file and playing that back with both mplayer (which works) and ffplay (which doesn't). I also wrote some minimal code to play the audio directly through SDL's API with the same result, so it's not the fault of ffplay. I might simply use mplayer if it weren't for the fact that piping output from ffmpeg adds too much latency for real-time use. I am using libSDL version 2.0.12 and ffplay 4.2.3, both of which are the latest at the time of writing and are ostensibly supposed to support 7.1 audio.

    



    Using output recorded from speaker-test -c 8, I am using the following to play it back in mplayer :

    



    mplayer -channels 8 -rawaudio channels=8 -format s16le -demuxer rawaudio speaker-test.pcm


    



    and the following to play it back in ffplay :

    



    ffplay -f s16le -ac 8 -af 'channelmap=channel_layout=7.1' speaker-test.pcm


    



    No matter what I try, the two side channels get dropped. I couldn't figure out how to play raw pcm in SDL, so I repeated the same tests with wav output and used the following code to play it back :

    



    #include <sdl2></sdl2>SDL.h>&#xA;&#xA;int main(int argc, char **argv) {&#xA;    SDL_Init(SDL_INIT_AUDIO);&#xA;    SDL_AudioSpec wavSpec;&#xA;    Uint32 wavLength;&#xA;    Uint8 *wavBuffer;&#xA;    SDL_LoadWAV("speaker-test.wav", &amp;wavSpec, &amp;wavBuffer, &amp;wavLength);&#xA;    SDL_AudioDeviceID deviceID = SDL_OpenAudioDevice(NULL, 0, &amp;wavSpec, NULL, 0);&#xA;    SDL_QueueAudio(deviceID, wavBuffer, wavLength);&#xA;    SDL_PauseAudioDevice(deviceID, 0);&#xA;    SDL_Delay(30000);&#xA;    SDL_CloseAudioDevice(deviceID);&#xA;    SDL_FreeWAV(wavBuffer);&#xA;    SDL_Quit();&#xA;    return 0;&#xA;}&#xA;

    &#xA;&#xA;

    The above code exhibits the same behaviour of dropping the two additional side channels, despite it being the latest version of SDL that should have supported 7.1 for many releases now. Why might this be happening, and how might I fix it ?

    &#xA;

  • FFmpeg - convert 2 audio tracks from video to 5.1 audio, (play video with different languages to different devices) [closed]

    10 février, par Sandre

    How to watch a movie with one language playing through the speakers and another through the headphones ?

    &#xA;

    Disclaimer : I know nothing about audio conversion, and don't want to study ffmpeg. I spend a few hours searching how to do, actually much more than I want. I found a bunch of questions from different people and not a single working solution, so I made a clunky but working solution. If someone helps me make it more elegant, I'll be happy. If my question just gets downvoted like most ffmpeg newbie questions, it probably deserves it. And I hope my question can help people who want enjoy video with 2 different languages.

    &#xA;

    A clumsy but working solution.

    &#xA;

      &#xA;
    1. Setup Aggregate Audio Device to play 2 channels of 5.1 through speakers and 2 through bluetooth headphones. (On screenshot Audio MIDI Setup for MacOS)&#xA;Agregate Device config

      &#xA;

    2. &#xA;

    3. Use ffmpeg to convert 2 audio tracks into 5.1 audio.

      &#xA;

    4. &#xA;

    5. Play video with new external audio track.

      &#xA;

    6. &#xA;

    &#xA;

    # print list of channels&#xA;ffprobe INPUT.mkv 2>&amp;1 >/dev/null | grep Stream&#xA;&#xA;--- sample output ---&#xA;    Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1280x544, SAR 1:1 DAR 40:17, 23.98 fps, 23.98 tbr, 1k tbn (default)&#xA;    Stream #0:1(rus): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)&#xA;    Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s&#xA;&#xA;# extract audio&#xA;ffmpeg -i INPUT.mkv -map 0:1 -acodec copy ru.ac3&#xA;ffmpeg -i INPUT.mkv -map 0:2 -acodec copy en.ac3&#xA;&#xA;# extract only front_center channel from 5.1 - speach&#xA;ffmpeg -i en.ac3 -filter_complex "channelsplit=channel_layout=5.1:channels=FC[center]" -map "[center]" en_front_center.wav&#xA;ffmpeg -i ru.ac3 -filter_complex "channelsplit=channel_layout=5.1:channels=FC[center]" -map "[center]" ru_front_center.wav&#xA;&#xA;# join to 5.1&#xA;ffmpeg -i en_front_center.wav -i ru_front_center.wav -filter_complex "[0:a][0:a][0:a][0:a][1:a][1:a]join=inputs=6:channel_layout=5.1[a]" -map "[a]" output.wav&#xA;

    &#xA;

    Is it possible to avoid re-encoding the audio and copying the same channel many times to reduce the file size ?

    &#xA;

  • FFMpeg - Adding Timecode track messes with video output

    19 octobre 2022, par Muindor

    I'm using FFMpeg to setup some automation.

    &#xA;

    I want to pull in a PNG, repeat it for 5 seconds, then add on an mov file to the end. I have that working great. The problem comes when I add a timecode to the output. The output video remains the correct length, but the PNG only repeats for 24 frames instead of 120, then the mov gets added, then black frames fill the rest.

    &#xA;

    This is the command I'm using. Without the timecode flag it works perfectly.

    &#xA;

    ./ffmpeg  -loop 1 -t 5 -r 24 -i &#x27;image.png&#x27; -i &#x27;end.mov&#x27; -filter_complex "[0]setdar=16/9[a];[1]setdar=16/9[b];[a][b]concat=n=2:v=1" -vsync 2  -r 24 -vcodec prores -timecode 00:59:53:00 output.mov&#xA;

    &#xA;

    Just a note, I don't want any any audio track.

    &#xA;

    Thanks in advance !

    &#xA;