Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (85)

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

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (11628)

  • Restoring corrupted video after recovery

    22 août 2019, par Harold.Demure

    I have recently recovered the content of an old drive of mine using photorec.

    To my surprise, photorec recovered a lot of files with non-video extensions (.sqlite, .apple, .pdf, .torrent...) that contain fragments of video. I can see these fragments only using mplayer/mencoder (quicktime and vlc cannot). Some of the files are even hundreds of megabyte large, but mplayer only shows me a few seconds of the video.

    Is there any script/data carving tool that I can use to see if I can recover more video fragments from these files ? I am not afraid of trying solutions that require some coding or manual inspection (e.g., search for headers via hex editors).

    Thank you for your help, any suggestion is highly appreciated.
    Harol.

  • FFmpeg stream extraction modifies subtitles [closed]

    21 mai 2024, par user18812922

    I have a video with the following ffprobe output :

    


    Input #0, matroska,webm, from 'video.mkv':
  Metadata:
    title           : Video - 01
    creation_time   : 2021-07-14T02:49:59.000000Z
    ENCODER         : Lavf58.29.100
  Duration: 00:22:57.28, start: 0.000000, bitrate: 392 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 86.169000
      Metadata:
        title           : Opening
    Chapter #0:1: start 86.169000, end 641.266000
      Metadata:
        title           : Part A
    Chapter #0:2: start 641.266000, end 651.359000
      Metadata:
        title           : Eyecatch
    Chapter #0:3: start 651.359000, end 1286.160000
      Metadata:
        title           : Part B
    Chapter #0:4: start 1286.160000, end 1356.355000
      Metadata:
        title           : Ending
    Chapter #0:5: start 1356.355000, end 1376.876000
      Metadata:
        title           : Preview
  Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 854x480 [SAR 1280:1281 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
      Metadata:
        DURATION        : 00:22:56.959000000
  Stream #0:1(eng): Audio: vorbis, 48000 Hz, stereo, fltp (default)
      Metadata:
        title           : English [FLAC 2.0]
        DURATION        : 00:22:57.278000000
  Stream #0:2(jpn): Audio: vorbis, 48000 Hz, stereo, fltp
      Metadata:
        title           : Japanese [FLAC 2.0]
        DURATION        : 00:22:57.276000000
  Stream #0:3(eng): Subtitle: ass (ssa)
      Metadata:
        title           : Signs and Songs [FMA1394/Redc4t]
        DURATION        : 00:22:51.090000000
  Stream #0:4(eng): Subtitle: ass (ssa)
      Metadata:
        title           : English [FMA1394/Redc4t]
        DURATION        : 00:22:51.090000000
  Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle (pgssub), 1920x1080
      Metadata:
        title           : Full English Retail
        DURATION        : 00:22:51.120000000
  Stream #0:6: Attachment: ttf
      Metadata:
        filename        : 8bitoperator.ttf
        mimetype        : application/x-truetype-font
  Stream #0:7: Attachment: ttf
      Metadata:
        filename        : Cabin-Bold.ttf
        mimetype        : application/x-truetype-font
  Stream #0:8: Attachment: ttf
      Metadata:
        filename        : calibrib.ttf
        mimetype        : application/x-truetype-font
  Stream #0:9: Attachment: ttf
      Metadata:
        filename        : daniel_0.ttf
        mimetype        : application/x-truetype-font
  Stream #0:10: Attachment: ttf
      Metadata:
        filename        : DEATH_FONT.TTF
        mimetype        : application/x-truetype-font
  Stream #0:11: Attachment: ttf
      Metadata:
        filename        : Dominican.ttf
        mimetype        : application/x-truetype-font
  Stream #0:12: Attachment: ttf
      Metadata:
        filename        : gishabd.ttf
        mimetype        : application/x-truetype-font
  Stream #0:13: Attachment: ttf
      Metadata:
        filename        : PATRICK_0.TTF
        mimetype        : application/x-truetype-font
  Stream #0:14: Attachment: ttf
      Metadata:
        filename        : Qlassik-Medium.ttf
        mimetype        : application/x-truetype-font
Unsupported codec with id 98304 for input stream 6
Unsupported codec with id 98304 for input stream 7
Unsupported codec with id 98304 for input stream 8
Unsupported codec with id 98304 for input stream 9
Unsupported codec with id 98304 for input stream 10
Unsupported codec with id 98304 for input stream 11
Unsupported codec with id 98304 for input stream 12
Unsupported codec with id 98304 for input stream 13
Unsupported codec with id 98304 for input stream 14


    


    I am trying to extract the subtitles, edit them and reattach them to the video.
(I need my program to do that so I don't want to use other software)

    


    Command 1

    


    ffmpeg -i video.mkv -map 0:3 -c:s ssa subs.ass
ffmpeg -i video.mkv -i subs.ass -map 0 -map -0:s -map 1 -c copy out.mkv


    


    Command 2

    


    ffmpeg -i video.mkv -map 0:3 subs.ass
ffmpeg -i video.mkv -i subs.ass -map 0 -map -0:s -map 1 -c copy out.mkv


    


    Command 3

    


    ffmpeg -i video.mkv -map 0:3 subs.srt
ffmpeg -i video.mkv -i subs.srt -map 0 -map -0:s -map 1 -c copy out.mkv


    


    Command 4

    


    ffmpeg -i video.mkv -map 0:3 subs.srt
ffmpeg -i subs.srt subs.ass
ffmpeg -i video.mkv -i subs.ass -map 0 -map -0:s -map 1 -c copy out.mkv


    


    Command 5

    


    ffmpeg -i video.mkv -map 0:3 subs.ass
ffmpeg -i subs.ass subs.srt
ffmpeg -i video.mkv -i subs.srt -map 0 -map -0:s -map 1 -c copy out.mkv


    


    The problem

    


    After extraction the subtitles seem to be really quick, meaning they are displayed and disappear really quickly.

    


    For example the first subtitle is as follows in srt :

    


    1&#xA;00:00:03,100 --> 00:00:03,560&#xA;<font face="Dominican" size="77" color="#f7f7f7">Within the spreading darkness</font>&#xA;

    &#xA;

    Now, in srt it also has wrong size but I assume that's because of the conversion from ass to srt.

    &#xA;

    If I reattach the subtitle file in the video and open it, it is displayed and disappears way too fast and it doesn't match the original subtitles in the video.

    &#xA;

    (ie, the original video subtitles are showing for at least a second)

    &#xA;

    Expected behaviour

    &#xA;

    The subtitles should be displayed for the same duration as the original subtitles.

    &#xA;

    NOTE

    &#xA;

    It's my first question for ffmpeg related issues so feel free to ask me for anything else you may need.

    &#xA;

    UPDATE 1

    &#xA;

    I realized that the subtitles were ok for the timings as they had the same line multiple times, so the problem for not playing is something else.

    &#xA;

    Example of the file

    &#xA;

    1&#xA;00:00:03,100 --> 00:00:03,560&#xA;<font face="Dominican" size="77" color="#f7f7f7">Within the spreading darkness</font>&#xA;&#xA;2&#xA;00:00:03,560 --> 00:00:04,650&#xA;<font face="Dominican" size="77" color="#f7f7f7">Within the spreading darkness</font>&#xA;&#xA;3&#xA;00:00:04,650 --> 00:00:05,100&#xA;<font face="Dominican" size="77" color="#f7f7f7">Within the spreading darkness</font>&#xA;

    &#xA;

    So the problem is that VLC doesn't show more than the first subtitle.

    &#xA;

    The strange thing is when I use the below command

    &#xA;

    ffmpeg -i video.mkv -i subs.srt -map 0 -map -0:s -map 1 -c copy -c:s subrip out.mkv&#xA;

    &#xA;

    Then more lines of the subtitle (but not all) play.

    &#xA;

    It stops at the 17th line.

    &#xA;

    I believe that's an encoder's problem ? but I really don't know.

    &#xA;

    Also what I noticed is that VLC stops the subtitles but Windows Media Player (Windows 11 version) display the subtitles correctly even after the 17th line.

    &#xA;

    BUT, if I add subtitles from another video they are played correctly in both VLC and Windows Media Player.

    &#xA;

    Update 2&#xA;As @Gyan said in his answer I should use the following command

    &#xA;

    ffmpeg -i video.mkv -map 0:3 -c:s copy subs.ass&#xA;

    &#xA;

    But then if I attach the subs again with

    &#xA;

    ffmpeg -i video.mkv -i subs.ass -map 0 -map -0:s -map 1 -c copy -c:s ass out.mkv&#xA;

    &#xA;

    The subtitles show up to 17th line in both VLC and Windows Media Player.

    &#xA;

    or

    &#xA;

    ffmpeg -i video.mkv -i .\subs.ass -map 0 -map -0:s -map 1 -c copy out.mkv&#xA;

    &#xA;

    The subtitles do not show up at all. (Not even in Windows Media Player)

    &#xA;

  • FFmpeg concat creating corrupted video part (Media Info provided)

    6 mai 2022, par krv

    I am using concat to join a list of video files with the following command

    &#xA;

    ffmpeg -f concat -safe 0 -i filesList.txt -c copy output.mp4 &#xA;

    &#xA;

    The issue here is that there are a few files that were recorded in slow motion on my phone. The slow-motion files have the same frame rate as the other files.

    &#xA;

    But when concatenated the part where the slow-motion files are concatenated appears to be frozen / glitch (it does not play a single frame).

    &#xA;

    I am able to seek forward and backward the part that does not play. So the portion of the video that contained normal files plays and as soon as the slow-motion video comes, nothing plays, and when a normal file comes it starts playing again.

    &#xA;

    I am attaching the media Info of both files

    &#xA;

    Info of the slow motion file :

    &#xA;

    General&#xA;Complete name :     I:\concate Test\VID20210727114100.mp4&#xA;Format :    MPEG-4&#xA;Format profile :    Base Media / Version 2&#xA;Codec ID :  mp42 (isom/mp42)&#xA;File size :     27.6 MiB&#xA;Duration :  1 min 0 s&#xA;Overall bit rate :  3 825 kb/s&#xA;Encoded date :  UTC 2021-07-27 06:11:08&#xA;Tagged date :   UTC 2021-07-27 06:11:08&#xA;xyz :   &#x2B;21.6146&#x2B;071.2342/&#xA;com.android.version :   11&#xA;&#xA;Video&#xA;ID :    1&#xA;Format :    HEVC&#xA;Format/Info :   High Efficiency Video Coding&#xA;Format profile :    Main@L3.1@Main&#xA;Codec ID :  hvc1&#xA;Codec ID/Info :     High Efficiency Video Coding&#xA;Duration :  1 min 0 s&#xA;Source duration :   1 min 0 s&#xA;Bit rate :  3 771 kb/s&#xA;Width :     1 280 pixels&#xA;Height :    720 pixels&#xA;Display aspect ratio :  16:9&#xA;Frame rate mode :   Variable&#xA;Frame rate :    30.000 FPS&#xA;Minimum frame rate :    29.910 FPS&#xA;Maximum frame rate :    30.090 FPS&#xA;Real frame rate :   240.000 FPS&#xA;Color space :   YUV&#xA;Chroma subsampling :    4:2:0&#xA;Bit depth :     8 bits&#xA;Bits/(Pixel*Frame) :    0.136&#xA;Stream size :   27.2 MiB (99%)&#xA;Source stream size :    27.2 MiB (99%)&#xA;Title :     VideoHandle&#xA;Language :  English&#xA;Encoded date :  UTC 2021-07-27 06:11:08&#xA;Tagged date :   UTC 2021-07-27 06:11:08&#xA;Color range :   Limited&#xA;Color primaries :   BT.709&#xA;Transfer characteristics :  BT.709&#xA;Matrix coefficients :   BT.709&#xA;mdhd_Duration :     60524&#xA;Codec configuration box :   hvcC&#xA;

    &#xA;

    Info of the regular video file

    &#xA;

    &#xA;General&#xA;Complete name :     I:\concate Test\VID20210727113901.mp4&#xA;Format :    MPEG-4&#xA;Format profile :    Base Media / Version 2&#xA;Codec ID :  mp42 (isom/mp42)&#xA;File size :     39.0 MiB&#xA;Duration :  37 s 930 ms&#xA;Overall bit rate :  8 615 kb/s&#xA;Encoded date :  UTC 2021-07-27 06:09:40&#xA;Tagged date :   UTC 2021-07-27 06:09:40&#xA;xyz :   &#x2B;21.6146&#x2B;071.2342/&#xA;com.android.version :   11&#xA;&#xA;Video&#xA;ID :    1&#xA;Format :    HEVC&#xA;Format/Info :   High Efficiency Video Coding&#xA;Format profile :    Main@L4@Main&#xA;Codec ID :  hvc1&#xA;Codec ID/Info :     High Efficiency Video Coding&#xA;Duration :  37 s 930 ms&#xA;Source duration :   37 s 900 ms&#xA;Bit rate :  8 408 kb/s&#xA;Width :     1 920 pixels&#xA;Height :    1 080 pixels&#xA;Display aspect ratio :  16:9&#xA;Frame rate mode :   Variable&#xA;Frame rate :    29.604 FPS&#xA;Minimum frame rate :    29.508 FPS&#xA;Maximum frame rate :    29.605 FPS&#xA;Real frame rate :   30.000 FPS&#xA;Color space :   YUV&#xA;Chroma subsampling :    4:2:0&#xA;Bit depth :     8 bits&#xA;Bits/(Pixel*Frame) :    0.137&#xA;Stream size :   38.0 MiB (98%)&#xA;Source stream size :    38.0 MiB (98%)&#xA;Title :     VideoHandle&#xA;Language :  English&#xA;Encoded date :  UTC 2021-07-27 06:09:40&#xA;Tagged date :   UTC 2021-07-27 06:09:40&#xA;Color range :   Limited&#xA;Color primaries :   BT.709&#xA;Transfer characteristics :  BT.709&#xA;Matrix coefficients :   BT.709&#xA;mdhd_Duration :     37930&#xA;Codec configuration box :   hvcC&#xA;&#xA;Audio&#xA;ID :    2&#xA;Format :    AAC LC&#xA;Format/Info :   Advanced Audio Codec Low Complexity&#xA;Codec ID :  mp4a-40-2&#xA;Duration :  37 s 909 ms&#xA;Bit rate mode :     Constant&#xA;Bit rate :  128 kb/s&#xA;Channel(s) :    2 channels&#xA;Channel layout :    L R&#xA;Sampling rate :     48.0 kHz&#xA;Frame rate :    46.875 FPS (1024 SPF)&#xA;Compression mode :  Lossy&#xA;Stream size :   592 KiB (1%)&#xA;Title :     SoundHandle&#xA;Language :  English&#xA;Encoded date :  UTC 2021-07-27 06:09:40&#xA;Tagged date :   UTC 2021-07-27 06:09:40&#xA;&#xA;&#xA;

    &#xA;