Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (99)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

Sur d’autres sites (13771)

  • xmv : Read the video packet data first, then swap its bytes

    18 août 2011, par Sven Hesse

    xmv : Read the video packet data first, then swap its bytes

  • Basic Video Palette Conversion

    20 août 2011, par Multimedia Mike — General, Python

    How do you take a 24-bit RGB image and convert it to an 8-bit paletted image for the purpose of compression using a codec that requires 8-bit input images ? Seems simple enough and that’s what I’m tackling in this post.

    Ask FFmpeg/Libav To Do It
    Ideally, FFmpeg / Libav should be able to handle this automatically. Indeed, FFmpeg used to be able to, at least at the time I wrote this post about ZMBV and was unhappy with FFmpeg’s default results. Somewhere along the line, FFmpeg and Libav lost the ability to do this. I suspect it got removed during some swscale refactoring.

    Still, there’s no telling if the old system would have computed palettes correctly for QuickTime files.

    Distance Approach
    When I started writing my SMC video encoder, I needed to convert RGB (from PNG files) to PAL8 colorspace. The path of least resistance was to match the pixels in the input image to the default 256-color palette that QuickTime assumes (and is hardcoded into FFmpeg/Libav).

    How to perform the matching ? Find the palette entry that is closest to a given input pixel, where "closest" is the minimum distance as computed by the usual distance formula (square root of the sum of the squares of the diffs of all the components).



    That means for each pixel in an image, check the pixel against 256 palette entries (early termination is possible if an acceptable threshold is met). As you might imagine, this can be a bit time-consuming. I wondered about a faster approach...

    Lookup Table
    I think this is the approach that FFmpeg used to use, but I went and derived it for myself after studying the default QuickTime palette table. There’s a pattern there— all of the RGB entries are comprised of combinations of 6 values — 0x00, 0x33, 0x66, 0x99, 0xCC, and 0xFF. If you mix and match these for red, green, and blue values, you come up with 6 * 6 * 6 = 216 different colors. This happens to be identical to the web-safe color palette.

    The first (0th) entry in the table is (FF, FF, FF), followed by (FF, FF, CC), (FF, FF, 99), and on down to (FF, FF, 00) when the green component gets knocked down and step and the next color is (FF, CC, FF). The first 36 palette entries in the table all have a red component of 0xFF. Thus, if an input RGB pixel has a red color closest to 0xFF, it must map to one of those first 36 entries.

    I created a table which maps indices 0..215 to values from 5..0. Each of the R, G, and B components of an input pixel are used to index into this table and derive 3 indices ri, gi, and bi. Finally, the index into the palette table is given by :

      index = ri * 36 + gi * 6 + bi
    

    For example, the pixel (0xFE, 0xFE, 0x01) would yield ri, gi, and bi values of 0, 0, and 5. Therefore :

      index = 0 * 36 + 0 * 6 + 5
    

    The palette index is 5, which maps to color (0xFF, 0xFF, 0x00).

    Validation
    So I was pretty pleased with myself for coming up with that. Now, ideally, swapping out one algorithm for another in my SMC encoder should yield identical results. That wasn’t the case, initially.

    One problem is that the regulation QuickTime palette actually has 40 more entries above and beyond the typical 216-entry color cube (rounding out the grand total of 256 colors). Thus, using the distance approach with the full default table provides for a little more accuracy.

    However, there still seems to be a problem. Let’s check our old standby, the Big Buck Bunny logo image :



    Distance approach using the full 256-color QuickTime default palette


    Distance approach using the 216-color palette


    Table lookup approach using the 216-color palette

    I can’t quite account for that big red splotch there. That’s the most notable difference between images 1 and 2 and the only visible difference between images 2 and 3.

    To prove to myself that the distance approach is equivalent to the table approach, I wrote a Python script to iterate through all possible RGB combinations and verify the equivalence. If you’re not up on your base 2 math, that’s 224 or 16,777,216 colors to run through. I used Python’s multiprocessing module to great effect and really maximized a Core i7 CPU with 8 hardware threads.

    So I’m confident that the palette conversion techniques are sound. The red spot is probably attributable to a bug in my WIP SMC encoder.

    Source Code
    Update August 23, 2011 : Here’s the Python code I used for proving equivalence between the 2 approaches. In terms of leveraging multiple CPUs, it’s possibly the best program I have written to date.

    PYTHON :
    1. # !/usr/bin/python
    2.  
    3. from multiprocessing import Pool
    4.  
    5. palette = []
    6. pal8_table = []
    7.  
    8. def process_r(r) :
    9.  counts = []
    10.  
    11.  for i in xrange(216) :
    12.   counts.append(0)
    13.  
    14.  print "r = %d" % (r)
    15.  for g in xrange(256) :
    16.   for b in xrange(256) :
    17.    min_dsqrd = 0xFFFFFFFF
    18.    best_index = 0
    19.    for i in xrange(len(palette)) :
    20.     dr = palette[i][0] - r
    21.     dg = palette[i][1] - g
    22.     db = palette[i][2] - b
    23.     dsqrd = dr * dr + dg * dg + db * db
    24.     if dsqrd <min_dsqrd :
    25.      min_dsqrd = dsqrd
    26.      best_index = i
    27.    counts[best_index] += 1
    28.  
    29.    # check if the distance approach deviates from the table-based approach
    30.    i = best_index
    31.    r = palette[i][0]
    32.    g = palette[i][1]
    33.    b = palette[i][2]
    34.    ri = pal8_table[r]
    35.    gi = pal8_table[g]
    36.    bi = pal8_table[b]
    37.    table_index = ri * 36 + gi * 6 + bi ;
    38.    if table_index != best_index :
    39.     print "(0x%02X 0x%02X 0x%02X) : distance index = %d, table index = %d" % (r, g, b, best_index, table_index)
    40.  
    41.  return counts
    42.  
    43. if __name__ == ’__main__’ :
    44.  counts = []
    45.  for i in xrange(216) :
    46.   counts.append(0)
    47.  
    48.  # initialize reference palette
    49.  color_steps = [ 0xFF, 0xCC, 0x99, 0x66, 0x33, 0x00 ]
    50.  for r in color_steps :
    51.   for g in color_steps :
    52.    for b in color_steps :
    53.     palette.append([r, g, b])
    54.  
    55.  # initialize palette conversion table
    56.  for i in range(0, 26) :
    57.   pal8_table.append(5)
    58.  for i in range(26, 77) :
    59.   pal8_table.append(4)
    60.  for i in range(77, 128) :
    61.   pal8_table.append(3)
    62.  for i in range(128, 179) :
    63.   pal8_table.append(2)
    64.  for i in range(179, 230) :
    65.   pal8_table.append(1)
    66.  for i in range(230, 256) :
    67.   pal8_table.append(0)
    68.  
    69.  # create a pool of worker threads and break up the overall job
    70.  pool = Pool()
    71.  it = pool.imap_unordered(process_r, range(256))
    72.  try :
    73.   while 1 :
    74.    partial_counts = it.next()
    75.    for i in xrange(216) :
    76.     counts[i] += partial_counts[i]
    77.  except StopIteration :
    78.   pass
    79.  
    80.  print "index, count, red, green, blue"
    81.  for i in xrange(len(counts)) :
    82.   print "%d, %d, %d, %d, %d" % (i, counts[i], palette[i][0], palette[i][1], palette[i][2])
  • Invalid NAL unit size for MP4 created from NALU with 3-byte start code (0x000001)

    9 septembre 2020, par rsc

    I have a mp4 muxer that works fine when the H264 NALU has the 4-byte start code (0x00000001). I am adapting it to support 3-byte start code (0x000001) but I am stuck with a bug that I am not able to identify. The MP4 generated open in VLC and MediaPlayer but no video is displayed. In VLC statistics shows that it is decoding blocks but stays with 0 frames displayed.

    &#xA;

    I then ran a error analyzer using ffmpeg (ffmpeg -v error -i myvideo.mp4 -f null - 2>error.log that shows me the following output :

    &#xA;

    [h264 @ 0x7fa3b5003200] Invalid NAL unit size (158559 > 158558).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (9338 > 9337).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (6582 > 6581).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (8300 > 8299).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (9336 > 9335).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (9422 > 9421).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (10448 > 10447).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (9208 > 9207).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (8776 > 8775).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (11376 > 11375).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (158311 > 158310).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (9164 > 9163).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (7994 > 7993).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (9974 > 9973).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (9282 > 9281).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa3b5003200] Invalid NAL unit size (9656 > 9655).&#xA;[h264 @ 0x7fa3b5003200] Error splitting the input into NAL units.&#xA;

    &#xA;

    I am trying to find why it is complaining about 1 byte difference in all mdat boxes. Also, the smaller values (e.g : 158558) are 12 bytes lower than the size written inside the mdat header.

    &#xA;

    Anyone could help indicate why that error is happening ? The same code is working fine to create MP4 with 4-byte NALU start code.

    &#xA;

    UPDATE : I ran ffprobe and it provides a few more details, more specifically saying that couldn't find the "codec parameters" :

    &#xA;

    $ ffprobe -analyzeduration 2147483647 -probesize 2147483647 -i myvideo.mp4 &#xA;ffprobe version 4.3.1 Copyright (c) 2007-2020 the FFmpeg developers&#xA;  built with Apple clang version 11.0.3 (clang-1103.0.32.62)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (147087 > 147086).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (8104 > 8103).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9752 > 9751).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12058 > 12057).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9026 > 9025).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12032 > 12031).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12566 > 12565).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7906 > 7905).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9758 > 9757).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12840 > 12839).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (146771 > 146770).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7708 > 7707).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9524 > 9523).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12230 > 12229).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9080 > 9079).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12164 > 12163).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12650 > 12649).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7916 > 7915).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9736 > 9735).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (13086 > 13085).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (147143 > 147142).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (8218 > 8217).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9908 > 9907).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12450 > 12449).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7806 > 7805).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9598 > 9597).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12692 > 12691).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9782 > 9781).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12930 > 12929).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12750 > 12749).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (146911 > 146910).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (8182 > 8181).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9494 > 9493).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12268 > 12267).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (8898 > 8897).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11946 > 11945).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12622 > 12621).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (8108 > 8107).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9754 > 9753).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12110 > 12109).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (147067 > 147066).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7726 > 7725).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9424 > 9423).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12078 > 12077).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (8976 > 8975).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11686 > 11685).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11940 > 11939).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9274 > 9273).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11950 > 11949).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11702 > 11701).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (147021 > 147020).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7686 > 7685).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9572 > 9571).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11810 > 11809).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11584 > 11583).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9116 > 9115).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11986 > 11985).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11390 > 11389).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9008 > 9007).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11768 > 11767).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (147347 > 147346).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7618 > 7617).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9266 > 9265).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12046 > 12045).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11562 > 11561).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (8898 > 8897).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11672 > 11671).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11458 > 11457).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (8850 > 8849).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11452 > 11451).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (147213 > 147212).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7540 > 7539).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9610 > 9609).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12302 > 12301).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9154 > 9153).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11868 > 11867).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12054 > 12053).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7508 > 7507).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9136 > 9135).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11812 > 11811).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (147089 > 147088).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7800 > 7799).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9482 > 9481).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12244 > 12243).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9198 > 9197).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11962 > 11961).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12386 > 12385).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7618 > 7617).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (8996 > 8995).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11800 > 11799).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (147135 > 147134).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7934 > 7933).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9742 > 9741).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12398 > 12397).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7540 > 7539).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9130 > 9129).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12482 > 12481).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12002 > 12001).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11710 > 11709).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11886 > 11885).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (147303 > 147302).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7620 > 7619).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9316 > 9315).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12138 > 12137).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9056 > 9055).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11968 > 11967).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11942 > 11941).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9072 > 9071).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11546 > 11545).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (11368 > 11367).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (147363 > 147362).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (7578 > 7577).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9466 > 9465).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (12230 > 12229).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[h264 @ 0x7fa85f800e00] Invalid NAL unit size (9248 > 9247).&#xA;[h264 @ 0x7fa85f800e00] Error splitting the input into NAL units.&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fa85f000000] decoding for stream 0 failed&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fa85f000000] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1280x960, 1717 kb/s): unspecified pixel format&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;myvideo.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : iso5&#xA;    minor_version   : 512&#xA;    compatible_brands: iso6mp41&#xA;  Duration: 00:00:13.22, start: 0.000000, bitrate: 1726 kb/s&#xA;    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none, 1280x960, 1717 kb/s, 8.70 fps, 9.25 tbr, 90k tbn, 180k tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandle&#xA;

    &#xA;