Recherche avancée

Médias (91)

Autres articles (22)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (3263)

  • Video conversion on different server than app server

    13 mars 2016, par yakuzafu

    I’ve got my application running on server A.

    When a user uploads a video via that application, the video should be transferred via FTP to another server B. I don’t know how to make something like this work :

    • User uploads a video (like .avi, .webm, .mkv)
    • Application puts it on the FTP server
    • FTP server converts that video to .mp4

    I’ve tried using FFmpeg on PHP, but it executes only on the server where the application is located, but I need it to run on the FTP server.

    How can I make it work like that ?

  • Efficiently concatenating & crossfading .ts files with FFMPEG

    11 septembre 2019, par dooman

    I would like to efficiently crossfade multiple transport files together into an m4a file. This means segmenting files, crossfading the 3 seconds at the beginning/end of consecutive transport files, then concatenating the subsets & newly crossfaded overlaps together, to minimize the decoding/re-encoding.

    Gyan provides a solution that correctly crossfades a list of audio files. I was able to modify this program to produce the correct output m4a file for my purposes. However, this requires re-encoding the entirety of each audio file. To crossfade 10 audio files (between 3-5 minutes in length each), this solution runs for 8-12 seconds, which does not meet the criteria for serving this audio for my real time/live stream use case.

    To avoid this decoding/recoding bottleneck, I’ve written a program to segment each transport file, crossfade the overlaps, then concatenate all of the relevant components. This program runs within 1-2 seconds for the 10 audio file case above, which does meet my real time use case.

    Below is an abbreviated version that concatenates two 10 second transport files (a.ts, b.ts). These files are AAC encoded, in mono, and just contain sine saves at different frequencies.

    ffmpeg -i a.ts -map 0 -f segment -segment_times 7 -c:a copy a_%d.ts
    ffmpeg -i b.ts -map 0 -f segment -segment_times 3 -c:a copy b_%d.ts

    ffmpeg -i a_1.ts -i b_0.ts -filter_complex acrossfade=d=3:c1=qua:c2=qua xfade.m4a
    ffmpeg -i xfade.m4a -c:a copy xfade.ts

    ffmpeg -i "concat:a_0.ts|xfade.ts|b_1.ts" -c:a copy out.m4a

    Note that crossfading the two overlapping 3 second files (a_1.ts and b_0.ts) requires writing to .m4a, then converting back to .ts. Attempting to crossfade -> .ts, or concatenate .ts and .m4a files resulted in unplayable audio or missing audio within the out.m4a file.

    This program produces an audio file that is almost correct (17 seconds of audio, 3 second crossfade between the two files). Below is an image of the wave form. The top is the waveform produced by regular crossfade, with encoding of the entire files (Gyan’s solution) for comparison. The bottom is produced by my program.

    Waveforms comparison
    Note that are ’artifacts’ introduced at the boundaries of the crossfade. These little gaps cause the audio file to "dip" in volume at the beginning of the crossfade, and there is a click at the end of the crossfade. These artifacts are NOT present for the regular, inefficient crossfade.

    My questions are :

    • What is causing these artifacts to be introduced ?
    • Examining the xfade.m4a waveform reveals that there is a slight ramp up added to the beginning, but the ffmpeg documentation doesn’t reference this. Is this a consequence of muxing/demuxing when converting between .ts / .m4a ?
    • This extra ramp up doesn’t account for the clip at the end. Does that concatenation is also introducing artifacts to these .ts files ?

    Thanks to anyone who reads this.

    EDIT : I should add that these artifacts are present no matter what segment times / audio files are used as input. The artifacts also appear to be deterministic ; they also appear at the exact same times for the exact same inputs.

  • I cant give names to subtitle tracks with ffmpeg

    11 mai 2023, par Keles

    Im using this command to add 2 audio tracks (mixed with original audio) and 2 subtitles tracks to the original video :

    


    


    ffmpeg -i input_video.mp4 -i audio_track_1.wav -i audio_track_2.wav -i
srt_file_es.srt -i srt_file_en.srt -filter_complex
"[0:a][1:a]amerge=inputs=2[a1] ;[0:a][2:a]amerge=inputs=2[a2]" -map 0:v
-map "[a1]" -metadata:s:a:0 language=spa -metadata:s:a:0 title="Spanish" -map "[a2]" -metadata:s:a:1 language=eng
-metadata:s:a:1 title="English" -c:v copy -c:a aac -ac 2 -b:a 96k -c:s mov_text -metadata:s:s:0 language=spa -metadata:s:s:0 title="Spanish"
-metadata:s:s:1 language=eng -metadata:s:s:1 title="English" output_video.mp4

    


    


    Everything works fine but the subtitles names are "Track 1" and "Track 2". The following part is not working :

    


    


    metadata:s:s:0 title=