Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (77)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • 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

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (7741)

  • How to detect a common scene in a set of videos with ffmpeg

    6 août 2019, par Hans J

    I have a set of videos that are assumed to contain a common (or very similar) scene. I want to be able to detect (with FFmpeg) what that common scene is, how long the scene is, and where the scene is in each individual video.

    The scene would be assumed to be longer than 10 seconds (This is an arbitrary choice, it can be changed).

    The final output of the command would include the various time-codes of the instance of the scene in each video. Assuming a timebase 1/1, with a common scene that is 60 seconds long, an output would along the lines of :

    Video1.mp4 0 60
    Video2.mp4 120 180
    Video3.mp4 50 110
    Video4.mp4 null

    where video4 does not contain any common scene.

    For example, I could have three episodes of a TV show. They all contain the same commercial. Without knowing what that commercial is, I want to be able to find where that commercial shows up in each of the episodes.

    Note : For the purpose of a good solution, the common scenes do not have to exactly match. Because there could be artifacts or embedded subtitles in one episode and not the other.

  • Conversion of mp3 to flac results in file with longer duration

    18 juin 2019, par ThaDon

    I’ve noticed that when I convert an mp3 file to flac, the duration reported in the flac file will often differ from that of the source mp3 file. Mostly this difference is negligible and can be ignored (perhaps a fraction of a second).

    However, there are times when the timing is off by several seconds, and this causes my processing pipeline quite a bit of problem.

    For instance, take this podcast episode for example. If I run it through ffmpeg, I can see that it has a duration of :

    Duration: 00:52:38.39, start: 0.000000, bitrate: 128 kb/s

    If I then convert it to flac using the following command :

    ffmpeg -i startups-for-the-rest-of-us-448.mp3 -ac 1 -ar 16000 -f flac output.flac

    I can see that the duration of the flac file is :

    Duration: 00:52:45.65, start: 0.000000, bitrate: 133 kb/s

    Note there is an error message during conversion that states :

    [mp3 @ 0x7fffd16d6780] Header missing
    Error while decoding stream #0:0: Invalid data found when processing input

    Does the difference in duration have have to do with the bitrate difference ? When I listen to the file it sounds identical, I’m assuming the flac version must be ever so slightly slower as to gain the extra 7 seconds over the course of the podcast.

  • Concatenation and Transcoding of MPEG-TS files FFMPEG

    20 décembre 2020, par SquawkBirdies

    I have a DVR which records over-the-air TV and saves the recordings in the MPEG-TS format, splitting each episode across multiple files, each 500 MB in size.

    



    To simplify archiving, I have been trying to write a shell script to automate the process of concatenating the files together and transcoding them into a more common video format, like h.264.

    



    Here are the steps I have performed so far :

    



      

    • I wanted to make sure that the files I was getting were valid in the first place. To test this, each section was transcoded in Handbrake before being merged using ffmpeg's concat command. This worked, but was manual and added an annoying black frame between each section.
    • 


    • I wrote a shell script to find all the sections of an episode in a folder and put the file names into a text file that the concat demuxer could parse.
    • 


    • Tested this command :
    • 


    



    

    

    ffmpeg -hide_banner -f concat -i video_files_tmp.txt -c:v libx264 -pix_fmt yuv420p -c:a aac $2$OUTPUT_FILE_NAME

    


    


    




    During the transcode, this would throw many warnings and errors, such as "PES packet size mismatch". At some point, it would warn that more than 1,000 frame were skipped. When the output was played, it would skip frames and result in a file where the video froze partway through but the audio continued playing. I tried adding -vsync 0 to the output as well.

    



      

    • Then, tried splitting the concatenation and transcode into two steps :
    • 


    



    

    

    ffmpeg -hide_banner -f concat -i video_files_tmp.txt -c copy output_tmp.ts
ffmpeg -hide_banner -i output_tmp.ts -c:v libx265 -pix_fmt yuv420p -c:a aac $2$OUTPUT_FILE_NAME

    


    


    




    This did basically the same thing as before.

    



      

    • Tried using the libx265 encoder instead. Same result.
    • 


    • Then, I tried just playing the concatenated MPEG-TS file directly, which also would freeze at some point during the playback.
    • 


    



    I was wondering about what ffmpeg flags or options to set to get this working, or other options I could try ? Thanks !