Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (43)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

Sur d’autres sites (8480)

  • Out of memory on ffmpeg when converting to H265

    18 août 2017, par Lion

    I’ve a bunch of video files, mostly H264. To save storage, I wrote a batch script, that converts all of them to H265 using ffmpeg. Problem : Some files cause ffmpeg to use ALL my memory (24 GB). Then it crashes (cause it try to allocate even more RAM), which stops the converting process.

    I think that these files are corrupt in some kind. Because with other files, it works well with low memory consumption. Now I want to reject those broken ones, so that unattended converting is possible.

    How is it possible to detect such corruption ? Can ffmpeg do this, or is a third party tool required ?

    My ffmpeg call

    set crf=20
    set codec=265

    ffmpeg -hide_banner -i "!fullSourcePath!" -c:v libx%codec% -crf %crf% "%targetPath%\!targetFileName!"

    mkvalidator can’t help

    mkvalidator says that a corrupt file is valid :

    mkvalidator.exe "V:\Filme\_LegacyFormat\22 Jump Street.mkv"
    ........................................................................................................................
    WRN0D0: There are 5306 bytes of void data..

    mkvalidator 0.5.0: the file appears to be valid
           file created with libebml v1.3.0 + libmatroska v1.4.1 / mkvmerge v6.9.1 ('Blue Panther') 64bit built on Apr 18 2014 18:23:38

    eac3to331 can’t help, too

    I found the tool eac3to331, which has a check flag. But it gave me no errors, although the tested file seems corrupt (cause my PC to crash after several minutes running ffmpeg)

    eac3to.exe -check "V:\Filme\_LegacyFormat\22 Jump Street.mkv"
    MKV, 1 video track, 2 audio tracks, 1 subtitle track, 1:51:57, 24p /1.001
    1: h264/AVC, English, 1920x808 24p /1.001 (240:101)
    2: DTS, German, 5.1 channels, 1509kbps, 48kHz
    3: DTS, English, 5.1 channels, 1509kbps, 48kHz
    4: Subtitle (SRT), German
    v01 Extracting video track number 1...
    a02 Extracting audio track number 2...
    a03 Extracting audio track number 3...
    s04 Extracting subtitle track number 4...
    Video track 1 contains 161039 frames.
    eac3to processing took 1 minute, 26 seconds.
    Done.
  • Converting mp4 audio & video for HTML5

    10 janvier 2020, par Crayzzit

    So I have two files. frag_bunny.mp4 and raw.mp4 (you can download them in a tar on my Google drive). The frag_bunny.mp4 works perfectly when I use it with the MediaSource’s JavaScript API. But it’s not the case with raw.mp4, why is that ?

    Here’s the mediainfo of frag_bunny.mp4 :

    General
    Complete name                            : frag_bunny.mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media / Version 2
    Codec ID                                 : mp42 (mp42/avc1/iso5)
    File size                                : 5.27 MiB
    Duration                                 : 1 min 0 s
    Overall bit rate                         : 734 kb/s

    Video
    ID                                       : 2
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : Baseline@L3
    Format settings                          : 2 Ref Frames
    Format settings, CABAC                   : No
    Format settings, ReFrames                : 2 frames
    Format settings, GOP                     : M=1, N=64
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 1 min 0 s
    Bit rate                                 : 613 kb/s
    Width                                    : 640 pixels
    Height                                   : 360 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Variable
    Frame rate                               : 23.976 (23976/1000) FPS
    Minimum frame rate                       : 7.317 FPS
    Maximum frame rate                       : 24.000 FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.111
    Stream size                              : 4.39 MiB (83%)
    Language                                 : English
    Color range                              : Limited
    Color primaries                          : BT.601 NTSC
    Transfer characteristics                 : BT.709
    Matrix coefficients                      : BT.601

    Audio
    ID                                       : 1
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format profile                           : LC
    Codec ID                                 : mp4a-40-2
    Duration                                 : 1 min 0 s
    Bit rate mode                            : Constant
    Bit rate                                 : 64.0 kb/s
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 22.05 kHz
    Frame rate                               : 21.533 FPS (1024 SPF)
    Compression mode                         : Lossy
    Stream size                              : 478 KiB (9%)
    Language                                 : English

    Other #1
    ID                                       : 3
    Type                                     : Hint
    Format                                   : RTP
    Codec ID                                 : rtp
    Duration                                 : 1 min 0 s
    Language                                 : English

    Other #2
    ID                                       : 4
    Type                                     : Hint
    Format                                   : RTP
    Codec ID                                 : rtp
    Duration                                 : 1 min 0 s
    Language                                 : English

    And same for raw.mp4 :

    General
    Complete name                            : raw.mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media / Version 2
    Codec ID                                 : mp42 (isom/iso2/avc1/mp41)
    File size                                : 16.9 MiB
    Duration                                 : 3 min 32 s
    Overall bit rate                         : 668 kb/s
    Writing application                      : Lavf57.83.100

    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L3
    Format settings                          : CABAC / 4 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 4 frames
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 3 min 32 s
    Bit rate                                 : 532 kb/s
    Width                                    : 640 pixels
    Height                                   : 360 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 25.000 FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.092
    Stream size                              : 13.4 MiB (80%)
    Writing library                          : x264 core 152 r2854 e9a5903
    Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

    Audio
    ID                                       : 2
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format profile                           : LC
    Codec ID                                 : mp4a-40-2
    Duration                                 : 3 min 32 s
    Bit rate mode                            : Constant
    Bit rate                                 : 132 kb/s
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 44.1 kHz
    Frame rate                               : 43.066 FPS (1024 SPF)
    Compression mode                         : Lossy
    Stream size                              : 3.30 MiB (20%)
    Default                                  : Yes
    Alternate group                          : 1
  • How do I skip audio 1 and transcode audio 2 to aac with ffmpg ? [closed]

    25 septembre 2024, par CA Opa

    I have videos with 2 audio tracks. Track 1 is ac3 foreign and track 2 is flac English. I only want to transcode the English track 2. When I use ffmpg to map track 2 and transcode to aac the result is vorbis.

    


    Here is my code :

    


    "ffmpeg.exe" -i "U:\infile.mkv" -map 0:v:0 -c:v:0 copy -map 0:a:1 -c:a:1 aac -ac:a:1 2 -b:a:1 192000 -map 0:s:0 -c:s copy "U:\Outfile.mkv"


    


    This is what happens :

    


      Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709/unknown/unknown, progressive), 1278x720 [SAR 1:1 DAR 71:40], 23.98 fps, 23.98 tbr, 1k tbn (default)
  Stream #0:1(rus): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
      Metadata:
        title           : Многоголосый закадровый, студия "Селена Интернешнл"
  Stream #0:2(eng): Audio: flac, 48000 Hz, stereo, s16
  Stream #0:3(eng): Subtitle: subrip (srt)
[out#0/matroska @ 000001b979895440] Codec AVOption b:a:1 (set bitrate (in bits/s)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream.
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (flac (native) -> vorbis (libvorbis))
  Stream #0:3 -> #0:2 (copy)
Press [q] to stop, [?] for help
Output #0, matroska, to 'U:\Outfile.mkv':
  Metadata:
    encoder         : Lavf61.5.101
  Chapters:
    Chapter #0:0: start 0.000000, end 180.000000
      Metadata:
        title           : On a Cold Night...
  Stream #0:0(eng): Video: h264 (High) (H264 / 0x34363248), yuv420p(tv, bt709/unknown/unknown, progressive), 1278x720 [SAR 1:1 DAR 71:40], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn (default)
  Stream #0:1(eng): Audio: vorbis (oV[0][0] / 0x566F), 48000 Hz, stereo, fltp
      Metadata:
        encoder         : Lavc61.11.100 libvorbis
  Stream #0:2(eng): Subtitle: subrip
[out#0/matroska @ 000001b979895440] video:174005KiB audio:1635KiB subtitle:1KiB other streams:0KiB global headers:4KiB muxing overhead: 0.059971%


    


    If I transcode both audio tracks it succeeds.

    


    "ffmpeg.exe" -i "infile.mkv" -map 0:v:0 -c:v:0 copy -map 0:a:0 -c:a:0 aac -ac:a:0 2 -b:a:0 192000 -map 0:a:1 -c:a:1 aac -ac:a:1 2 -b:a:1 192000 -map 0:s:0 -c:s copy "Outfile.mkv"


    


    If I just transcoding track 1 it works. Why does it fail when I only map audio track 2 ?