Recherche avancée

Médias (91)

Autres articles (89)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (4638)

  • How to cut video and add overlay at the same time ?

    15 mai 2017, par Chris

    I am currently cutting a video and after it is cut I am adding an layer of text like this :

    $cut_video_cmd = 'ffmpeg -i "'.$video_path.'" -vf scale=640:-1 -ss 30 -t 10 "'.$video_path.'"';

    $add_text_to_video_cmd = 'ffmpeg -i "'.$video_path.'" -vf drawtext="fontfile='.public_path('assets/fonts/Roboto-Regular.ttf').': \
       text=\'Stack Overflow\': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: \
       boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2" -codec:a copy "'.$video_path.'.overlay.mp4"';

    It works great, but I am wondering if there is a way to combine these two commands ? Or any way to simplify this process ? I am failing to figure this out.

    Thanks a lot for any help !

  • Sample accurate audio slicing in ffmpeg ?

    10 février 2017, par Chris Coniglio

    I need to slice an audio file in .wav format into 10 second chunks.
    These chunks need to be exactly 10 seconds, not 10.04799988232 seconds.

    the current code I am using is

    ffmpeg -i test.wav -ss 0 -to 10 -c:a libfdk_aac -b:a 80k aac/test.aac

    ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
     built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-opencl --disable-lzma --enable-nonfree --enable-vda
     libavutil      55. 34.100 / 55. 34.100
     libavcodec     57. 64.101 / 57. 64.101
     libavformat    57. 56.100 / 57. 56.100
     libavdevice    57.  1.100 / 57.  1.100
     libavfilter     6. 65.100 /  6. 65.100
     libavresample   3.  1.  0 /  3.  1.  0
     libswscale      4.  2.100 /  4.  2.100
     libswresample   2.  3.100 /  2.  3.100
     libpostproc    54.  1.100 / 54.  1.100
    Guessed Channel Layout for Input Stream #0.0 : stereo
    Input #0, wav, from '/Users/chris/Repos/mithc/client/assets/audio/wav/test.wav':
     Duration: 00:04:37.62, bitrate: 2307 kb/s
       Stream #0:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s
    Output #0, adts, to '/Users/chris/Repos/mithc/client/assets/audio/aac/test.aac':
     Metadata:
       encoder         : Lavf57.56.100
       Stream #0:0: Audio: aac (libfdk_aac), 48000 Hz, stereo, s16, 80 kb/s
       Metadata:
         encoder         : Lavc57.64.101 libfdk_aac
    Stream mapping:
     Stream #0:0 -> #0:0 (pcm_s24le (native) -> aac (libfdk_aac))
    Press [q] to stop, [?] for help
    size=     148kB time=00:00:15.01 bitrate=  80.6kbits/s speed=40.9x    
    video:0kB audio:148kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

    This code does not produce exact slices, any ideas how can this be accomplished ?

  • How to use ffmpeg to record audio from a video for first 10seconds in Python

    2 novembre 2022, par S Andrew

    I have rtsp stream coming from a camera which also has audio. My goal is to save the audio. To do this, I have below code :

    


    import ffmpeg&#xA;ffmpeg.input("rtsp://john:<pwd>@192.168.10.111:5545/Streaming/Channels/291/").output("test.wav", map="0:a:0").run&#xA;</pwd>

    &#xA;

    When I terminate the python script, it saves the test.wav file which has just the audio from the rtsp stream. Now I am trying to save the first 10sec from the stream into 1 file and then the next 10sec in another file and then it keeps on goining untill terminated.

    &#xA;

    To do this, I have thought of putting the ffmpeg stream in a seprate thread and to schedule that thread to run every 10 sec. This way a new stream will create which will save the audio for 10sec and will exit, and then this keeps on going. But to achieve this, I need to know how can we just save the intial 10 sec from the stream. Please help thanks.

    &#xA;