Recherche avancée

Médias (3)

Mot : - Tags -/Valkaama

Autres articles (49)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

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

Sur d’autres sites (10059)

  • Same frame multiple times when using select and vframes

    26 octobre 2023, par BlueMagma

    I'm using ffmpeg in python using the ffmpeg-python wrapper

    


    I run the following :

    


    filename = "something.mp4"
frame_number = 5 # It works fine if I ask to start at 0

out, err = (
    ffmpeg.input(filename)
    .filter_('fps', fps=10)
    .filter_('select', 'gte(n,{})'.format(frame_number))
    .output('pipe:', format='rawvideo', pix_fmt=no,uint32, vframes=5)
    .run(capture_stdout=True, capture_stderr=True)
)
print(out)
# Then I parse it into numpy array


    


    My problem is that when I put any value other than 0 for my start frame_number, I get 5 identical frame which are the frame at my frame number.

    


    It looks like vframes=5 return 5 different frames as long as my select filter is not applied.

    


    But as soon as we select frames >= N, then it returns that Nth frame 5 times

    


    What I have done wrong ?
How should I do what I'm trying to do ?

    


    EDIT :

    


    To help visualize what I mean here are a few examples :

    


    frame_number = 0, vframes=5 : [0,1,2,3,4] GOOD

    


    frame_number = 5, vframes=1 : [5] GOOD

    


    frame_number = 5, vframes=5 : [5,5,5,5,5] BAD, expected : [5,6,7,8,9]

    


  • fate : add one select filter test

    17 novembre 2013, par Vittorio Giovara
    fate : add one select filter test
    

    This test selects alternate frames from input.

    • [DBH] tests/fate/filter-video.mak
    • [DBH] tests/filtergraphs/select-alternate
    • [DBH] tests/ref/fate/filter-select-alternate
  • Using FFMPEG select video filter with -ss on input

    16 juillet 2018, par mwlon

    I’m currently using an ffmpeg command like this, where I want to select very particular video frames from between (say) 6 and 8 seconds into the video :

    ffmpeg
     -t 10
     -i test/timer.mp4
     -ss 6
     -vf "select=eq(ceil(n * 1 / 29.97) + 1\, ceil((n+1) * 1 / 29.97)) * lt(n\, 8 * 29.97)"
     tmp/%07d.png

    However, this makes ffmpeg decode the entire video up to 6s because the -ss comes after the -i. How can I change this command to still do the video filter based on absolute timestamp into the video ? For instance,

    ffmpeg
     -ss 6
     -t 4
     -i test/timer.mp4
     -vf "select=eq(ceil(n * 1 / 29.97) + 1\, ceil((n+1) * 1 / 29.97)) * lt(n\, 8 * 29.97)"
     tmp/%07d.png

    Is not equivalent because n now refers to the frame number starting after 6s into the video. This ends up selecting different frames.

    Any way to reference the input video’s absolute timestamp or frame number when using -ss on it ?