Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (97)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

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

  • Trim with transition/fade using FFMPEG given a list of timestamps

    19 janvier 2024, par realsarm

    I have a video and a list of timestamps that I want to filter.

    


    [
  {
    "timestamp": [10, 20],
    "state": true
  },
  {
    "timestamp": [30, 40],
    "state": false
  },
  {
    "timestamp": [50, 60],
    "state": true
  },
  {
    "timestamp": [70, 80],
    "state": true
  }
]


    


    I have a script like this to trim based on state.

    


        video_path = Path(video_in.name)
    video_file_name = video_path.stem

    timestamps_to_cut = [
        (timestamps_var[i]['timestamp'][0], timestamps_var[i]['timestamp'][1])
        for i in range(len(timestamps_var)) if timestamps_var[i]['state']]

    between_str = '+'.join(
        map(lambda t: f'between(t,{t[0]},{t[1]})', timestamps_to_cut))

    if timestamps_to_cut:
        video_file = ffmpeg.input(video_path)
        video = video_file.video.filter(
            "select", f'({between_str})').filter("setpts", "N/FRAME_RATE/TB")
        audio = video_file.audio.filter(
            "aselect", f'({between_str})').filter("asetpts", "N/SR/TB")

        output_video = f'./videos_out/{video_file_name}.mp4'
        ffmpeg.concat(video, audio, v=1, a=1).output(
            output_video).overwrite_output().global_args('-loglevel', 'quiet').run()


    


    How can I smooth out this trimming like adding a fade or smoothing transition each time state is false ?

    


  • Convert m4a to wav, but respect edit list ffmpeg [closed]

    4 février 2024, par user3413723

    I'm using ffmpeg to convert a m4a file to wav. The problem it the m4a file has an edts list that makes the audio start after a bit. I need this to be included so the wav is silent for that time. The audio has to be synced correctly. Any ideas ? I tried these :

    


    ffmpeg -i short.m4a  -acodec pcm_s16le -ac 1 -ar 16000 -use_editlist 1 out.wav

ffmpeg -i short.m4a  -acodec pcm_s16le -ac 1 -ar 16000 -advanced_editlist 0 out.wav


    


    no luck with either. Any ideas ? Here is the file

    


    https://drive.google.com/file/d/10x3QFjT_67ByfgXtiNFE1RlLAcwG68e5/view?usp=sharing

    


    Here is the debugger where you can see it adds time at the beginning. Just upload the m4a file and you can see the info about the audio track. You can also see it if you do ffprobe file.m4a like this :  Duration: 00:00:14.84, start: 0.167007, bitrate: 228 kb/s

    


    mp4 inspector :
https://gpac.github.io/mp4box.js/test/filereader.html

    


  • Show the filename being processed when using an input list and an error occurs ?

    17 février 2024, par GeoNomad

    I am concatenating a large number of short files using a list.

    


    One in a hundred seems to have an error of one sort or another which stops the processing.

    


      

    1. Is there a way to tell ffmpeg to just drop the bad frame or even bad file and continue ?

      


    2. 


    3. If not, is there a way to know what file has the error so I can just remove that file from the list ?

      


    4. 


    


    ffmpeg -safe 0  -f concat -i list.txt -c copy FEEDER.mp4

    


    I have tried -loglevel verbose, but that did not help.

    


    [concat @ 0000022d22b23480] h264_mp4toannexb filter failed to receive output packet
Error demuxing input file 0: Invalid data found when processing input
Terminating demuxer thread 0
list.txt: Invalid data found when processing input


    


    How do I find out which file of the several hundred files in list.txt is the culprit ?

    


    As it happens, these files have time stamps and I can find it by looking at the last output frame and then deleting the appropriate file. But it seems there should be a better way.

    


    FWIW I am working in Windows cmd.exe or Powershell Terminal