Recherche avancée

Médias (91)

Autres articles (36)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    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 (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (6221)

  • FFMpeg - Print Date and Time during recording like surveillance

    7 octobre 2020, par Klode

    I need to record video from RaspberryPi, using this Bash script :

    


    #!/bin/sh
/usr/bin/ffmpeg -f video4linux2 -input_format h264 -video_size 320x240 -framerate 15 -i /dev/video0 -vcodec copy -an "/var/ayron/videotrap/videos/pctrace_$(date +"%Y_%m_%d_%H_%M_%S").h264"


    


    In this way, I can report the date and time of start recording. But I need to show on video the Date and Time during registration. Which kind of filter must I use ?

    


    Thanks for your supply.

    


  • Mark 11 release in the changelog

    3 septembre 2014, par Diego Biurrun
    Mark 11 release in the changelog
    

    Also fix some typos in the entries for the 11 release.

    • [DH] Changelog
  • FFMPEG doesn't convert with the right Create Date on a MTS to MP4 process

    2 novembre 2020, par bob338423

    I'm on the progress of convert MTS to MP4, with intact video/audio & Creation date.

    


    This is my process :

    


    I have test.MTS and I'm I'll convert it to test.MP4.

    


    Fist.. my MTS :

    


    OSX:oo bob$ f="test.MTS

OSX:oo bob$     DATE=$(exiftool -d "%Y-%m-%d %H:%M:%S"  "$f" | grep "^Date.*Original" | awk '{print $4, $5;}')

OSX:oo bob$     DATE2=$(exiftool -d "%Y-%m-%d %H:%M:%S%z"  "$f" | grep "^Date.*Original" | awk '{print $4, $5;}')

OSX:oo bob$ echo $DATE

2018-10-26 20:53:27

OSX:oo bob$ echo $DATE2

2018-10-26 20:53:27+0000


    


    I took $DATE and $DATE2 in order to have UTC and try different options.

    


    Now, let's see what Exiftool and mediainfo sees about my MTS :

    


    OSX:oo bob$ exiftool $f | grep "Date/Time"

File Modification Date/Time     : 2018:10:26 21:56:55+02:00

File Access Date/Time           : 2020:11:02 16:12:09+01:00

File Inode Change Date/Time     : 2020:11:01 02:48:49+01:00

Date/Time Original              : 2018:10:26 20:53:27+00:00





OSX:oo bob$ mediainfo $f | grep "date"

Recorded date                            : 2018-10-26 20:53:27+00:00


    


    Up to here.. all good Date is 2018-10-26 20:53:27+00:00 (so UTC or GMT+0).

    


    Now my command to convert :

    


    ffmpeg  -i  "$f" -y -acodec aac -ab 128k  -vcodec copy  -f mp4 -metadata creation_time="$DATE" "./${f%.MTS}.MP4"

ffmpeg  -i  "$f" -y -acodec aac -ab 128k  -vcodec copy  -f mp4 -metadata creation_time="$DATE2" "./${f%.MTS}_2.MP4"


    


    I tried 2 options, $DATE (whithout Timezone) and $DATE2 (With timezone). Conversion is ok, let's see the results :

    


    OSX:oo bob$ exiftool   "./${f%.MTS}.MP4" | grep "Date"

File Modification Date/Time     : 2020:11:02 14:53:24+01:00
File Access Date/Time           : 2020:11:02 16:13:48+01:00
File Inode Change Date/Time     : 2020:11:02 14:53:24+01:00
Create Date                     : 2018:10:26 18:53:27
Modify Date                     : 2018:10:26 18:53:27
Track Create Date               : 2018:10:26 18:53:27
Track Modify Date               : 2018:10:26 18:53:27
Media Create Date               : 2018:10:26 18:53:27
Media Modify Date               : 2018:10:26 18:53:27


OSX:oo bob$ exiftool   "./${f%.MTS}_2.MP4" | grep "Date"

File Modification Date/Time     : 2020:11:02 14:53:13+01:00
File Access Date/Time           : 2020:11:02 16:13:48+01:00
File Inode Change Date/Time     : 2020:11:02 14:53:13+01:00
Create Date                     : 2018:10:26 20:53:27
Modify Date                     : 2018:10:26 20:53:27
Track Create Date               : 2018:10:26 20:53:27
Track Modify Date               : 2018:10:26 20:53:27
Media Create Date               : 2018:10:26 20:53:27
Media Modify Date               : 2018:10:26 20:53:27


OSX:oo bob$ mediainfo  "./${f%.MTS}.MP4" | grep "date"

Recorded date                            : 2018-10-26 20:53:27+00:00
Encoded date                             : UTC 2018-10-26 18:53:27
Tagged date                              : UTC 2018-10-26 18:53:27
Encoded date                             : UTC 2018-10-26 18:53:27
Tagged date                              : UTC 2018-10-26 18:53:27
Encoded date                             : UTC 2018-10-26 18:53:27
Tagged date                              : UTC 2018-10-26 18:53:27



OSX:oo bob$ mediainfo  "./${f%.MTS}_2.MP4" | grep "date"

Recorded date                            : 2018-10-26 20:53:27+00:00
Encoded date                             : UTC 2018-10-26 20:53:27
Tagged date                              : UTC 2018-10-26 20:53:27
Encoded date                             : UTC 2018-10-26 20:53:27
Tagged date                              : UTC 2018-10-26 20:53:27
Encoded date                             : UTC 2018-10-26 20:53:27
Tagged date                              : UTC 2018-10-26 20:53:27


    


    Seems up to here that "./${f%.MTS}_2.MP4" (test_2.MP4) is correct, but, if we check the values in epoch :

    


    OSX:oo bob$ exiftool -d "%s" $f | grep "Date/Time"

File Modification Date/Time     : 1540583815
File Access Date/Time           : 1604329945
File Inode Change Date/Time     : 1604195329
Date/Time Original              : 1540587207

OSX:oo bob$ exiftool -d "%s"  "./${f%.MTS}.MP4" | grep "Date"

File Modification Date/Time     : 1604325204
File Access Date/Time           : 1604330053
File Inode Change Date/Time     : 1604325204
Create Date                     : 1540572807
Modify Date                     : 1540572807
Track Create Date               : 1540572807
Track Modify Date               : 1540572807
Media Create Date               : 1540572807
Media Modify Date               : 1540572807



OSX:oo bob$ exiftool -d "%s"  "./${f%.MTS}_2.MP4" | grep "Date"

File Modification Date/Time     : 1604325193
File Access Date/Time           : 1604330058
File Inode Change Date/Time     : 1604325193
Create Date                     : 1540580007
Modify Date                     : 1540580007
Track Create Date               : 1540580007        
Track Modify Date               : 1540580007
Media Create Date               : 1540580007
Media Modify Date               : 1540580007


    


    BTW, I'm now on GMT+1 (this is my local Timezone)

    


    As you can see :

    


      

    1. Conversion with Timezone (test_2.MP4) seems to be correct, except when I use epoch conversion, shows totally diferent time :

      


      Original MTS > Date/Time Original : 1540587207
MP4 without Timezone > Create Date : 1540572807
MP4 with Timezone > Create Date : 1540580007

      


      MTS >> test.MP4 >> 14400 seg (4h)

      


      MTS >> test_2.MP4 >> 7200 seg (2h)

      


    2. 


    3. Mediainfo gaves same output as exiftool..

      


    4. 


    


    ¿¿ ??? What is happening here ?. Why seems the same date but different with exiftool ?. Why 4h or 2h ?... I'm missing something here.

    


    Thanks