Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (48)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP 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 (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (9520)

  • PHP/ffmpeg (Windows 7) : - Permission Denied. Tried everything, but still doesn't work

    14 janvier, par user365465

    I have a command-line PHP script that, when given the folder name as an argument when executing the script, will find all images in said folder and resize them using FFmpeg. Problem is, I always get a Permission Denied error in FFmpeg when it attempts to get at the files within the folder. This is while being on Windows 7.

    



    The big problem is that I've tried every solution that keeps popping up on the interwebs when I search for how to fix it. I've changed the settings in Avast !, did the attrib command (both as normal and "Run as Administrator") to unmark as read-only, took ownership of the folder both via command line and using that GUI takeown context menu thing everyone keeps throwing around (obviously before my efforts to mark everything as not-read-only), messed with permissions, everything. I keep searching and searching for a solution, but all of the sites keep throwing out the same things over and over again - things that I've already tried multiple times. I'm at the end of my rope here. All I want to do is resize images quickly and automatically so I can put them up on my website, yet this has been a massive headache...

    



    Please help me ! :(

    



    Update (Additional Points) :

    



      

    • The error is through FFmpeg, not PHP. FFmpeg spits out the permission denied error, the script just continues doing what it does normally (or, at least, it would if it weren't for my die statement that kicks in in the event of FFmpeg failing).

    • 


    • FFmpeg will execute just fine if it's run normally through the command line instead of through the script. However, this does not help the problem of me having to resize hundreds of photos by hand !

    • 


    • I'm just running this script in the normal terminal using the CLI engine. Weird use for PHP, I know, but since I already knew how to work with FFmpeg in PHP (but in Linux !) so I figured I might as well use the code as a normal, stand-alone program...

    • 


    • FFmpeg spits out the same error regardless of which PHP function is used to execute it. It happens for shell_exec, exec, passthru, and system.

    • 


    


  • Configure AVCodecContext structure to encode from raw PCM to u-law

    15 mai 2017, par N0un

    I’m trying to encode raw PCM audio data to u-law and it’s sound very weird (when it sounds...). I don’t understand pretty much how to initialize my AVCodecContext structure (and my input AVFrame).

    Here are my parameters :

    • Input : PCM (16bits signed), MONO, 44,1kHz (sample rate) (from my Android device MIC)

    • Required output : G.711 u-law, MONO, 8kHz (sample rate), 64 kbits/s (bitrate) (from my output target device’s documentation)

    I also know my input nb samples and this is all informations I have.

    So I initialize my AVCodecContext like that :

    AVCodec* pCodec = avcodec_find_encoder(AV_CODEC_ID_PCM_MULAW);
    // ...
    AVCodecContext* pCodecContext = avcodec_alloc_context3(pCodec);
    // ...
    // Do I need input or output params in following lines?
    pCodecContext->channels = 1:
    pCodecContext->channel_layout = AV_CH_LAYOUT_MONO;
    pCodecContext->sample_rate = 8000;
    pCodecContext->bit_rate = 64000
    pCodecContext->sample_fmt = AV_SAMPLE_FMT_S16;

    And my AVFrames like :

    AVFrame* pFrame = av_frame_alloc();
    pFrame->channels = 1;
    pFrame->channel_layout = AV_CH_LAYOUT_MONO;
    pFrame->sample_rate = 44100;
    pFrame->format = AV_SAMPLE_FMT_S16;
    pFrame->nb_samples = /*my audio data samples count*/;
    avcodec_fill_audio_frame(pFrame, 1, AV_SAMPLE_FMT_S16, /*my audio data*/, /*my audio data size*/, 0);

    Then, I encode with avcodec_send_frame() and avcodec_receive_packet().

    So my problem is that I’m not sure if I have to put input or output desired values in different parameters. Probably I have to encode on a way then "resample" using swresample lib. But for now, I’m pretty sure that I don’t encode properly. Any advise please ? Thanks !

  • How to trim multiple videos and position them to specific position using -filter_complex ?

    16 décembre 2023, par Pavlo Holotiuk

    How do I mix several videos and have them not overlap each other ?
I need to use -filter_complex as I cram many more commands there and seems weird how when I trim video its frames remain and overlap with the other video. I also use tpad to paint the video black where it supposed to be cut but it just makes black images to overlap with other videos instead.

    


    How do I trim and position videos with mix and make sure their frames do not overlap in result ?
Here's the version vithout tpad

    


    ./ffmpeg.exe -i input1.mp4 -i input2.mp4 -filter_complex "[0]trim=start=0:end=5[t0];[1]trim=start=5:end=10[t1];[t0][t1]mix=inputs=2" ./output.mp4

    


    It produces such overlapping frames
enter image description here

    


    When adding tpad overlapping changes to mix of frame and black image

    


    ./ffmpeg.exe -i input1.mp4 -i input2.mp4 -filter_complex "[0]trim=start=0:end=5[t0];[1]trim=start=5:end=10,setpts=PTS-5/TB,tpad=start_duration=5:start_mode=add:color=black@0x00[t1];[t0][t1]mix=inputs=2" ./output.mp4

    


    enter image description here

    


    The alpha in tpad doesn't seem to do anything either.