Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (97)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

Sur d’autres sites (8818)

  • ffmpeg - rotate webcdm frame and timestamp (Windows)

    31 octobre 2022, par StakkaBo

    I'm trying to capture frames from the webcam, rotate 180 degree and print timestamp at once.

    


    Capture and timestamp works fine :

    


    ffmpeg -hide_banner -f dshow -s 1280x720 -i video="@device_pnp_\\?\usb#vid_0380&pid_2006&mi_00#7&1dfcf260&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global" -r 0.2 -vf drawtext="fontfile=C\\:/Windows/fonts/arial.ttf:fontsize=24: box=1: boxcolor=black@0.75: boxborderw=5: fontcolor=white: text='%{localtime}'" -f image2  -strftime 1 "%Y-%m-%d_%H-%M-%S.jpg"


    


    Capture and rotate works fine too :

    


    ffmpeg -f dshow -s 800x600 -i video="@device_pnp_\\?\usb#vid_046d&pid_081b&mi_00#7&36c2c2f1&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global" -r 0.2 -vf hflip,vflip -f image2  -strftime 1 "%Y-%m-%d_%H-%M-%S.jpg"


    


    But both at once - not. How do I join this code ? Thanks !
Windows 7 64

    


    I'm trying :

    


    ffmpeg -hide_banner -f dshow -s 1280x720 -i video="@device_pnp_\\?\usb#vid_0380&pid_2006&mi_00#7&1dfcf260&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global" -r 0.2 -vf hflip,vflip , drawtext="fontfile=C\\:/Windows/fonts/arial.ttf:fontsize=24: box=1: boxcolor=black@0.75: boxborderw=5: fontcolor=white: text='%{localtime}'" -f image2  -strftime 1 "%Y-%m-%d_%H-%M-%S.jpg"



    


    Result :

    


    [NULL @ 00000000003f0500] Unable to find a suitable output format for ','
,: Invalid argument


    


  • fluent-ffmpeg aspect ratio with crop

    9 juillet 2023, par Dürrani

    I am having trouble changing the aspect ratio between 16:9, 1:1 and 9:16 using fluent-ffmpeg
When I try to change from 16:9 to 9:16, I kinda receive a squeezed video but actually I want the extra part should be removed.

    



    I tried this with many combinations :

    



    FFmpeg()
    .input(video)
    .size("608x?")
    .aspect("9:16")
    .output(tempFile)
    .run();

    



    My input 16:9 video 1920x1080
My input 16:9 video 1920x1080

    



    .

    



    My Expected result 9:16 video 608x1080

    



    My Expected result 9:16 video 608x1080

    


  • ffmeg : audio drifts in merged TS file for separate audio and video TS files

    13 septembre 2021, par Ronnie Marksch

    basic situation

    


    I have two lists of TS files (each list is specified in an m3u8 file).
The TS files in the first list have only video.
The TS files in the second list have only audio.

    


    I combine the TS files from the first list to get the video only file result_video.ts of duration A (see code for this used below).
I combine the TS files from the second list to get the audio only file result_audio.ts of duration B (see code for this used below).
The problem is that A * 76.28% = B whereas I expected both files to have the same length.
I then combine result_video.ts and result_audio.ts and get a result.ts file where the audio drifts from the video heavily and where the audio has gaps at the points where the chunks have been merged.

    


    Question : how to ensure that the audio is not too slow ? or : how to combine the TS files properly.

    


    code for obtaining the two result files

    


    ffmpeg -safe 0 -f concat -i filelist_video.txt -c copy result_video.ts
ffmpeg -safe 0 -f concat -i filelist_audio.txt -c copy result_audio.ts


    


    code for obtaining the final result

    


    ffmpeg.exe -i .\video_merge_0.ts -i .\audio_merge_0.ts -c copy result.ts


    


    test using only one TS file

    


    I copied the first of the audio input TS files to another TS file.
Doing that produced the output below with a muxing overhead of 22.44%, which is suspiciously close to 1-76.28%.

    


    ffmpeg.exe -i audio_chunk1.ts -c copy audio_chunk1_tmp.ts


    


    I get the info :

    


    Output #0, mpegts, to 'audio_chunk1.ts':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 125 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=     118kB time=00:00:05.99 bitrate= 161.1kbits/s speed=3.48e+03x
video:0kB audio:96kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 22.444508%


    


    using hls

    


    The following now produces files audio_chunk1_tmp.ts, audio_chunk1_tmp0.ts, ... audio_chunk1_tmp2.ts. So for some reason, the single file already gets split. However, ffmpeg shows that the duration of the result is 5.99s for the 5.87s input (which may be ok).

    


    ffmpeg.exe -i audio_chunk1.ts -f hls audio_chunk1_tmp.ts