Merge commit 'dc6527ed908e4d330738f139074455ffbe56a2de'
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Mon, 29 Feb 2016 14:58:51 +0000 (14:58 +0000)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Mon, 29 Feb 2016 15:29:43 +0000 (15:29 +0000)
FATE tests have been updated to patch. They do not differ in
any meaningful way.

* commit 'dc6527ed908e4d330738f139074455ffbe56a2de':
  nutenc: do not use AVCodecContext.frame_size

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
19 files changed:
1  2 
libavformat/nutenc.c
tests/ref/acodec/pcm-s16be_planar
tests/ref/acodec/pcm-s16le_planar
tests/ref/acodec/pcm-s24le_planar
tests/ref/acodec/pcm-s32le_planar
tests/ref/acodec/pcm-s8_planar
tests/ref/acodec/pcm-u16be
tests/ref/acodec/pcm-u16le
tests/ref/acodec/pcm-u24be
tests/ref/acodec/pcm-u24le
tests/ref/acodec/pcm-u32be
tests/ref/acodec/pcm-u32le
tests/ref/fate/ffprobe_compact
tests/ref/fate/ffprobe_csv
tests/ref/fate/ffprobe_default
tests/ref/fate/ffprobe_flat
tests/ref/fate/ffprobe_ini
tests/ref/fate/ffprobe_json
tests/ref/fate/ffprobe_xml

@@@ -199,14 -189,20 +199,21 @@@ static void build_frame_code(AVFormatCo
          }
  
          key_frame = intra_only;
 +#if 1
          if (is_audio) {
-             int frame_bytes = codec->frame_size * (int64_t)codec->bit_rate /
-                               (8 * codec->sample_rate);
+             int frame_bytes;
              int pts;
 -            for (pts = 0; pts < 2; pts++)
+             if (codec->block_align > 0) {
+                 frame_bytes = codec->block_align;
+             } else {
+                 int frame_size = av_get_audio_frame_duration(codec, 0);
+                 frame_bytes = frame_size * (int64_t)codec->bit_rate / (8 * codec->sample_rate);
+             }
 +            for (pts = 0; pts < 2; pts++) {
                  for (pred = 0; pred < 2; pred++) {
 -                    FrameCode *ft = &nut->frame_code[start2];
 +                    FrameCode *ft  = &nut->frame_code[start2];
                      ft->flags      = FLAG_KEY * key_frame;
                      ft->stream_id  = stream_id;
                      ft->size_mul   = frame_bytes + 2;
index 3d7d7b1,0000000..12ebdee
mode 100644,000000..100644
--- /dev/null
@@@ -1,4 -1,0 +1,4 @@@
- a2d4da448a83dac7cbe11eea96e679fb *tests/data/fate/acodec-pcm-s16be_planar.nut
- 1060722 tests/data/fate/acodec-pcm-s16be_planar.nut
++b2acc0309be76b5f6200b525281a9037 *tests/data/fate/acodec-pcm-s16be_planar.nut
++1060727 tests/data/fate/acodec-pcm-s16be_planar.nut
 +95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s16be_planar.out.wav
 +stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
index c635c72,0000000..cc5c3c6
mode 100644,000000..100644
--- /dev/null
@@@ -1,4 -1,0 +1,4 @@@
- 761404c11c5b4b0a8bba0061704f70a4 *tests/data/fate/acodec-pcm-s16le_planar.nut
- 1060722 tests/data/fate/acodec-pcm-s16le_planar.nut
++15aa8f9d8ca30a17c7821acfcd9d87f9 *tests/data/fate/acodec-pcm-s16le_planar.nut
++1060727 tests/data/fate/acodec-pcm-s16le_planar.nut
 +95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s16le_planar.out.wav
 +stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
index 67393d9,0000000..5e83a19
mode 100644,000000..100644
--- /dev/null
@@@ -1,4 -1,0 +1,4 @@@
- aa9f8ca95de20b2e83f66dcbb15cc307 *tests/data/fate/acodec-pcm-s24le_planar.nut
- 1590251 tests/data/fate/acodec-pcm-s24le_planar.nut
++1c746862c9d79c57e275266f63822b29 *tests/data/fate/acodec-pcm-s24le_planar.nut
++1590256 tests/data/fate/acodec-pcm-s24le_planar.nut
 +95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s24le_planar.out.wav
 +stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
index 643659f,0000000..ff3051b
mode 100644,000000..100644
--- /dev/null
@@@ -1,4 -1,0 +1,4 @@@
- d2a712fe08b1792bc65f255f54bb980e *tests/data/fate/acodec-pcm-s32le_planar.nut
- 2120197 tests/data/fate/acodec-pcm-s32le_planar.nut
++d142973733ff4d61644b704438a4ba32 *tests/data/fate/acodec-pcm-s32le_planar.nut
++2120202 tests/data/fate/acodec-pcm-s32le_planar.nut
 +95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-s32le_planar.out.wav
 +stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
index 301e715,0000000..9cd795d
mode 100644,000000..100644
--- /dev/null
@@@ -1,4 -1,0 +1,4 @@@
- c0e10e4a5106137082131807b6674a71 *tests/data/fate/acodec-pcm-s8_planar.nut
- 531100 tests/data/fate/acodec-pcm-s8_planar.nut
++f04f79b2e90921a513f2d22fdab0dc47 *tests/data/fate/acodec-pcm-s8_planar.nut
++531105 tests/data/fate/acodec-pcm-s8_planar.nut
 +652edf30f35ad89bf27bcc9d2f9c7b53 *tests/data/fate/acodec-pcm-s8_planar.out.wav
 +stddev:  147.89 PSNR: 52.93 MAXDIFF:  255 bytes:  1058400/  1058400
index 3fd831d,0000000..015340c
mode 100644,000000..100644
--- /dev/null
@@@ -1,4 -1,0 +1,4 @@@
- 753d5bfdc38d314fa3b1a2eb34449aea *tests/data/fate/acodec-pcm-u16be.nut
- 1060715 tests/data/fate/acodec-pcm-u16be.nut
++abc31c722aee72f21b5f858731c28fb9 *tests/data/fate/acodec-pcm-u16be.nut
++1060720 tests/data/fate/acodec-pcm-u16be.nut
 +95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-u16be.out.wav
 +stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
index ea724bb,0000000..7efb086
mode 100644,000000..100644
--- /dev/null
@@@ -1,4 -1,0 +1,4 @@@
- cee38dc471b6b72d97e44d1667591362 *tests/data/fate/acodec-pcm-u16le.nut
- 1060715 tests/data/fate/acodec-pcm-u16le.nut
++80cf805a16a6b4f02f46ff9008ca16f7 *tests/data/fate/acodec-pcm-u16le.nut
++1060720 tests/data/fate/acodec-pcm-u16le.nut
 +95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-u16le.out.wav
 +stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
index 3c19637,0000000..ef423ea
mode 100644,000000..100644
--- /dev/null
@@@ -1,4 -1,0 +1,4 @@@
- 84c2b6f7197840e40c5f646efd8a43a4 *tests/data/fate/acodec-pcm-u24be.nut
- 1590244 tests/data/fate/acodec-pcm-u24be.nut
++c5b7d1898d8f5d6675ba543d2830bbaf *tests/data/fate/acodec-pcm-u24be.nut
++1590249 tests/data/fate/acodec-pcm-u24be.nut
 +95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-u24be.out.wav
 +stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
index b82d6bc,0000000..4010a1a
mode 100644,000000..100644
--- /dev/null
@@@ -1,4 -1,0 +1,4 @@@
- 5afea1f1b1d0590dbae2ac2e0092f434 *tests/data/fate/acodec-pcm-u24le.nut
- 1590244 tests/data/fate/acodec-pcm-u24le.nut
++884a3a562a8005084fde088fc3a74283 *tests/data/fate/acodec-pcm-u24le.nut
++1590249 tests/data/fate/acodec-pcm-u24le.nut
 +95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-u24le.out.wav
 +stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
index 909a130,0000000..358a01e
mode 100644,000000..100644
--- /dev/null
@@@ -1,4 -1,0 +1,4 @@@
- 529f523fcd04002791fce9cee797783b *tests/data/fate/acodec-pcm-u32be.nut
- 2120190 tests/data/fate/acodec-pcm-u32be.nut
++88d1f0b98e2878f0a45abde7ad73e9f1 *tests/data/fate/acodec-pcm-u32be.nut
++2120195 tests/data/fate/acodec-pcm-u32be.nut
 +95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-u32be.out.wav
 +stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
index 16a183f,0000000..6857ec0
mode 100644,000000..100644
--- /dev/null
@@@ -1,4 -1,0 +1,4 @@@
- 87f75abd86f84571bafc656e06b63038 *tests/data/fate/acodec-pcm-u32le.nut
- 2120190 tests/data/fate/acodec-pcm-u32le.nut
++7257d6251524479c563c9f17a2642222 *tests/data/fate/acodec-pcm-u32le.nut
++2120195 tests/data/fate/acodec-pcm-u32le.nut
 +95e54b261530a1bcf6de6fe3b21dc5f6 *tests/data/fate/acodec-pcm-u32le.out.wav
 +stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400
index 0d9ef30,0000000..4e12884
mode 100644,000000..100644
--- /dev/null
@@@ -1,32 -1,0 +1,32 @@@
- packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=642|flags=K
- frame|media_type=audio|stream_index=0|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|best_effort_timestamp=0|best_effort_timestamp_time=0.000000|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=642|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
- packet|codec_type=video|stream_index=1|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=2717|flags=K
- frame|media_type=video|stream_index=1|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|best_effort_timestamp=0|best_effort_timestamp_time=0.000000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=2717|pkt_size=230400|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
- packet|codec_type=video|stream_index=2|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=233138|flags=K
- frame|media_type=video|stream_index=2|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|best_effort_timestamp=0|best_effort_timestamp_time=0.000000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=233138|pkt_size=30000|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
- packet|codec_type=audio|stream_index=0|pts=1024|pts_time=0.023220|dts=1024|dts_time=0.023220|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=263143|flags=K
- frame|media_type=audio|stream_index=0|key_frame=1|pkt_pts=1024|pkt_pts_time=0.023220|pkt_dts=1024|pkt_dts_time=0.023220|best_effort_timestamp=1024|best_effort_timestamp_time=0.023220|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=263143|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
- packet|codec_type=video|stream_index=1|pts=2048|pts_time=0.040000|dts=2048|dts_time=0.040000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=265221|flags=K
- frame|media_type=video|stream_index=1|key_frame=1|pkt_pts=2048|pkt_pts_time=0.040000|pkt_dts=2048|pkt_dts_time=0.040000|best_effort_timestamp=2048|best_effort_timestamp_time=0.040000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=265221|pkt_size=230400|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
- packet|codec_type=video|stream_index=2|pts=2048|pts_time=0.040000|dts=2048|dts_time=0.040000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=495645|flags=K
- frame|media_type=video|stream_index=2|key_frame=1|pkt_pts=2048|pkt_pts_time=0.040000|pkt_dts=2048|pkt_dts_time=0.040000|best_effort_timestamp=2048|best_effort_timestamp_time=0.040000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=495645|pkt_size=30000|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
- packet|codec_type=audio|stream_index=0|pts=2048|pts_time=0.046440|dts=2048|dts_time=0.046440|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=525650|flags=K
- frame|media_type=audio|stream_index=0|key_frame=1|pkt_pts=2048|pkt_pts_time=0.046440|pkt_dts=2048|pkt_dts_time=0.046440|best_effort_timestamp=2048|best_effort_timestamp_time=0.046440|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=525650|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
- packet|codec_type=audio|stream_index=0|pts=3072|pts_time=0.069660|dts=3072|dts_time=0.069660|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=527721|flags=K
- frame|media_type=audio|stream_index=0|key_frame=1|pkt_pts=3072|pkt_pts_time=0.069660|pkt_dts=3072|pkt_dts_time=0.069660|best_effort_timestamp=3072|best_effort_timestamp_time=0.069660|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=527721|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
- packet|codec_type=video|stream_index=1|pts=4096|pts_time=0.080000|dts=4096|dts_time=0.080000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=529799|flags=K
- frame|media_type=video|stream_index=1|key_frame=1|pkt_pts=4096|pkt_pts_time=0.080000|pkt_dts=4096|pkt_dts_time=0.080000|best_effort_timestamp=4096|best_effort_timestamp_time=0.080000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=529799|pkt_size=230400|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
- packet|codec_type=video|stream_index=2|pts=4096|pts_time=0.080000|dts=4096|dts_time=0.080000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=760223|flags=K
- frame|media_type=video|stream_index=2|key_frame=1|pkt_pts=4096|pkt_pts_time=0.080000|pkt_dts=4096|pkt_dts_time=0.080000|best_effort_timestamp=4096|best_effort_timestamp_time=0.080000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=760223|pkt_size=30000|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
- packet|codec_type=audio|stream_index=0|pts=4096|pts_time=0.092880|dts=4096|dts_time=0.092880|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=790228|flags=K
- frame|media_type=audio|stream_index=0|key_frame=1|pkt_pts=4096|pkt_pts_time=0.092880|pkt_dts=4096|pkt_dts_time=0.092880|best_effort_timestamp=4096|best_effort_timestamp_time=0.092880|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=790228|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
- packet|codec_type=audio|stream_index=0|pts=5120|pts_time=0.116100|dts=5120|dts_time=0.116100|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=792299|flags=K
- frame|media_type=audio|stream_index=0|key_frame=1|pkt_pts=5120|pkt_pts_time=0.116100|pkt_dts=5120|pkt_dts_time=0.116100|best_effort_timestamp=5120|best_effort_timestamp_time=0.116100|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=792299|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
- packet|codec_type=video|stream_index=1|pts=6144|pts_time=0.120000|dts=6144|dts_time=0.120000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=794377|flags=K
- frame|media_type=video|stream_index=1|key_frame=1|pkt_pts=6144|pkt_pts_time=0.120000|pkt_dts=6144|pkt_dts_time=0.120000|best_effort_timestamp=6144|best_effort_timestamp_time=0.120000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=794377|pkt_size=230400|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
- packet|codec_type=video|stream_index=2|pts=6144|pts_time=0.120000|dts=6144|dts_time=0.120000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=1024801|flags=K
- frame|media_type=video|stream_index=2|key_frame=1|pkt_pts=6144|pkt_pts_time=0.120000|pkt_dts=6144|pkt_dts_time=0.120000|best_effort_timestamp=6144|best_effort_timestamp_time=0.120000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=1024801|pkt_size=30000|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
++packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=647|flags=K
++frame|media_type=audio|stream_index=0|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|best_effort_timestamp=0|best_effort_timestamp_time=0.000000|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=647|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
++packet|codec_type=video|stream_index=1|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=2722|flags=K
++frame|media_type=video|stream_index=1|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|best_effort_timestamp=0|best_effort_timestamp_time=0.000000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=2722|pkt_size=230400|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
++packet|codec_type=video|stream_index=2|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=233143|flags=K
++frame|media_type=video|stream_index=2|key_frame=1|pkt_pts=0|pkt_pts_time=0.000000|pkt_dts=0|pkt_dts_time=0.000000|best_effort_timestamp=0|best_effort_timestamp_time=0.000000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=233143|pkt_size=30000|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
++packet|codec_type=audio|stream_index=0|pts=1024|pts_time=0.023220|dts=1024|dts_time=0.023220|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=263148|flags=K
++frame|media_type=audio|stream_index=0|key_frame=1|pkt_pts=1024|pkt_pts_time=0.023220|pkt_dts=1024|pkt_dts_time=0.023220|best_effort_timestamp=1024|best_effort_timestamp_time=0.023220|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=263148|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
++packet|codec_type=video|stream_index=1|pts=2048|pts_time=0.040000|dts=2048|dts_time=0.040000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=265226|flags=K
++frame|media_type=video|stream_index=1|key_frame=1|pkt_pts=2048|pkt_pts_time=0.040000|pkt_dts=2048|pkt_dts_time=0.040000|best_effort_timestamp=2048|best_effort_timestamp_time=0.040000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=265226|pkt_size=230400|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
++packet|codec_type=video|stream_index=2|pts=2048|pts_time=0.040000|dts=2048|dts_time=0.040000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=495650|flags=K
++frame|media_type=video|stream_index=2|key_frame=1|pkt_pts=2048|pkt_pts_time=0.040000|pkt_dts=2048|pkt_dts_time=0.040000|best_effort_timestamp=2048|best_effort_timestamp_time=0.040000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=495650|pkt_size=30000|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
++packet|codec_type=audio|stream_index=0|pts=2048|pts_time=0.046440|dts=2048|dts_time=0.046440|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=525655|flags=K
++frame|media_type=audio|stream_index=0|key_frame=1|pkt_pts=2048|pkt_pts_time=0.046440|pkt_dts=2048|pkt_dts_time=0.046440|best_effort_timestamp=2048|best_effort_timestamp_time=0.046440|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=525655|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
++packet|codec_type=audio|stream_index=0|pts=3072|pts_time=0.069660|dts=3072|dts_time=0.069660|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=527726|flags=K
++frame|media_type=audio|stream_index=0|key_frame=1|pkt_pts=3072|pkt_pts_time=0.069660|pkt_dts=3072|pkt_dts_time=0.069660|best_effort_timestamp=3072|best_effort_timestamp_time=0.069660|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=527726|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
++packet|codec_type=video|stream_index=1|pts=4096|pts_time=0.080000|dts=4096|dts_time=0.080000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=529804|flags=K
++frame|media_type=video|stream_index=1|key_frame=1|pkt_pts=4096|pkt_pts_time=0.080000|pkt_dts=4096|pkt_dts_time=0.080000|best_effort_timestamp=4096|best_effort_timestamp_time=0.080000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=529804|pkt_size=230400|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
++packet|codec_type=video|stream_index=2|pts=4096|pts_time=0.080000|dts=4096|dts_time=0.080000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=760228|flags=K
++frame|media_type=video|stream_index=2|key_frame=1|pkt_pts=4096|pkt_pts_time=0.080000|pkt_dts=4096|pkt_dts_time=0.080000|best_effort_timestamp=4096|best_effort_timestamp_time=0.080000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=760228|pkt_size=30000|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
++packet|codec_type=audio|stream_index=0|pts=4096|pts_time=0.092880|dts=4096|dts_time=0.092880|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=790233|flags=K
++frame|media_type=audio|stream_index=0|key_frame=1|pkt_pts=4096|pkt_pts_time=0.092880|pkt_dts=4096|pkt_dts_time=0.092880|best_effort_timestamp=4096|best_effort_timestamp_time=0.092880|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=790233|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
++packet|codec_type=audio|stream_index=0|pts=5120|pts_time=0.116100|dts=5120|dts_time=0.116100|duration=1024|duration_time=0.023220|convergence_duration=N/A|convergence_duration_time=N/A|size=2048|pos=792304|flags=K
++frame|media_type=audio|stream_index=0|key_frame=1|pkt_pts=5120|pkt_pts_time=0.116100|pkt_dts=5120|pkt_dts_time=0.116100|best_effort_timestamp=5120|best_effort_timestamp_time=0.116100|pkt_duration=1024|pkt_duration_time=0.023220|pkt_pos=792304|pkt_size=2048|sample_fmt=s16|nb_samples=1024|channels=1|channel_layout=unknown
++packet|codec_type=video|stream_index=1|pts=6144|pts_time=0.120000|dts=6144|dts_time=0.120000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=230400|pos=794382|flags=K
++frame|media_type=video|stream_index=1|key_frame=1|pkt_pts=6144|pkt_pts_time=0.120000|pkt_dts=6144|pkt_dts_time=0.120000|best_effort_timestamp=6144|best_effort_timestamp_time=0.120000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=794382|pkt_size=230400|width=320|height=240|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
++packet|codec_type=video|stream_index=2|pts=6144|pts_time=0.120000|dts=6144|dts_time=0.120000|duration=2048|duration_time=0.040000|convergence_duration=N/A|convergence_duration_time=N/A|size=30000|pos=1024806|flags=K
++frame|media_type=video|stream_index=2|key_frame=1|pkt_pts=6144|pkt_pts_time=0.120000|pkt_dts=6144|pkt_dts_time=0.120000|best_effort_timestamp=6144|best_effort_timestamp_time=0.120000|pkt_duration=2048|pkt_duration_time=0.040000|pkt_pos=1024806|pkt_size=30000|width=100|height=100|pix_fmt=rgb24|sample_aspect_ratio=1:1|pict_type=I|coded_picture_number=0|display_picture_number=0|interlaced_frame=0|top_field_first=0|repeat_pict=0
 +stream|index=0|codec_name=pcm_s16le|profile=unknown|codec_type=audio|codec_time_base=1/44100|codec_tag_string=PSD[16]|codec_tag=0x10445350|sample_fmt=s16|sample_rate=44100|channels=1|channel_layout=unknown|bits_per_sample=16|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/44100|start_pts=0|start_time=0.000000|duration_ts=N/A|duration=N/A|bit_rate=705600|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=6|nb_read_packets=6|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|tag:E=mc²|tag:encoder=Lavc pcm_s16le
 +stream|index=1|codec_name=rawvideo|profile=unknown|codec_type=video|codec_time_base=1/51200|codec_tag_string=RGB[24]|codec_tag=0x18424752|width=320|height=240|coded_width=320|coded_height=240|has_b_frames=0|sample_aspect_ratio=1:1|display_aspect_ratio=4:3|pix_fmt=rgb24|level=-99|color_range=N/A|color_space=unknown|color_transfer=unknown|color_primaries=unknown|chroma_location=unspecified|timecode=N/A|refs=1|id=N/A|r_frame_rate=25/1|avg_frame_rate=25/1|time_base=1/51200|start_pts=0|start_time=0.000000|duration_ts=N/A|duration=N/A|bit_rate=N/A|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=4|nb_read_packets=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|tag:title=foobar|tag:duration_ts=field-and-tags-conflict-attempt|tag:encoder=Lavc rawvideo
 +stream|index=2|codec_name=rawvideo|profile=unknown|codec_type=video|codec_time_base=1/51200|codec_tag_string=RGB[24]|codec_tag=0x18424752|width=100|height=100|coded_width=100|coded_height=100|has_b_frames=0|sample_aspect_ratio=1:1|display_aspect_ratio=1:1|pix_fmt=rgb24|level=-99|color_range=N/A|color_space=unknown|color_transfer=unknown|color_primaries=unknown|chroma_location=unspecified|timecode=N/A|refs=1|id=N/A|r_frame_rate=25/1|avg_frame_rate=25/1|time_base=1/51200|start_pts=0|start_time=0.000000|duration_ts=N/A|duration=N/A|bit_rate=N/A|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=4|nb_read_packets=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|tag:encoder=Lavc rawvideo
- format|filename=tests/data/ffprobe-test.nut|nb_streams=3|nb_programs=0|format_name=nut|start_time=0.000000|duration=0.120000|size=1054882|bit_rate=70325466|probe_score=100|tag:title=ffprobe test file|tag:comment='A comment with CSV, XML & JSON special chars': <tag value="x">|tag:comment2=I ♥ Üñîçød€
++format|filename=tests/data/ffprobe-test.nut|nb_streams=3|nb_programs=0|format_name=nut|start_time=0.000000|duration=0.120000|size=1054887|bit_rate=70325800|probe_score=100|tag:title=ffprobe test file|tag:comment='A comment with CSV, XML & JSON special chars': <tag value="x">|tag:comment2=I ♥ Üñîçød€
index 9186eba,0000000..8088c4e
mode 100644,000000..100644
--- /dev/null
@@@ -1,32 -1,0 +1,32 @@@
- packet,audio,0,0,0.000000,0,0.000000,1024,0.023220,N/A,N/A,2048,642,K
- frame,audio,0,1,0,0.000000,0,0.000000,0,0.000000,1024,0.023220,642,2048,s16,1024,1,unknown
- packet,video,1,0,0.000000,0,0.000000,2048,0.040000,N/A,N/A,230400,2717,K
- frame,video,1,1,0,0.000000,0,0.000000,0,0.000000,2048,0.040000,2717,230400,320,240,rgb24,1:1,I,0,0,0,0,0
- packet,video,2,0,0.000000,0,0.000000,2048,0.040000,N/A,N/A,30000,233138,K
- frame,video,2,1,0,0.000000,0,0.000000,0,0.000000,2048,0.040000,233138,30000,100,100,rgb24,1:1,I,0,0,0,0,0
- packet,audio,0,1024,0.023220,1024,0.023220,1024,0.023220,N/A,N/A,2048,263143,K
- frame,audio,0,1,1024,0.023220,1024,0.023220,1024,0.023220,1024,0.023220,263143,2048,s16,1024,1,unknown
- packet,video,1,2048,0.040000,2048,0.040000,2048,0.040000,N/A,N/A,230400,265221,K
- frame,video,1,1,2048,0.040000,2048,0.040000,2048,0.040000,2048,0.040000,265221,230400,320,240,rgb24,1:1,I,0,0,0,0,0
- packet,video,2,2048,0.040000,2048,0.040000,2048,0.040000,N/A,N/A,30000,495645,K
- frame,video,2,1,2048,0.040000,2048,0.040000,2048,0.040000,2048,0.040000,495645,30000,100,100,rgb24,1:1,I,0,0,0,0,0
- packet,audio,0,2048,0.046440,2048,0.046440,1024,0.023220,N/A,N/A,2048,525650,K
- frame,audio,0,1,2048,0.046440,2048,0.046440,2048,0.046440,1024,0.023220,525650,2048,s16,1024,1,unknown
- packet,audio,0,3072,0.069660,3072,0.069660,1024,0.023220,N/A,N/A,2048,527721,K
- frame,audio,0,1,3072,0.069660,3072,0.069660,3072,0.069660,1024,0.023220,527721,2048,s16,1024,1,unknown
- packet,video,1,4096,0.080000,4096,0.080000,2048,0.040000,N/A,N/A,230400,529799,K
- frame,video,1,1,4096,0.080000,4096,0.080000,4096,0.080000,2048,0.040000,529799,230400,320,240,rgb24,1:1,I,0,0,0,0,0
- packet,video,2,4096,0.080000,4096,0.080000,2048,0.040000,N/A,N/A,30000,760223,K
- frame,video,2,1,4096,0.080000,4096,0.080000,4096,0.080000,2048,0.040000,760223,30000,100,100,rgb24,1:1,I,0,0,0,0,0
- packet,audio,0,4096,0.092880,4096,0.092880,1024,0.023220,N/A,N/A,2048,790228,K
- frame,audio,0,1,4096,0.092880,4096,0.092880,4096,0.092880,1024,0.023220,790228,2048,s16,1024,1,unknown
- packet,audio,0,5120,0.116100,5120,0.116100,1024,0.023220,N/A,N/A,2048,792299,K
- frame,audio,0,1,5120,0.116100,5120,0.116100,5120,0.116100,1024,0.023220,792299,2048,s16,1024,1,unknown
- packet,video,1,6144,0.120000,6144,0.120000,2048,0.040000,N/A,N/A,230400,794377,K
- frame,video,1,1,6144,0.120000,6144,0.120000,6144,0.120000,2048,0.040000,794377,230400,320,240,rgb24,1:1,I,0,0,0,0,0
- packet,video,2,6144,0.120000,6144,0.120000,2048,0.040000,N/A,N/A,30000,1024801,K
- frame,video,2,1,6144,0.120000,6144,0.120000,6144,0.120000,2048,0.040000,1024801,30000,100,100,rgb24,1:1,I,0,0,0,0,0
++packet,audio,0,0,0.000000,0,0.000000,1024,0.023220,N/A,N/A,2048,647,K
++frame,audio,0,1,0,0.000000,0,0.000000,0,0.000000,1024,0.023220,647,2048,s16,1024,1,unknown
++packet,video,1,0,0.000000,0,0.000000,2048,0.040000,N/A,N/A,230400,2722,K
++frame,video,1,1,0,0.000000,0,0.000000,0,0.000000,2048,0.040000,2722,230400,320,240,rgb24,1:1,I,0,0,0,0,0
++packet,video,2,0,0.000000,0,0.000000,2048,0.040000,N/A,N/A,30000,233143,K
++frame,video,2,1,0,0.000000,0,0.000000,0,0.000000,2048,0.040000,233143,30000,100,100,rgb24,1:1,I,0,0,0,0,0
++packet,audio,0,1024,0.023220,1024,0.023220,1024,0.023220,N/A,N/A,2048,263148,K
++frame,audio,0,1,1024,0.023220,1024,0.023220,1024,0.023220,1024,0.023220,263148,2048,s16,1024,1,unknown
++packet,video,1,2048,0.040000,2048,0.040000,2048,0.040000,N/A,N/A,230400,265226,K
++frame,video,1,1,2048,0.040000,2048,0.040000,2048,0.040000,2048,0.040000,265226,230400,320,240,rgb24,1:1,I,0,0,0,0,0
++packet,video,2,2048,0.040000,2048,0.040000,2048,0.040000,N/A,N/A,30000,495650,K
++frame,video,2,1,2048,0.040000,2048,0.040000,2048,0.040000,2048,0.040000,495650,30000,100,100,rgb24,1:1,I,0,0,0,0,0
++packet,audio,0,2048,0.046440,2048,0.046440,1024,0.023220,N/A,N/A,2048,525655,K
++frame,audio,0,1,2048,0.046440,2048,0.046440,2048,0.046440,1024,0.023220,525655,2048,s16,1024,1,unknown
++packet,audio,0,3072,0.069660,3072,0.069660,1024,0.023220,N/A,N/A,2048,527726,K
++frame,audio,0,1,3072,0.069660,3072,0.069660,3072,0.069660,1024,0.023220,527726,2048,s16,1024,1,unknown
++packet,video,1,4096,0.080000,4096,0.080000,2048,0.040000,N/A,N/A,230400,529804,K
++frame,video,1,1,4096,0.080000,4096,0.080000,4096,0.080000,2048,0.040000,529804,230400,320,240,rgb24,1:1,I,0,0,0,0,0
++packet,video,2,4096,0.080000,4096,0.080000,2048,0.040000,N/A,N/A,30000,760228,K
++frame,video,2,1,4096,0.080000,4096,0.080000,4096,0.080000,2048,0.040000,760228,30000,100,100,rgb24,1:1,I,0,0,0,0,0
++packet,audio,0,4096,0.092880,4096,0.092880,1024,0.023220,N/A,N/A,2048,790233,K
++frame,audio,0,1,4096,0.092880,4096,0.092880,4096,0.092880,1024,0.023220,790233,2048,s16,1024,1,unknown
++packet,audio,0,5120,0.116100,5120,0.116100,1024,0.023220,N/A,N/A,2048,792304,K
++frame,audio,0,1,5120,0.116100,5120,0.116100,5120,0.116100,1024,0.023220,792304,2048,s16,1024,1,unknown
++packet,video,1,6144,0.120000,6144,0.120000,2048,0.040000,N/A,N/A,230400,794382,K
++frame,video,1,1,6144,0.120000,6144,0.120000,6144,0.120000,2048,0.040000,794382,230400,320,240,rgb24,1:1,I,0,0,0,0,0
++packet,video,2,6144,0.120000,6144,0.120000,2048,0.040000,N/A,N/A,30000,1024806,K
++frame,video,2,1,6144,0.120000,6144,0.120000,6144,0.120000,2048,0.040000,1024806,30000,100,100,rgb24,1:1,I,0,0,0,0,0
 +stream,0,pcm_s16le,unknown,audio,1/44100,PSD[16],0x10445350,s16,44100,1,unknown,16,N/A,0/0,0/0,1/44100,0,0.000000,N/A,N/A,705600,N/A,N/A,N/A,6,6,0,0,0,0,0,0,0,0,0,0,0,mc²,Lavc pcm_s16le
 +stream,1,rawvideo,unknown,video,1/51200,RGB[24],0x18424752,320,240,320,240,0,1:1,4:3,rgb24,-99,N/A,unknown,unknown,unknown,unspecified,N/A,1,N/A,25/1,25/1,1/51200,0,0.000000,N/A,N/A,N/A,N/A,N/A,N/A,4,4,0,0,0,0,0,0,0,0,0,0,0,foobar,field-and-tags-conflict-attempt,Lavc rawvideo
 +stream,2,rawvideo,unknown,video,1/51200,RGB[24],0x18424752,100,100,100,100,0,1:1,1:1,rgb24,-99,N/A,unknown,unknown,unknown,unspecified,N/A,1,N/A,25/1,25/1,1/51200,0,0.000000,N/A,N/A,N/A,N/A,N/A,N/A,4,4,0,0,0,0,0,0,0,0,0,0,0,Lavc rawvideo
- format,tests/data/ffprobe-test.nut,3,0,nut,0.000000,0.120000,1054882,70325466,100,ffprobe test file,"'A comment with CSV, XML & JSON special chars': <tag value=""x"">",I ♥ Üñîçød€
++format,tests/data/ffprobe-test.nut,3,0,nut,0.000000,0.120000,1054887,70325800,100,ffprobe test file,"'A comment with CSV, XML & JSON special chars': <tag value=""x"">",I ♥ Üñîçød€
index df97796,0000000..2adb4a4
mode 100644,000000..100644
--- /dev/null
@@@ -1,683 -1,0 +1,683 @@@
- pos=642
 +[PACKET]
 +codec_type=audio
 +stream_index=0
 +pts=0
 +pts_time=0.000000
 +dts=0
 +dts_time=0.000000
 +duration=1024
 +duration_time=0.023220
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=2048
- pkt_pos=642
++pos=647
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=audio
 +stream_index=0
 +key_frame=1
 +pkt_pts=0
 +pkt_pts_time=0.000000
 +pkt_dts=0
 +pkt_dts_time=0.000000
 +best_effort_timestamp=0
 +best_effort_timestamp_time=0.000000
 +pkt_duration=1024
 +pkt_duration_time=0.023220
- pos=2717
++pkt_pos=647
 +pkt_size=2048
 +sample_fmt=s16
 +nb_samples=1024
 +channels=1
 +channel_layout=unknown
 +[/FRAME]
 +[PACKET]
 +codec_type=video
 +stream_index=1
 +pts=0
 +pts_time=0.000000
 +dts=0
 +dts_time=0.000000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=230400
- pkt_pos=2717
++pos=2722
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=video
 +stream_index=1
 +key_frame=1
 +pkt_pts=0
 +pkt_pts_time=0.000000
 +pkt_dts=0
 +pkt_dts_time=0.000000
 +best_effort_timestamp=0
 +best_effort_timestamp_time=0.000000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=233138
++pkt_pos=2722
 +pkt_size=230400
 +width=320
 +height=240
 +pix_fmt=rgb24
 +sample_aspect_ratio=1:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +[/FRAME]
 +[PACKET]
 +codec_type=video
 +stream_index=2
 +pts=0
 +pts_time=0.000000
 +dts=0
 +dts_time=0.000000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=30000
- pkt_pos=233138
++pos=233143
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=video
 +stream_index=2
 +key_frame=1
 +pkt_pts=0
 +pkt_pts_time=0.000000
 +pkt_dts=0
 +pkt_dts_time=0.000000
 +best_effort_timestamp=0
 +best_effort_timestamp_time=0.000000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=263143
++pkt_pos=233143
 +pkt_size=30000
 +width=100
 +height=100
 +pix_fmt=rgb24
 +sample_aspect_ratio=1:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +[/FRAME]
 +[PACKET]
 +codec_type=audio
 +stream_index=0
 +pts=1024
 +pts_time=0.023220
 +dts=1024
 +dts_time=0.023220
 +duration=1024
 +duration_time=0.023220
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=2048
- pkt_pos=263143
++pos=263148
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=audio
 +stream_index=0
 +key_frame=1
 +pkt_pts=1024
 +pkt_pts_time=0.023220
 +pkt_dts=1024
 +pkt_dts_time=0.023220
 +best_effort_timestamp=1024
 +best_effort_timestamp_time=0.023220
 +pkt_duration=1024
 +pkt_duration_time=0.023220
- pos=265221
++pkt_pos=263148
 +pkt_size=2048
 +sample_fmt=s16
 +nb_samples=1024
 +channels=1
 +channel_layout=unknown
 +[/FRAME]
 +[PACKET]
 +codec_type=video
 +stream_index=1
 +pts=2048
 +pts_time=0.040000
 +dts=2048
 +dts_time=0.040000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=230400
- pkt_pos=265221
++pos=265226
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=video
 +stream_index=1
 +key_frame=1
 +pkt_pts=2048
 +pkt_pts_time=0.040000
 +pkt_dts=2048
 +pkt_dts_time=0.040000
 +best_effort_timestamp=2048
 +best_effort_timestamp_time=0.040000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=495645
++pkt_pos=265226
 +pkt_size=230400
 +width=320
 +height=240
 +pix_fmt=rgb24
 +sample_aspect_ratio=1:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +[/FRAME]
 +[PACKET]
 +codec_type=video
 +stream_index=2
 +pts=2048
 +pts_time=0.040000
 +dts=2048
 +dts_time=0.040000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=30000
- pkt_pos=495645
++pos=495650
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=video
 +stream_index=2
 +key_frame=1
 +pkt_pts=2048
 +pkt_pts_time=0.040000
 +pkt_dts=2048
 +pkt_dts_time=0.040000
 +best_effort_timestamp=2048
 +best_effort_timestamp_time=0.040000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=525650
++pkt_pos=495650
 +pkt_size=30000
 +width=100
 +height=100
 +pix_fmt=rgb24
 +sample_aspect_ratio=1:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +[/FRAME]
 +[PACKET]
 +codec_type=audio
 +stream_index=0
 +pts=2048
 +pts_time=0.046440
 +dts=2048
 +dts_time=0.046440
 +duration=1024
 +duration_time=0.023220
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=2048
- pkt_pos=525650
++pos=525655
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=audio
 +stream_index=0
 +key_frame=1
 +pkt_pts=2048
 +pkt_pts_time=0.046440
 +pkt_dts=2048
 +pkt_dts_time=0.046440
 +best_effort_timestamp=2048
 +best_effort_timestamp_time=0.046440
 +pkt_duration=1024
 +pkt_duration_time=0.023220
- pos=527721
++pkt_pos=525655
 +pkt_size=2048
 +sample_fmt=s16
 +nb_samples=1024
 +channels=1
 +channel_layout=unknown
 +[/FRAME]
 +[PACKET]
 +codec_type=audio
 +stream_index=0
 +pts=3072
 +pts_time=0.069660
 +dts=3072
 +dts_time=0.069660
 +duration=1024
 +duration_time=0.023220
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=2048
- pkt_pos=527721
++pos=527726
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=audio
 +stream_index=0
 +key_frame=1
 +pkt_pts=3072
 +pkt_pts_time=0.069660
 +pkt_dts=3072
 +pkt_dts_time=0.069660
 +best_effort_timestamp=3072
 +best_effort_timestamp_time=0.069660
 +pkt_duration=1024
 +pkt_duration_time=0.023220
- pos=529799
++pkt_pos=527726
 +pkt_size=2048
 +sample_fmt=s16
 +nb_samples=1024
 +channels=1
 +channel_layout=unknown
 +[/FRAME]
 +[PACKET]
 +codec_type=video
 +stream_index=1
 +pts=4096
 +pts_time=0.080000
 +dts=4096
 +dts_time=0.080000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=230400
- pkt_pos=529799
++pos=529804
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=video
 +stream_index=1
 +key_frame=1
 +pkt_pts=4096
 +pkt_pts_time=0.080000
 +pkt_dts=4096
 +pkt_dts_time=0.080000
 +best_effort_timestamp=4096
 +best_effort_timestamp_time=0.080000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=760223
++pkt_pos=529804
 +pkt_size=230400
 +width=320
 +height=240
 +pix_fmt=rgb24
 +sample_aspect_ratio=1:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +[/FRAME]
 +[PACKET]
 +codec_type=video
 +stream_index=2
 +pts=4096
 +pts_time=0.080000
 +dts=4096
 +dts_time=0.080000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=30000
- pkt_pos=760223
++pos=760228
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=video
 +stream_index=2
 +key_frame=1
 +pkt_pts=4096
 +pkt_pts_time=0.080000
 +pkt_dts=4096
 +pkt_dts_time=0.080000
 +best_effort_timestamp=4096
 +best_effort_timestamp_time=0.080000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=790228
++pkt_pos=760228
 +pkt_size=30000
 +width=100
 +height=100
 +pix_fmt=rgb24
 +sample_aspect_ratio=1:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +[/FRAME]
 +[PACKET]
 +codec_type=audio
 +stream_index=0
 +pts=4096
 +pts_time=0.092880
 +dts=4096
 +dts_time=0.092880
 +duration=1024
 +duration_time=0.023220
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=2048
- pkt_pos=790228
++pos=790233
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=audio
 +stream_index=0
 +key_frame=1
 +pkt_pts=4096
 +pkt_pts_time=0.092880
 +pkt_dts=4096
 +pkt_dts_time=0.092880
 +best_effort_timestamp=4096
 +best_effort_timestamp_time=0.092880
 +pkt_duration=1024
 +pkt_duration_time=0.023220
- pos=792299
++pkt_pos=790233
 +pkt_size=2048
 +sample_fmt=s16
 +nb_samples=1024
 +channels=1
 +channel_layout=unknown
 +[/FRAME]
 +[PACKET]
 +codec_type=audio
 +stream_index=0
 +pts=5120
 +pts_time=0.116100
 +dts=5120
 +dts_time=0.116100
 +duration=1024
 +duration_time=0.023220
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=2048
- pkt_pos=792299
++pos=792304
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=audio
 +stream_index=0
 +key_frame=1
 +pkt_pts=5120
 +pkt_pts_time=0.116100
 +pkt_dts=5120
 +pkt_dts_time=0.116100
 +best_effort_timestamp=5120
 +best_effort_timestamp_time=0.116100
 +pkt_duration=1024
 +pkt_duration_time=0.023220
- pos=794377
++pkt_pos=792304
 +pkt_size=2048
 +sample_fmt=s16
 +nb_samples=1024
 +channels=1
 +channel_layout=unknown
 +[/FRAME]
 +[PACKET]
 +codec_type=video
 +stream_index=1
 +pts=6144
 +pts_time=0.120000
 +dts=6144
 +dts_time=0.120000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=230400
- pkt_pos=794377
++pos=794382
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=video
 +stream_index=1
 +key_frame=1
 +pkt_pts=6144
 +pkt_pts_time=0.120000
 +pkt_dts=6144
 +pkt_dts_time=0.120000
 +best_effort_timestamp=6144
 +best_effort_timestamp_time=0.120000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=1024801
++pkt_pos=794382
 +pkt_size=230400
 +width=320
 +height=240
 +pix_fmt=rgb24
 +sample_aspect_ratio=1:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +[/FRAME]
 +[PACKET]
 +codec_type=video
 +stream_index=2
 +pts=6144
 +pts_time=0.120000
 +dts=6144
 +dts_time=0.120000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=30000
- pkt_pos=1024801
++pos=1024806
 +flags=K
 +[/PACKET]
 +[FRAME]
 +media_type=video
 +stream_index=2
 +key_frame=1
 +pkt_pts=6144
 +pkt_pts_time=0.120000
 +pkt_dts=6144
 +pkt_dts_time=0.120000
 +best_effort_timestamp=6144
 +best_effort_timestamp_time=0.120000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- size=1054882
- bit_rate=70325466
++pkt_pos=1024806
 +pkt_size=30000
 +width=100
 +height=100
 +pix_fmt=rgb24
 +sample_aspect_ratio=1:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +[/FRAME]
 +[STREAM]
 +index=0
 +codec_name=pcm_s16le
 +profile=unknown
 +codec_type=audio
 +codec_time_base=1/44100
 +codec_tag_string=PSD[16]
 +codec_tag=0x10445350
 +sample_fmt=s16
 +sample_rate=44100
 +channels=1
 +channel_layout=unknown
 +bits_per_sample=16
 +id=N/A
 +r_frame_rate=0/0
 +avg_frame_rate=0/0
 +time_base=1/44100
 +start_pts=0
 +start_time=0.000000
 +duration_ts=N/A
 +duration=N/A
 +bit_rate=705600
 +max_bit_rate=N/A
 +bits_per_raw_sample=N/A
 +nb_frames=N/A
 +nb_read_frames=6
 +nb_read_packets=6
 +DISPOSITION:default=0
 +DISPOSITION:dub=0
 +DISPOSITION:original=0
 +DISPOSITION:comment=0
 +DISPOSITION:lyrics=0
 +DISPOSITION:karaoke=0
 +DISPOSITION:forced=0
 +DISPOSITION:hearing_impaired=0
 +DISPOSITION:visual_impaired=0
 +DISPOSITION:clean_effects=0
 +DISPOSITION:attached_pic=0
 +TAG:E=mc²
 +TAG:encoder=Lavc pcm_s16le
 +[/STREAM]
 +[STREAM]
 +index=1
 +codec_name=rawvideo
 +profile=unknown
 +codec_type=video
 +codec_time_base=1/51200
 +codec_tag_string=RGB[24]
 +codec_tag=0x18424752
 +width=320
 +height=240
 +coded_width=320
 +coded_height=240
 +has_b_frames=0
 +sample_aspect_ratio=1:1
 +display_aspect_ratio=4:3
 +pix_fmt=rgb24
 +level=-99
 +color_range=N/A
 +color_space=unknown
 +color_transfer=unknown
 +color_primaries=unknown
 +chroma_location=unspecified
 +timecode=N/A
 +refs=1
 +id=N/A
 +r_frame_rate=25/1
 +avg_frame_rate=25/1
 +time_base=1/51200
 +start_pts=0
 +start_time=0.000000
 +duration_ts=N/A
 +duration=N/A
 +bit_rate=N/A
 +max_bit_rate=N/A
 +bits_per_raw_sample=N/A
 +nb_frames=N/A
 +nb_read_frames=4
 +nb_read_packets=4
 +DISPOSITION:default=0
 +DISPOSITION:dub=0
 +DISPOSITION:original=0
 +DISPOSITION:comment=0
 +DISPOSITION:lyrics=0
 +DISPOSITION:karaoke=0
 +DISPOSITION:forced=0
 +DISPOSITION:hearing_impaired=0
 +DISPOSITION:visual_impaired=0
 +DISPOSITION:clean_effects=0
 +DISPOSITION:attached_pic=0
 +TAG:title=foobar
 +TAG:duration_ts=field-and-tags-conflict-attempt
 +TAG:encoder=Lavc rawvideo
 +[/STREAM]
 +[STREAM]
 +index=2
 +codec_name=rawvideo
 +profile=unknown
 +codec_type=video
 +codec_time_base=1/51200
 +codec_tag_string=RGB[24]
 +codec_tag=0x18424752
 +width=100
 +height=100
 +coded_width=100
 +coded_height=100
 +has_b_frames=0
 +sample_aspect_ratio=1:1
 +display_aspect_ratio=1:1
 +pix_fmt=rgb24
 +level=-99
 +color_range=N/A
 +color_space=unknown
 +color_transfer=unknown
 +color_primaries=unknown
 +chroma_location=unspecified
 +timecode=N/A
 +refs=1
 +id=N/A
 +r_frame_rate=25/1
 +avg_frame_rate=25/1
 +time_base=1/51200
 +start_pts=0
 +start_time=0.000000
 +duration_ts=N/A
 +duration=N/A
 +bit_rate=N/A
 +max_bit_rate=N/A
 +bits_per_raw_sample=N/A
 +nb_frames=N/A
 +nb_read_frames=4
 +nb_read_packets=4
 +DISPOSITION:default=0
 +DISPOSITION:dub=0
 +DISPOSITION:original=0
 +DISPOSITION:comment=0
 +DISPOSITION:lyrics=0
 +DISPOSITION:karaoke=0
 +DISPOSITION:forced=0
 +DISPOSITION:hearing_impaired=0
 +DISPOSITION:visual_impaired=0
 +DISPOSITION:clean_effects=0
 +DISPOSITION:attached_pic=0
 +TAG:encoder=Lavc rawvideo
 +[/STREAM]
 +[FORMAT]
 +filename=tests/data/ffprobe-test.nut
 +nb_streams=3
 +nb_programs=0
 +format_name=nut
 +start_time=0.000000
 +duration=0.120000
++size=1054887
++bit_rate=70325800
 +probe_score=100
 +TAG:title=ffprobe test file
 +TAG:comment='A comment with CSV, XML & JSON special chars': <tag value="x">
 +TAG:comment2=I ♥ Üñîçød€
 +[/FORMAT]
index 5a8cb77,0000000..e348323
mode 100644,000000..100644
--- /dev/null
@@@ -1,619 -1,0 +1,619 @@@
- packets_and_frames.packet.0.pos="642"
 +packets_and_frames.packet.0.codec_type="audio"
 +packets_and_frames.packet.0.stream_index=0
 +packets_and_frames.packet.0.pts=0
 +packets_and_frames.packet.0.pts_time="0.000000"
 +packets_and_frames.packet.0.dts=0
 +packets_and_frames.packet.0.dts_time="0.000000"
 +packets_and_frames.packet.0.duration=1024
 +packets_and_frames.packet.0.duration_time="0.023220"
 +packets_and_frames.packet.0.convergence_duration="N/A"
 +packets_and_frames.packet.0.convergence_duration_time="N/A"
 +packets_and_frames.packet.0.size="2048"
- packets_and_frames.frame.0.pkt_pos="642"
++packets_and_frames.packet.0.pos="647"
 +packets_and_frames.packet.0.flags="K"
 +packets_and_frames.frame.0.media_type="audio"
 +packets_and_frames.frame.0.stream_index=0
 +packets_and_frames.frame.0.key_frame=1
 +packets_and_frames.frame.0.pkt_pts=0
 +packets_and_frames.frame.0.pkt_pts_time="0.000000"
 +packets_and_frames.frame.0.pkt_dts=0
 +packets_and_frames.frame.0.pkt_dts_time="0.000000"
 +packets_and_frames.frame.0.best_effort_timestamp=0
 +packets_and_frames.frame.0.best_effort_timestamp_time="0.000000"
 +packets_and_frames.frame.0.pkt_duration=1024
 +packets_and_frames.frame.0.pkt_duration_time="0.023220"
- packets_and_frames.packet.1.pos="2717"
++packets_and_frames.frame.0.pkt_pos="647"
 +packets_and_frames.frame.0.pkt_size="2048"
 +packets_and_frames.frame.0.sample_fmt="s16"
 +packets_and_frames.frame.0.nb_samples=1024
 +packets_and_frames.frame.0.channels=1
 +packets_and_frames.frame.0.channel_layout="unknown"
 +packets_and_frames.packet.1.codec_type="video"
 +packets_and_frames.packet.1.stream_index=1
 +packets_and_frames.packet.1.pts=0
 +packets_and_frames.packet.1.pts_time="0.000000"
 +packets_and_frames.packet.1.dts=0
 +packets_and_frames.packet.1.dts_time="0.000000"
 +packets_and_frames.packet.1.duration=2048
 +packets_and_frames.packet.1.duration_time="0.040000"
 +packets_and_frames.packet.1.convergence_duration="N/A"
 +packets_and_frames.packet.1.convergence_duration_time="N/A"
 +packets_and_frames.packet.1.size="230400"
- packets_and_frames.frame.1.pkt_pos="2717"
++packets_and_frames.packet.1.pos="2722"
 +packets_and_frames.packet.1.flags="K"
 +packets_and_frames.frame.1.media_type="video"
 +packets_and_frames.frame.1.stream_index=1
 +packets_and_frames.frame.1.key_frame=1
 +packets_and_frames.frame.1.pkt_pts=0
 +packets_and_frames.frame.1.pkt_pts_time="0.000000"
 +packets_and_frames.frame.1.pkt_dts=0
 +packets_and_frames.frame.1.pkt_dts_time="0.000000"
 +packets_and_frames.frame.1.best_effort_timestamp=0
 +packets_and_frames.frame.1.best_effort_timestamp_time="0.000000"
 +packets_and_frames.frame.1.pkt_duration=2048
 +packets_and_frames.frame.1.pkt_duration_time="0.040000"
- packets_and_frames.packet.2.pos="233138"
++packets_and_frames.frame.1.pkt_pos="2722"
 +packets_and_frames.frame.1.pkt_size="230400"
 +packets_and_frames.frame.1.width=320
 +packets_and_frames.frame.1.height=240
 +packets_and_frames.frame.1.pix_fmt="rgb24"
 +packets_and_frames.frame.1.sample_aspect_ratio="1:1"
 +packets_and_frames.frame.1.pict_type="I"
 +packets_and_frames.frame.1.coded_picture_number=0
 +packets_and_frames.frame.1.display_picture_number=0
 +packets_and_frames.frame.1.interlaced_frame=0
 +packets_and_frames.frame.1.top_field_first=0
 +packets_and_frames.frame.1.repeat_pict=0
 +packets_and_frames.packet.2.codec_type="video"
 +packets_and_frames.packet.2.stream_index=2
 +packets_and_frames.packet.2.pts=0
 +packets_and_frames.packet.2.pts_time="0.000000"
 +packets_and_frames.packet.2.dts=0
 +packets_and_frames.packet.2.dts_time="0.000000"
 +packets_and_frames.packet.2.duration=2048
 +packets_and_frames.packet.2.duration_time="0.040000"
 +packets_and_frames.packet.2.convergence_duration="N/A"
 +packets_and_frames.packet.2.convergence_duration_time="N/A"
 +packets_and_frames.packet.2.size="30000"
- packets_and_frames.frame.2.pkt_pos="233138"
++packets_and_frames.packet.2.pos="233143"
 +packets_and_frames.packet.2.flags="K"
 +packets_and_frames.frame.2.media_type="video"
 +packets_and_frames.frame.2.stream_index=2
 +packets_and_frames.frame.2.key_frame=1
 +packets_and_frames.frame.2.pkt_pts=0
 +packets_and_frames.frame.2.pkt_pts_time="0.000000"
 +packets_and_frames.frame.2.pkt_dts=0
 +packets_and_frames.frame.2.pkt_dts_time="0.000000"
 +packets_and_frames.frame.2.best_effort_timestamp=0
 +packets_and_frames.frame.2.best_effort_timestamp_time="0.000000"
 +packets_and_frames.frame.2.pkt_duration=2048
 +packets_and_frames.frame.2.pkt_duration_time="0.040000"
- packets_and_frames.packet.3.pos="263143"
++packets_and_frames.frame.2.pkt_pos="233143"
 +packets_and_frames.frame.2.pkt_size="30000"
 +packets_and_frames.frame.2.width=100
 +packets_and_frames.frame.2.height=100
 +packets_and_frames.frame.2.pix_fmt="rgb24"
 +packets_and_frames.frame.2.sample_aspect_ratio="1:1"
 +packets_and_frames.frame.2.pict_type="I"
 +packets_and_frames.frame.2.coded_picture_number=0
 +packets_and_frames.frame.2.display_picture_number=0
 +packets_and_frames.frame.2.interlaced_frame=0
 +packets_and_frames.frame.2.top_field_first=0
 +packets_and_frames.frame.2.repeat_pict=0
 +packets_and_frames.packet.3.codec_type="audio"
 +packets_and_frames.packet.3.stream_index=0
 +packets_and_frames.packet.3.pts=1024
 +packets_and_frames.packet.3.pts_time="0.023220"
 +packets_and_frames.packet.3.dts=1024
 +packets_and_frames.packet.3.dts_time="0.023220"
 +packets_and_frames.packet.3.duration=1024
 +packets_and_frames.packet.3.duration_time="0.023220"
 +packets_and_frames.packet.3.convergence_duration="N/A"
 +packets_and_frames.packet.3.convergence_duration_time="N/A"
 +packets_and_frames.packet.3.size="2048"
- packets_and_frames.frame.3.pkt_pos="263143"
++packets_and_frames.packet.3.pos="263148"
 +packets_and_frames.packet.3.flags="K"
 +packets_and_frames.frame.3.media_type="audio"
 +packets_and_frames.frame.3.stream_index=0
 +packets_and_frames.frame.3.key_frame=1
 +packets_and_frames.frame.3.pkt_pts=1024
 +packets_and_frames.frame.3.pkt_pts_time="0.023220"
 +packets_and_frames.frame.3.pkt_dts=1024
 +packets_and_frames.frame.3.pkt_dts_time="0.023220"
 +packets_and_frames.frame.3.best_effort_timestamp=1024
 +packets_and_frames.frame.3.best_effort_timestamp_time="0.023220"
 +packets_and_frames.frame.3.pkt_duration=1024
 +packets_and_frames.frame.3.pkt_duration_time="0.023220"
- packets_and_frames.packet.4.pos="265221"
++packets_and_frames.frame.3.pkt_pos="263148"
 +packets_and_frames.frame.3.pkt_size="2048"
 +packets_and_frames.frame.3.sample_fmt="s16"
 +packets_and_frames.frame.3.nb_samples=1024
 +packets_and_frames.frame.3.channels=1
 +packets_and_frames.frame.3.channel_layout="unknown"
 +packets_and_frames.packet.4.codec_type="video"
 +packets_and_frames.packet.4.stream_index=1
 +packets_and_frames.packet.4.pts=2048
 +packets_and_frames.packet.4.pts_time="0.040000"
 +packets_and_frames.packet.4.dts=2048
 +packets_and_frames.packet.4.dts_time="0.040000"
 +packets_and_frames.packet.4.duration=2048
 +packets_and_frames.packet.4.duration_time="0.040000"
 +packets_and_frames.packet.4.convergence_duration="N/A"
 +packets_and_frames.packet.4.convergence_duration_time="N/A"
 +packets_and_frames.packet.4.size="230400"
- packets_and_frames.frame.4.pkt_pos="265221"
++packets_and_frames.packet.4.pos="265226"
 +packets_and_frames.packet.4.flags="K"
 +packets_and_frames.frame.4.media_type="video"
 +packets_and_frames.frame.4.stream_index=1
 +packets_and_frames.frame.4.key_frame=1
 +packets_and_frames.frame.4.pkt_pts=2048
 +packets_and_frames.frame.4.pkt_pts_time="0.040000"
 +packets_and_frames.frame.4.pkt_dts=2048
 +packets_and_frames.frame.4.pkt_dts_time="0.040000"
 +packets_and_frames.frame.4.best_effort_timestamp=2048
 +packets_and_frames.frame.4.best_effort_timestamp_time="0.040000"
 +packets_and_frames.frame.4.pkt_duration=2048
 +packets_and_frames.frame.4.pkt_duration_time="0.040000"
- packets_and_frames.packet.5.pos="495645"
++packets_and_frames.frame.4.pkt_pos="265226"
 +packets_and_frames.frame.4.pkt_size="230400"
 +packets_and_frames.frame.4.width=320
 +packets_and_frames.frame.4.height=240
 +packets_and_frames.frame.4.pix_fmt="rgb24"
 +packets_and_frames.frame.4.sample_aspect_ratio="1:1"
 +packets_and_frames.frame.4.pict_type="I"
 +packets_and_frames.frame.4.coded_picture_number=0
 +packets_and_frames.frame.4.display_picture_number=0
 +packets_and_frames.frame.4.interlaced_frame=0
 +packets_and_frames.frame.4.top_field_first=0
 +packets_and_frames.frame.4.repeat_pict=0
 +packets_and_frames.packet.5.codec_type="video"
 +packets_and_frames.packet.5.stream_index=2
 +packets_and_frames.packet.5.pts=2048
 +packets_and_frames.packet.5.pts_time="0.040000"
 +packets_and_frames.packet.5.dts=2048
 +packets_and_frames.packet.5.dts_time="0.040000"
 +packets_and_frames.packet.5.duration=2048
 +packets_and_frames.packet.5.duration_time="0.040000"
 +packets_and_frames.packet.5.convergence_duration="N/A"
 +packets_and_frames.packet.5.convergence_duration_time="N/A"
 +packets_and_frames.packet.5.size="30000"
- packets_and_frames.frame.5.pkt_pos="495645"
++packets_and_frames.packet.5.pos="495650"
 +packets_and_frames.packet.5.flags="K"
 +packets_and_frames.frame.5.media_type="video"
 +packets_and_frames.frame.5.stream_index=2
 +packets_and_frames.frame.5.key_frame=1
 +packets_and_frames.frame.5.pkt_pts=2048
 +packets_and_frames.frame.5.pkt_pts_time="0.040000"
 +packets_and_frames.frame.5.pkt_dts=2048
 +packets_and_frames.frame.5.pkt_dts_time="0.040000"
 +packets_and_frames.frame.5.best_effort_timestamp=2048
 +packets_and_frames.frame.5.best_effort_timestamp_time="0.040000"
 +packets_and_frames.frame.5.pkt_duration=2048
 +packets_and_frames.frame.5.pkt_duration_time="0.040000"
- packets_and_frames.packet.6.pos="525650"
++packets_and_frames.frame.5.pkt_pos="495650"
 +packets_and_frames.frame.5.pkt_size="30000"
 +packets_and_frames.frame.5.width=100
 +packets_and_frames.frame.5.height=100
 +packets_and_frames.frame.5.pix_fmt="rgb24"
 +packets_and_frames.frame.5.sample_aspect_ratio="1:1"
 +packets_and_frames.frame.5.pict_type="I"
 +packets_and_frames.frame.5.coded_picture_number=0
 +packets_and_frames.frame.5.display_picture_number=0
 +packets_and_frames.frame.5.interlaced_frame=0
 +packets_and_frames.frame.5.top_field_first=0
 +packets_and_frames.frame.5.repeat_pict=0
 +packets_and_frames.packet.6.codec_type="audio"
 +packets_and_frames.packet.6.stream_index=0
 +packets_and_frames.packet.6.pts=2048
 +packets_and_frames.packet.6.pts_time="0.046440"
 +packets_and_frames.packet.6.dts=2048
 +packets_and_frames.packet.6.dts_time="0.046440"
 +packets_and_frames.packet.6.duration=1024
 +packets_and_frames.packet.6.duration_time="0.023220"
 +packets_and_frames.packet.6.convergence_duration="N/A"
 +packets_and_frames.packet.6.convergence_duration_time="N/A"
 +packets_and_frames.packet.6.size="2048"
- packets_and_frames.frame.6.pkt_pos="525650"
++packets_and_frames.packet.6.pos="525655"
 +packets_and_frames.packet.6.flags="K"
 +packets_and_frames.frame.6.media_type="audio"
 +packets_and_frames.frame.6.stream_index=0
 +packets_and_frames.frame.6.key_frame=1
 +packets_and_frames.frame.6.pkt_pts=2048
 +packets_and_frames.frame.6.pkt_pts_time="0.046440"
 +packets_and_frames.frame.6.pkt_dts=2048
 +packets_and_frames.frame.6.pkt_dts_time="0.046440"
 +packets_and_frames.frame.6.best_effort_timestamp=2048
 +packets_and_frames.frame.6.best_effort_timestamp_time="0.046440"
 +packets_and_frames.frame.6.pkt_duration=1024
 +packets_and_frames.frame.6.pkt_duration_time="0.023220"
- packets_and_frames.packet.7.pos="527721"
++packets_and_frames.frame.6.pkt_pos="525655"
 +packets_and_frames.frame.6.pkt_size="2048"
 +packets_and_frames.frame.6.sample_fmt="s16"
 +packets_and_frames.frame.6.nb_samples=1024
 +packets_and_frames.frame.6.channels=1
 +packets_and_frames.frame.6.channel_layout="unknown"
 +packets_and_frames.packet.7.codec_type="audio"
 +packets_and_frames.packet.7.stream_index=0
 +packets_and_frames.packet.7.pts=3072
 +packets_and_frames.packet.7.pts_time="0.069660"
 +packets_and_frames.packet.7.dts=3072
 +packets_and_frames.packet.7.dts_time="0.069660"
 +packets_and_frames.packet.7.duration=1024
 +packets_and_frames.packet.7.duration_time="0.023220"
 +packets_and_frames.packet.7.convergence_duration="N/A"
 +packets_and_frames.packet.7.convergence_duration_time="N/A"
 +packets_and_frames.packet.7.size="2048"
- packets_and_frames.frame.7.pkt_pos="527721"
++packets_and_frames.packet.7.pos="527726"
 +packets_and_frames.packet.7.flags="K"
 +packets_and_frames.frame.7.media_type="audio"
 +packets_and_frames.frame.7.stream_index=0
 +packets_and_frames.frame.7.key_frame=1
 +packets_and_frames.frame.7.pkt_pts=3072
 +packets_and_frames.frame.7.pkt_pts_time="0.069660"
 +packets_and_frames.frame.7.pkt_dts=3072
 +packets_and_frames.frame.7.pkt_dts_time="0.069660"
 +packets_and_frames.frame.7.best_effort_timestamp=3072
 +packets_and_frames.frame.7.best_effort_timestamp_time="0.069660"
 +packets_and_frames.frame.7.pkt_duration=1024
 +packets_and_frames.frame.7.pkt_duration_time="0.023220"
- packets_and_frames.packet.8.pos="529799"
++packets_and_frames.frame.7.pkt_pos="527726"
 +packets_and_frames.frame.7.pkt_size="2048"
 +packets_and_frames.frame.7.sample_fmt="s16"
 +packets_and_frames.frame.7.nb_samples=1024
 +packets_and_frames.frame.7.channels=1
 +packets_and_frames.frame.7.channel_layout="unknown"
 +packets_and_frames.packet.8.codec_type="video"
 +packets_and_frames.packet.8.stream_index=1
 +packets_and_frames.packet.8.pts=4096
 +packets_and_frames.packet.8.pts_time="0.080000"
 +packets_and_frames.packet.8.dts=4096
 +packets_and_frames.packet.8.dts_time="0.080000"
 +packets_and_frames.packet.8.duration=2048
 +packets_and_frames.packet.8.duration_time="0.040000"
 +packets_and_frames.packet.8.convergence_duration="N/A"
 +packets_and_frames.packet.8.convergence_duration_time="N/A"
 +packets_and_frames.packet.8.size="230400"
- packets_and_frames.frame.8.pkt_pos="529799"
++packets_and_frames.packet.8.pos="529804"
 +packets_and_frames.packet.8.flags="K"
 +packets_and_frames.frame.8.media_type="video"
 +packets_and_frames.frame.8.stream_index=1
 +packets_and_frames.frame.8.key_frame=1
 +packets_and_frames.frame.8.pkt_pts=4096
 +packets_and_frames.frame.8.pkt_pts_time="0.080000"
 +packets_and_frames.frame.8.pkt_dts=4096
 +packets_and_frames.frame.8.pkt_dts_time="0.080000"
 +packets_and_frames.frame.8.best_effort_timestamp=4096
 +packets_and_frames.frame.8.best_effort_timestamp_time="0.080000"
 +packets_and_frames.frame.8.pkt_duration=2048
 +packets_and_frames.frame.8.pkt_duration_time="0.040000"
- packets_and_frames.packet.9.pos="760223"
++packets_and_frames.frame.8.pkt_pos="529804"
 +packets_and_frames.frame.8.pkt_size="230400"
 +packets_and_frames.frame.8.width=320
 +packets_and_frames.frame.8.height=240
 +packets_and_frames.frame.8.pix_fmt="rgb24"
 +packets_and_frames.frame.8.sample_aspect_ratio="1:1"
 +packets_and_frames.frame.8.pict_type="I"
 +packets_and_frames.frame.8.coded_picture_number=0
 +packets_and_frames.frame.8.display_picture_number=0
 +packets_and_frames.frame.8.interlaced_frame=0
 +packets_and_frames.frame.8.top_field_first=0
 +packets_and_frames.frame.8.repeat_pict=0
 +packets_and_frames.packet.9.codec_type="video"
 +packets_and_frames.packet.9.stream_index=2
 +packets_and_frames.packet.9.pts=4096
 +packets_and_frames.packet.9.pts_time="0.080000"
 +packets_and_frames.packet.9.dts=4096
 +packets_and_frames.packet.9.dts_time="0.080000"
 +packets_and_frames.packet.9.duration=2048
 +packets_and_frames.packet.9.duration_time="0.040000"
 +packets_and_frames.packet.9.convergence_duration="N/A"
 +packets_and_frames.packet.9.convergence_duration_time="N/A"
 +packets_and_frames.packet.9.size="30000"
- packets_and_frames.frame.9.pkt_pos="760223"
++packets_and_frames.packet.9.pos="760228"
 +packets_and_frames.packet.9.flags="K"
 +packets_and_frames.frame.9.media_type="video"
 +packets_and_frames.frame.9.stream_index=2
 +packets_and_frames.frame.9.key_frame=1
 +packets_and_frames.frame.9.pkt_pts=4096
 +packets_and_frames.frame.9.pkt_pts_time="0.080000"
 +packets_and_frames.frame.9.pkt_dts=4096
 +packets_and_frames.frame.9.pkt_dts_time="0.080000"
 +packets_and_frames.frame.9.best_effort_timestamp=4096
 +packets_and_frames.frame.9.best_effort_timestamp_time="0.080000"
 +packets_and_frames.frame.9.pkt_duration=2048
 +packets_and_frames.frame.9.pkt_duration_time="0.040000"
- packets_and_frames.packet.10.pos="790228"
++packets_and_frames.frame.9.pkt_pos="760228"
 +packets_and_frames.frame.9.pkt_size="30000"
 +packets_and_frames.frame.9.width=100
 +packets_and_frames.frame.9.height=100
 +packets_and_frames.frame.9.pix_fmt="rgb24"
 +packets_and_frames.frame.9.sample_aspect_ratio="1:1"
 +packets_and_frames.frame.9.pict_type="I"
 +packets_and_frames.frame.9.coded_picture_number=0
 +packets_and_frames.frame.9.display_picture_number=0
 +packets_and_frames.frame.9.interlaced_frame=0
 +packets_and_frames.frame.9.top_field_first=0
 +packets_and_frames.frame.9.repeat_pict=0
 +packets_and_frames.packet.10.codec_type="audio"
 +packets_and_frames.packet.10.stream_index=0
 +packets_and_frames.packet.10.pts=4096
 +packets_and_frames.packet.10.pts_time="0.092880"
 +packets_and_frames.packet.10.dts=4096
 +packets_and_frames.packet.10.dts_time="0.092880"
 +packets_and_frames.packet.10.duration=1024
 +packets_and_frames.packet.10.duration_time="0.023220"
 +packets_and_frames.packet.10.convergence_duration="N/A"
 +packets_and_frames.packet.10.convergence_duration_time="N/A"
 +packets_and_frames.packet.10.size="2048"
- packets_and_frames.frame.10.pkt_pos="790228"
++packets_and_frames.packet.10.pos="790233"
 +packets_and_frames.packet.10.flags="K"
 +packets_and_frames.frame.10.media_type="audio"
 +packets_and_frames.frame.10.stream_index=0
 +packets_and_frames.frame.10.key_frame=1
 +packets_and_frames.frame.10.pkt_pts=4096
 +packets_and_frames.frame.10.pkt_pts_time="0.092880"
 +packets_and_frames.frame.10.pkt_dts=4096
 +packets_and_frames.frame.10.pkt_dts_time="0.092880"
 +packets_and_frames.frame.10.best_effort_timestamp=4096
 +packets_and_frames.frame.10.best_effort_timestamp_time="0.092880"
 +packets_and_frames.frame.10.pkt_duration=1024
 +packets_and_frames.frame.10.pkt_duration_time="0.023220"
- packets_and_frames.packet.11.pos="792299"
++packets_and_frames.frame.10.pkt_pos="790233"
 +packets_and_frames.frame.10.pkt_size="2048"
 +packets_and_frames.frame.10.sample_fmt="s16"
 +packets_and_frames.frame.10.nb_samples=1024
 +packets_and_frames.frame.10.channels=1
 +packets_and_frames.frame.10.channel_layout="unknown"
 +packets_and_frames.packet.11.codec_type="audio"
 +packets_and_frames.packet.11.stream_index=0
 +packets_and_frames.packet.11.pts=5120
 +packets_and_frames.packet.11.pts_time="0.116100"
 +packets_and_frames.packet.11.dts=5120
 +packets_and_frames.packet.11.dts_time="0.116100"
 +packets_and_frames.packet.11.duration=1024
 +packets_and_frames.packet.11.duration_time="0.023220"
 +packets_and_frames.packet.11.convergence_duration="N/A"
 +packets_and_frames.packet.11.convergence_duration_time="N/A"
 +packets_and_frames.packet.11.size="2048"
- packets_and_frames.frame.11.pkt_pos="792299"
++packets_and_frames.packet.11.pos="792304"
 +packets_and_frames.packet.11.flags="K"
 +packets_and_frames.frame.11.media_type="audio"
 +packets_and_frames.frame.11.stream_index=0
 +packets_and_frames.frame.11.key_frame=1
 +packets_and_frames.frame.11.pkt_pts=5120
 +packets_and_frames.frame.11.pkt_pts_time="0.116100"
 +packets_and_frames.frame.11.pkt_dts=5120
 +packets_and_frames.frame.11.pkt_dts_time="0.116100"
 +packets_and_frames.frame.11.best_effort_timestamp=5120
 +packets_and_frames.frame.11.best_effort_timestamp_time="0.116100"
 +packets_and_frames.frame.11.pkt_duration=1024
 +packets_and_frames.frame.11.pkt_duration_time="0.023220"
- packets_and_frames.packet.12.pos="794377"
++packets_and_frames.frame.11.pkt_pos="792304"
 +packets_and_frames.frame.11.pkt_size="2048"
 +packets_and_frames.frame.11.sample_fmt="s16"
 +packets_and_frames.frame.11.nb_samples=1024
 +packets_and_frames.frame.11.channels=1
 +packets_and_frames.frame.11.channel_layout="unknown"
 +packets_and_frames.packet.12.codec_type="video"
 +packets_and_frames.packet.12.stream_index=1
 +packets_and_frames.packet.12.pts=6144
 +packets_and_frames.packet.12.pts_time="0.120000"
 +packets_and_frames.packet.12.dts=6144
 +packets_and_frames.packet.12.dts_time="0.120000"
 +packets_and_frames.packet.12.duration=2048
 +packets_and_frames.packet.12.duration_time="0.040000"
 +packets_and_frames.packet.12.convergence_duration="N/A"
 +packets_and_frames.packet.12.convergence_duration_time="N/A"
 +packets_and_frames.packet.12.size="230400"
- packets_and_frames.frame.12.pkt_pos="794377"
++packets_and_frames.packet.12.pos="794382"
 +packets_and_frames.packet.12.flags="K"
 +packets_and_frames.frame.12.media_type="video"
 +packets_and_frames.frame.12.stream_index=1
 +packets_and_frames.frame.12.key_frame=1
 +packets_and_frames.frame.12.pkt_pts=6144
 +packets_and_frames.frame.12.pkt_pts_time="0.120000"
 +packets_and_frames.frame.12.pkt_dts=6144
 +packets_and_frames.frame.12.pkt_dts_time="0.120000"
 +packets_and_frames.frame.12.best_effort_timestamp=6144
 +packets_and_frames.frame.12.best_effort_timestamp_time="0.120000"
 +packets_and_frames.frame.12.pkt_duration=2048
 +packets_and_frames.frame.12.pkt_duration_time="0.040000"
- packets_and_frames.packet.13.pos="1024801"
++packets_and_frames.frame.12.pkt_pos="794382"
 +packets_and_frames.frame.12.pkt_size="230400"
 +packets_and_frames.frame.12.width=320
 +packets_and_frames.frame.12.height=240
 +packets_and_frames.frame.12.pix_fmt="rgb24"
 +packets_and_frames.frame.12.sample_aspect_ratio="1:1"
 +packets_and_frames.frame.12.pict_type="I"
 +packets_and_frames.frame.12.coded_picture_number=0
 +packets_and_frames.frame.12.display_picture_number=0
 +packets_and_frames.frame.12.interlaced_frame=0
 +packets_and_frames.frame.12.top_field_first=0
 +packets_and_frames.frame.12.repeat_pict=0
 +packets_and_frames.packet.13.codec_type="video"
 +packets_and_frames.packet.13.stream_index=2
 +packets_and_frames.packet.13.pts=6144
 +packets_and_frames.packet.13.pts_time="0.120000"
 +packets_and_frames.packet.13.dts=6144
 +packets_and_frames.packet.13.dts_time="0.120000"
 +packets_and_frames.packet.13.duration=2048
 +packets_and_frames.packet.13.duration_time="0.040000"
 +packets_and_frames.packet.13.convergence_duration="N/A"
 +packets_and_frames.packet.13.convergence_duration_time="N/A"
 +packets_and_frames.packet.13.size="30000"
- packets_and_frames.frame.13.pkt_pos="1024801"
++packets_and_frames.packet.13.pos="1024806"
 +packets_and_frames.packet.13.flags="K"
 +packets_and_frames.frame.13.media_type="video"
 +packets_and_frames.frame.13.stream_index=2
 +packets_and_frames.frame.13.key_frame=1
 +packets_and_frames.frame.13.pkt_pts=6144
 +packets_and_frames.frame.13.pkt_pts_time="0.120000"
 +packets_and_frames.frame.13.pkt_dts=6144
 +packets_and_frames.frame.13.pkt_dts_time="0.120000"
 +packets_and_frames.frame.13.best_effort_timestamp=6144
 +packets_and_frames.frame.13.best_effort_timestamp_time="0.120000"
 +packets_and_frames.frame.13.pkt_duration=2048
 +packets_and_frames.frame.13.pkt_duration_time="0.040000"
- format.size="1054882"
- format.bit_rate="70325466"
++packets_and_frames.frame.13.pkt_pos="1024806"
 +packets_and_frames.frame.13.pkt_size="30000"
 +packets_and_frames.frame.13.width=100
 +packets_and_frames.frame.13.height=100
 +packets_and_frames.frame.13.pix_fmt="rgb24"
 +packets_and_frames.frame.13.sample_aspect_ratio="1:1"
 +packets_and_frames.frame.13.pict_type="I"
 +packets_and_frames.frame.13.coded_picture_number=0
 +packets_and_frames.frame.13.display_picture_number=0
 +packets_and_frames.frame.13.interlaced_frame=0
 +packets_and_frames.frame.13.top_field_first=0
 +packets_and_frames.frame.13.repeat_pict=0
 +streams.stream.0.index=0
 +streams.stream.0.codec_name="pcm_s16le"
 +streams.stream.0.profile="unknown"
 +streams.stream.0.codec_type="audio"
 +streams.stream.0.codec_time_base="1/44100"
 +streams.stream.0.codec_tag_string="PSD[16]"
 +streams.stream.0.codec_tag="0x10445350"
 +streams.stream.0.sample_fmt="s16"
 +streams.stream.0.sample_rate="44100"
 +streams.stream.0.channels=1
 +streams.stream.0.channel_layout="unknown"
 +streams.stream.0.bits_per_sample=16
 +streams.stream.0.id="N/A"
 +streams.stream.0.r_frame_rate="0/0"
 +streams.stream.0.avg_frame_rate="0/0"
 +streams.stream.0.time_base="1/44100"
 +streams.stream.0.start_pts=0
 +streams.stream.0.start_time="0.000000"
 +streams.stream.0.duration_ts="N/A"
 +streams.stream.0.duration="N/A"
 +streams.stream.0.bit_rate="705600"
 +streams.stream.0.max_bit_rate="N/A"
 +streams.stream.0.bits_per_raw_sample="N/A"
 +streams.stream.0.nb_frames="N/A"
 +streams.stream.0.nb_read_frames="6"
 +streams.stream.0.nb_read_packets="6"
 +streams.stream.0.disposition.default=0
 +streams.stream.0.disposition.dub=0
 +streams.stream.0.disposition.original=0
 +streams.stream.0.disposition.comment=0
 +streams.stream.0.disposition.lyrics=0
 +streams.stream.0.disposition.karaoke=0
 +streams.stream.0.disposition.forced=0
 +streams.stream.0.disposition.hearing_impaired=0
 +streams.stream.0.disposition.visual_impaired=0
 +streams.stream.0.disposition.clean_effects=0
 +streams.stream.0.disposition.attached_pic=0
 +streams.stream.0.tags.E="mc²"
 +streams.stream.0.tags.encoder="Lavc pcm_s16le"
 +streams.stream.1.index=1
 +streams.stream.1.codec_name="rawvideo"
 +streams.stream.1.profile="unknown"
 +streams.stream.1.codec_type="video"
 +streams.stream.1.codec_time_base="1/51200"
 +streams.stream.1.codec_tag_string="RGB[24]"
 +streams.stream.1.codec_tag="0x18424752"
 +streams.stream.1.width=320
 +streams.stream.1.height=240
 +streams.stream.1.coded_width=320
 +streams.stream.1.coded_height=240
 +streams.stream.1.has_b_frames=0
 +streams.stream.1.sample_aspect_ratio="1:1"
 +streams.stream.1.display_aspect_ratio="4:3"
 +streams.stream.1.pix_fmt="rgb24"
 +streams.stream.1.level=-99
 +streams.stream.1.color_range="N/A"
 +streams.stream.1.color_space="unknown"
 +streams.stream.1.color_transfer="unknown"
 +streams.stream.1.color_primaries="unknown"
 +streams.stream.1.chroma_location="unspecified"
 +streams.stream.1.timecode="N/A"
 +streams.stream.1.refs=1
 +streams.stream.1.id="N/A"
 +streams.stream.1.r_frame_rate="25/1"
 +streams.stream.1.avg_frame_rate="25/1"
 +streams.stream.1.time_base="1/51200"
 +streams.stream.1.start_pts=0
 +streams.stream.1.start_time="0.000000"
 +streams.stream.1.duration_ts="N/A"
 +streams.stream.1.duration="N/A"
 +streams.stream.1.bit_rate="N/A"
 +streams.stream.1.max_bit_rate="N/A"
 +streams.stream.1.bits_per_raw_sample="N/A"
 +streams.stream.1.nb_frames="N/A"
 +streams.stream.1.nb_read_frames="4"
 +streams.stream.1.nb_read_packets="4"
 +streams.stream.1.disposition.default=0
 +streams.stream.1.disposition.dub=0
 +streams.stream.1.disposition.original=0
 +streams.stream.1.disposition.comment=0
 +streams.stream.1.disposition.lyrics=0
 +streams.stream.1.disposition.karaoke=0
 +streams.stream.1.disposition.forced=0
 +streams.stream.1.disposition.hearing_impaired=0
 +streams.stream.1.disposition.visual_impaired=0
 +streams.stream.1.disposition.clean_effects=0
 +streams.stream.1.disposition.attached_pic=0
 +streams.stream.1.tags.title="foobar"
 +streams.stream.1.tags.duration_ts="field-and-tags-conflict-attempt"
 +streams.stream.1.tags.encoder="Lavc rawvideo"
 +streams.stream.2.index=2
 +streams.stream.2.codec_name="rawvideo"
 +streams.stream.2.profile="unknown"
 +streams.stream.2.codec_type="video"
 +streams.stream.2.codec_time_base="1/51200"
 +streams.stream.2.codec_tag_string="RGB[24]"
 +streams.stream.2.codec_tag="0x18424752"
 +streams.stream.2.width=100
 +streams.stream.2.height=100
 +streams.stream.2.coded_width=100
 +streams.stream.2.coded_height=100
 +streams.stream.2.has_b_frames=0
 +streams.stream.2.sample_aspect_ratio="1:1"
 +streams.stream.2.display_aspect_ratio="1:1"
 +streams.stream.2.pix_fmt="rgb24"
 +streams.stream.2.level=-99
 +streams.stream.2.color_range="N/A"
 +streams.stream.2.color_space="unknown"
 +streams.stream.2.color_transfer="unknown"
 +streams.stream.2.color_primaries="unknown"
 +streams.stream.2.chroma_location="unspecified"
 +streams.stream.2.timecode="N/A"
 +streams.stream.2.refs=1
 +streams.stream.2.id="N/A"
 +streams.stream.2.r_frame_rate="25/1"
 +streams.stream.2.avg_frame_rate="25/1"
 +streams.stream.2.time_base="1/51200"
 +streams.stream.2.start_pts=0
 +streams.stream.2.start_time="0.000000"
 +streams.stream.2.duration_ts="N/A"
 +streams.stream.2.duration="N/A"
 +streams.stream.2.bit_rate="N/A"
 +streams.stream.2.max_bit_rate="N/A"
 +streams.stream.2.bits_per_raw_sample="N/A"
 +streams.stream.2.nb_frames="N/A"
 +streams.stream.2.nb_read_frames="4"
 +streams.stream.2.nb_read_packets="4"
 +streams.stream.2.disposition.default=0
 +streams.stream.2.disposition.dub=0
 +streams.stream.2.disposition.original=0
 +streams.stream.2.disposition.comment=0
 +streams.stream.2.disposition.lyrics=0
 +streams.stream.2.disposition.karaoke=0
 +streams.stream.2.disposition.forced=0
 +streams.stream.2.disposition.hearing_impaired=0
 +streams.stream.2.disposition.visual_impaired=0
 +streams.stream.2.disposition.clean_effects=0
 +streams.stream.2.disposition.attached_pic=0
 +streams.stream.2.tags.encoder="Lavc rawvideo"
 +format.filename="tests/data/ffprobe-test.nut"
 +format.nb_streams=3
 +format.nb_programs=0
 +format.format_name="nut"
 +format.start_time="0.000000"
 +format.duration="0.120000"
++format.size="1054887"
++format.bit_rate="70325800"
 +format.probe_score=100
 +format.tags.title="ffprobe test file"
 +format.tags.comment="'A comment with CSV, XML & JSON special chars': <tag value=\"x\">"
 +format.tags.comment2="I ♥ Üñîçød€"
index db5ea8b,0000000..cc556a4
mode 100644,000000..100644
--- /dev/null
@@@ -1,698 -1,0 +1,698 @@@
- pos=642
 +# ffprobe output
 +
 +[packets_and_frames.packet.0]
 +codec_type=audio
 +stream_index=0
 +pts=0
 +pts_time=0.000000
 +dts=0
 +dts_time=0.000000
 +duration=1024
 +duration_time=0.023220
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=2048
- pkt_pos=642
++pos=647
 +flags=K
 +
 +[packets_and_frames.frame.0]
 +media_type=audio
 +stream_index=0
 +key_frame=1
 +pkt_pts=0
 +pkt_pts_time=0.000000
 +pkt_dts=0
 +pkt_dts_time=0.000000
 +best_effort_timestamp=0
 +best_effort_timestamp_time=0.000000
 +pkt_duration=1024
 +pkt_duration_time=0.023220
- pos=2717
++pkt_pos=647
 +pkt_size=2048
 +sample_fmt=s16
 +nb_samples=1024
 +channels=1
 +channel_layout=unknown
 +
 +[packets_and_frames.packet.1]
 +codec_type=video
 +stream_index=1
 +pts=0
 +pts_time=0.000000
 +dts=0
 +dts_time=0.000000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=230400
- pkt_pos=2717
++pos=2722
 +flags=K
 +
 +[packets_and_frames.frame.1]
 +media_type=video
 +stream_index=1
 +key_frame=1
 +pkt_pts=0
 +pkt_pts_time=0.000000
 +pkt_dts=0
 +pkt_dts_time=0.000000
 +best_effort_timestamp=0
 +best_effort_timestamp_time=0.000000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=233138
++pkt_pos=2722
 +pkt_size=230400
 +width=320
 +height=240
 +pix_fmt=rgb24
 +sample_aspect_ratio=1\:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +
 +[packets_and_frames.packet.2]
 +codec_type=video
 +stream_index=2
 +pts=0
 +pts_time=0.000000
 +dts=0
 +dts_time=0.000000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=30000
- pkt_pos=233138
++pos=233143
 +flags=K
 +
 +[packets_and_frames.frame.2]
 +media_type=video
 +stream_index=2
 +key_frame=1
 +pkt_pts=0
 +pkt_pts_time=0.000000
 +pkt_dts=0
 +pkt_dts_time=0.000000
 +best_effort_timestamp=0
 +best_effort_timestamp_time=0.000000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=263143
++pkt_pos=233143
 +pkt_size=30000
 +width=100
 +height=100
 +pix_fmt=rgb24
 +sample_aspect_ratio=1\:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +
 +[packets_and_frames.packet.3]
 +codec_type=audio
 +stream_index=0
 +pts=1024
 +pts_time=0.023220
 +dts=1024
 +dts_time=0.023220
 +duration=1024
 +duration_time=0.023220
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=2048
- pkt_pos=263143
++pos=263148
 +flags=K
 +
 +[packets_and_frames.frame.3]
 +media_type=audio
 +stream_index=0
 +key_frame=1
 +pkt_pts=1024
 +pkt_pts_time=0.023220
 +pkt_dts=1024
 +pkt_dts_time=0.023220
 +best_effort_timestamp=1024
 +best_effort_timestamp_time=0.023220
 +pkt_duration=1024
 +pkt_duration_time=0.023220
- pos=265221
++pkt_pos=263148
 +pkt_size=2048
 +sample_fmt=s16
 +nb_samples=1024
 +channels=1
 +channel_layout=unknown
 +
 +[packets_and_frames.packet.4]
 +codec_type=video
 +stream_index=1
 +pts=2048
 +pts_time=0.040000
 +dts=2048
 +dts_time=0.040000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=230400
- pkt_pos=265221
++pos=265226
 +flags=K
 +
 +[packets_and_frames.frame.4]
 +media_type=video
 +stream_index=1
 +key_frame=1
 +pkt_pts=2048
 +pkt_pts_time=0.040000
 +pkt_dts=2048
 +pkt_dts_time=0.040000
 +best_effort_timestamp=2048
 +best_effort_timestamp_time=0.040000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=495645
++pkt_pos=265226
 +pkt_size=230400
 +width=320
 +height=240
 +pix_fmt=rgb24
 +sample_aspect_ratio=1\:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +
 +[packets_and_frames.packet.5]
 +codec_type=video
 +stream_index=2
 +pts=2048
 +pts_time=0.040000
 +dts=2048
 +dts_time=0.040000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=30000
- pkt_pos=495645
++pos=495650
 +flags=K
 +
 +[packets_and_frames.frame.5]
 +media_type=video
 +stream_index=2
 +key_frame=1
 +pkt_pts=2048
 +pkt_pts_time=0.040000
 +pkt_dts=2048
 +pkt_dts_time=0.040000
 +best_effort_timestamp=2048
 +best_effort_timestamp_time=0.040000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=525650
++pkt_pos=495650
 +pkt_size=30000
 +width=100
 +height=100
 +pix_fmt=rgb24
 +sample_aspect_ratio=1\:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +
 +[packets_and_frames.packet.6]
 +codec_type=audio
 +stream_index=0
 +pts=2048
 +pts_time=0.046440
 +dts=2048
 +dts_time=0.046440
 +duration=1024
 +duration_time=0.023220
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=2048
- pkt_pos=525650
++pos=525655
 +flags=K
 +
 +[packets_and_frames.frame.6]
 +media_type=audio
 +stream_index=0
 +key_frame=1
 +pkt_pts=2048
 +pkt_pts_time=0.046440
 +pkt_dts=2048
 +pkt_dts_time=0.046440
 +best_effort_timestamp=2048
 +best_effort_timestamp_time=0.046440
 +pkt_duration=1024
 +pkt_duration_time=0.023220
- pos=527721
++pkt_pos=525655
 +pkt_size=2048
 +sample_fmt=s16
 +nb_samples=1024
 +channels=1
 +channel_layout=unknown
 +
 +[packets_and_frames.packet.7]
 +codec_type=audio
 +stream_index=0
 +pts=3072
 +pts_time=0.069660
 +dts=3072
 +dts_time=0.069660
 +duration=1024
 +duration_time=0.023220
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=2048
- pkt_pos=527721
++pos=527726
 +flags=K
 +
 +[packets_and_frames.frame.7]
 +media_type=audio
 +stream_index=0
 +key_frame=1
 +pkt_pts=3072
 +pkt_pts_time=0.069660
 +pkt_dts=3072
 +pkt_dts_time=0.069660
 +best_effort_timestamp=3072
 +best_effort_timestamp_time=0.069660
 +pkt_duration=1024
 +pkt_duration_time=0.023220
- pos=529799
++pkt_pos=527726
 +pkt_size=2048
 +sample_fmt=s16
 +nb_samples=1024
 +channels=1
 +channel_layout=unknown
 +
 +[packets_and_frames.packet.8]
 +codec_type=video
 +stream_index=1
 +pts=4096
 +pts_time=0.080000
 +dts=4096
 +dts_time=0.080000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=230400
- pkt_pos=529799
++pos=529804
 +flags=K
 +
 +[packets_and_frames.frame.8]
 +media_type=video
 +stream_index=1
 +key_frame=1
 +pkt_pts=4096
 +pkt_pts_time=0.080000
 +pkt_dts=4096
 +pkt_dts_time=0.080000
 +best_effort_timestamp=4096
 +best_effort_timestamp_time=0.080000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=760223
++pkt_pos=529804
 +pkt_size=230400
 +width=320
 +height=240
 +pix_fmt=rgb24
 +sample_aspect_ratio=1\:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +
 +[packets_and_frames.packet.9]
 +codec_type=video
 +stream_index=2
 +pts=4096
 +pts_time=0.080000
 +dts=4096
 +dts_time=0.080000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=30000
- pkt_pos=760223
++pos=760228
 +flags=K
 +
 +[packets_and_frames.frame.9]
 +media_type=video
 +stream_index=2
 +key_frame=1
 +pkt_pts=4096
 +pkt_pts_time=0.080000
 +pkt_dts=4096
 +pkt_dts_time=0.080000
 +best_effort_timestamp=4096
 +best_effort_timestamp_time=0.080000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=790228
++pkt_pos=760228
 +pkt_size=30000
 +width=100
 +height=100
 +pix_fmt=rgb24
 +sample_aspect_ratio=1\:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +
 +[packets_and_frames.packet.10]
 +codec_type=audio
 +stream_index=0
 +pts=4096
 +pts_time=0.092880
 +dts=4096
 +dts_time=0.092880
 +duration=1024
 +duration_time=0.023220
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=2048
- pkt_pos=790228
++pos=790233
 +flags=K
 +
 +[packets_and_frames.frame.10]
 +media_type=audio
 +stream_index=0
 +key_frame=1
 +pkt_pts=4096
 +pkt_pts_time=0.092880
 +pkt_dts=4096
 +pkt_dts_time=0.092880
 +best_effort_timestamp=4096
 +best_effort_timestamp_time=0.092880
 +pkt_duration=1024
 +pkt_duration_time=0.023220
- pos=792299
++pkt_pos=790233
 +pkt_size=2048
 +sample_fmt=s16
 +nb_samples=1024
 +channels=1
 +channel_layout=unknown
 +
 +[packets_and_frames.packet.11]
 +codec_type=audio
 +stream_index=0
 +pts=5120
 +pts_time=0.116100
 +dts=5120
 +dts_time=0.116100
 +duration=1024
 +duration_time=0.023220
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=2048
- pkt_pos=792299
++pos=792304
 +flags=K
 +
 +[packets_and_frames.frame.11]
 +media_type=audio
 +stream_index=0
 +key_frame=1
 +pkt_pts=5120
 +pkt_pts_time=0.116100
 +pkt_dts=5120
 +pkt_dts_time=0.116100
 +best_effort_timestamp=5120
 +best_effort_timestamp_time=0.116100
 +pkt_duration=1024
 +pkt_duration_time=0.023220
- pos=794377
++pkt_pos=792304
 +pkt_size=2048
 +sample_fmt=s16
 +nb_samples=1024
 +channels=1
 +channel_layout=unknown
 +
 +[packets_and_frames.packet.12]
 +codec_type=video
 +stream_index=1
 +pts=6144
 +pts_time=0.120000
 +dts=6144
 +dts_time=0.120000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=230400
- pkt_pos=794377
++pos=794382
 +flags=K
 +
 +[packets_and_frames.frame.12]
 +media_type=video
 +stream_index=1
 +key_frame=1
 +pkt_pts=6144
 +pkt_pts_time=0.120000
 +pkt_dts=6144
 +pkt_dts_time=0.120000
 +best_effort_timestamp=6144
 +best_effort_timestamp_time=0.120000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- pos=1024801
++pkt_pos=794382
 +pkt_size=230400
 +width=320
 +height=240
 +pix_fmt=rgb24
 +sample_aspect_ratio=1\:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +
 +[packets_and_frames.packet.13]
 +codec_type=video
 +stream_index=2
 +pts=6144
 +pts_time=0.120000
 +dts=6144
 +dts_time=0.120000
 +duration=2048
 +duration_time=0.040000
 +convergence_duration=N/A
 +convergence_duration_time=N/A
 +size=30000
- pkt_pos=1024801
++pos=1024806
 +flags=K
 +
 +[packets_and_frames.frame.13]
 +media_type=video
 +stream_index=2
 +key_frame=1
 +pkt_pts=6144
 +pkt_pts_time=0.120000
 +pkt_dts=6144
 +pkt_dts_time=0.120000
 +best_effort_timestamp=6144
 +best_effort_timestamp_time=0.120000
 +pkt_duration=2048
 +pkt_duration_time=0.040000
- size=1054882
- bit_rate=70325466
++pkt_pos=1024806
 +pkt_size=30000
 +width=100
 +height=100
 +pix_fmt=rgb24
 +sample_aspect_ratio=1\:1
 +pict_type=I
 +coded_picture_number=0
 +display_picture_number=0
 +interlaced_frame=0
 +top_field_first=0
 +repeat_pict=0
 +
 +[streams.stream.0]
 +index=0
 +codec_name=pcm_s16le
 +profile=unknown
 +codec_type=audio
 +codec_time_base=1/44100
 +codec_tag_string=PSD[16]
 +codec_tag=0x10445350
 +sample_fmt=s16
 +sample_rate=44100
 +channels=1
 +channel_layout=unknown
 +bits_per_sample=16
 +id=N/A
 +r_frame_rate=0/0
 +avg_frame_rate=0/0
 +time_base=1/44100
 +start_pts=0
 +start_time=0.000000
 +duration_ts=N/A
 +duration=N/A
 +bit_rate=705600
 +max_bit_rate=N/A
 +bits_per_raw_sample=N/A
 +nb_frames=N/A
 +nb_read_frames=6
 +nb_read_packets=6
 +
 +[streams.stream.0.disposition]
 +default=0
 +dub=0
 +original=0
 +comment=0
 +lyrics=0
 +karaoke=0
 +forced=0
 +hearing_impaired=0
 +visual_impaired=0
 +clean_effects=0
 +attached_pic=0
 +
 +[streams.stream.0.tags]
 +E=mc²
 +encoder=Lavc pcm_s16le
 +
 +[streams.stream.1]
 +index=1
 +codec_name=rawvideo
 +profile=unknown
 +codec_type=video
 +codec_time_base=1/51200
 +codec_tag_string=RGB[24]
 +codec_tag=0x18424752
 +width=320
 +height=240
 +coded_width=320
 +coded_height=240
 +has_b_frames=0
 +sample_aspect_ratio=1\:1
 +display_aspect_ratio=4\:3
 +pix_fmt=rgb24
 +level=-99
 +color_range=N/A
 +color_space=unknown
 +color_transfer=unknown
 +color_primaries=unknown
 +chroma_location=unspecified
 +timecode=N/A
 +refs=1
 +id=N/A
 +r_frame_rate=25/1
 +avg_frame_rate=25/1
 +time_base=1/51200
 +start_pts=0
 +start_time=0.000000
 +duration_ts=N/A
 +duration=N/A
 +bit_rate=N/A
 +max_bit_rate=N/A
 +bits_per_raw_sample=N/A
 +nb_frames=N/A
 +nb_read_frames=4
 +nb_read_packets=4
 +
 +[streams.stream.1.disposition]
 +default=0
 +dub=0
 +original=0
 +comment=0
 +lyrics=0
 +karaoke=0
 +forced=0
 +hearing_impaired=0
 +visual_impaired=0
 +clean_effects=0
 +attached_pic=0
 +
 +[streams.stream.1.tags]
 +title=foobar
 +duration_ts=field-and-tags-conflict-attempt
 +encoder=Lavc rawvideo
 +
 +[streams.stream.2]
 +index=2
 +codec_name=rawvideo
 +profile=unknown
 +codec_type=video
 +codec_time_base=1/51200
 +codec_tag_string=RGB[24]
 +codec_tag=0x18424752
 +width=100
 +height=100
 +coded_width=100
 +coded_height=100
 +has_b_frames=0
 +sample_aspect_ratio=1\:1
 +display_aspect_ratio=1\:1
 +pix_fmt=rgb24
 +level=-99
 +color_range=N/A
 +color_space=unknown
 +color_transfer=unknown
 +color_primaries=unknown
 +chroma_location=unspecified
 +timecode=N/A
 +refs=1
 +id=N/A
 +r_frame_rate=25/1
 +avg_frame_rate=25/1
 +time_base=1/51200
 +start_pts=0
 +start_time=0.000000
 +duration_ts=N/A
 +duration=N/A
 +bit_rate=N/A
 +max_bit_rate=N/A
 +bits_per_raw_sample=N/A
 +nb_frames=N/A
 +nb_read_frames=4
 +nb_read_packets=4
 +
 +[streams.stream.2.disposition]
 +default=0
 +dub=0
 +original=0
 +comment=0
 +lyrics=0
 +karaoke=0
 +forced=0
 +hearing_impaired=0
 +visual_impaired=0
 +clean_effects=0
 +attached_pic=0
 +
 +[streams.stream.2.tags]
 +encoder=Lavc rawvideo
 +
 +[format]
 +filename=tests/data/ffprobe-test.nut
 +nb_streams=3
 +nb_programs=0
 +format_name=nut
 +start_time=0.000000
 +duration=0.120000
++size=1054887
++bit_rate=70325800
 +probe_score=100
 +
 +[format.tags]
 +title=ffprobe test file
 +comment='A comment with CSV, XML & JSON special chars'\: <tag value\="x">
 +comment2=I ♥ Üñîçød€
index 64108ce,0000000..34be907
mode 100644,000000..100644
--- /dev/null
@@@ -1,661 -1,0 +1,661 @@@
-             "pos": "642",
 +{
 +    "packets_and_frames": [
 +        {
 +            "type": "packet",
 +            "codec_type": "audio",
 +            "stream_index": 0,
 +            "pts": 0,
 +            "pts_time": "0.000000",
 +            "dts": 0,
 +            "dts_time": "0.000000",
 +            "duration": 1024,
 +            "duration_time": "0.023220",
 +            "size": "2048",
-             "pkt_pos": "642",
++            "pos": "647",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "audio",
 +            "stream_index": 0,
 +            "key_frame": 1,
 +            "pkt_pts": 0,
 +            "pkt_pts_time": "0.000000",
 +            "pkt_dts": 0,
 +            "pkt_dts_time": "0.000000",
 +            "best_effort_timestamp": 0,
 +            "best_effort_timestamp_time": "0.000000",
 +            "pkt_duration": 1024,
 +            "pkt_duration_time": "0.023220",
-             "pos": "2717",
++            "pkt_pos": "647",
 +            "pkt_size": "2048",
 +            "sample_fmt": "s16",
 +            "nb_samples": 1024,
 +            "channels": 1
 +        },
 +        {
 +            "type": "packet",
 +            "codec_type": "video",
 +            "stream_index": 1,
 +            "pts": 0,
 +            "pts_time": "0.000000",
 +            "dts": 0,
 +            "dts_time": "0.000000",
 +            "duration": 2048,
 +            "duration_time": "0.040000",
 +            "size": "230400",
-             "pkt_pos": "2717",
++            "pos": "2722",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "video",
 +            "stream_index": 1,
 +            "key_frame": 1,
 +            "pkt_pts": 0,
 +            "pkt_pts_time": "0.000000",
 +            "pkt_dts": 0,
 +            "pkt_dts_time": "0.000000",
 +            "best_effort_timestamp": 0,
 +            "best_effort_timestamp_time": "0.000000",
 +            "pkt_duration": 2048,
 +            "pkt_duration_time": "0.040000",
-             "pos": "233138",
++            "pkt_pos": "2722",
 +            "pkt_size": "230400",
 +            "width": 320,
 +            "height": 240,
 +            "pix_fmt": "rgb24",
 +            "sample_aspect_ratio": "1:1",
 +            "pict_type": "I",
 +            "coded_picture_number": 0,
 +            "display_picture_number": 0,
 +            "interlaced_frame": 0,
 +            "top_field_first": 0,
 +            "repeat_pict": 0
 +        },
 +        {
 +            "type": "packet",
 +            "codec_type": "video",
 +            "stream_index": 2,
 +            "pts": 0,
 +            "pts_time": "0.000000",
 +            "dts": 0,
 +            "dts_time": "0.000000",
 +            "duration": 2048,
 +            "duration_time": "0.040000",
 +            "size": "30000",
-             "pkt_pos": "233138",
++            "pos": "233143",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "video",
 +            "stream_index": 2,
 +            "key_frame": 1,
 +            "pkt_pts": 0,
 +            "pkt_pts_time": "0.000000",
 +            "pkt_dts": 0,
 +            "pkt_dts_time": "0.000000",
 +            "best_effort_timestamp": 0,
 +            "best_effort_timestamp_time": "0.000000",
 +            "pkt_duration": 2048,
 +            "pkt_duration_time": "0.040000",
-             "pos": "263143",
++            "pkt_pos": "233143",
 +            "pkt_size": "30000",
 +            "width": 100,
 +            "height": 100,
 +            "pix_fmt": "rgb24",
 +            "sample_aspect_ratio": "1:1",
 +            "pict_type": "I",
 +            "coded_picture_number": 0,
 +            "display_picture_number": 0,
 +            "interlaced_frame": 0,
 +            "top_field_first": 0,
 +            "repeat_pict": 0
 +        },
 +        {
 +            "type": "packet",
 +            "codec_type": "audio",
 +            "stream_index": 0,
 +            "pts": 1024,
 +            "pts_time": "0.023220",
 +            "dts": 1024,
 +            "dts_time": "0.023220",
 +            "duration": 1024,
 +            "duration_time": "0.023220",
 +            "size": "2048",
-             "pkt_pos": "263143",
++            "pos": "263148",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "audio",
 +            "stream_index": 0,
 +            "key_frame": 1,
 +            "pkt_pts": 1024,
 +            "pkt_pts_time": "0.023220",
 +            "pkt_dts": 1024,
 +            "pkt_dts_time": "0.023220",
 +            "best_effort_timestamp": 1024,
 +            "best_effort_timestamp_time": "0.023220",
 +            "pkt_duration": 1024,
 +            "pkt_duration_time": "0.023220",
-             "pos": "265221",
++            "pkt_pos": "263148",
 +            "pkt_size": "2048",
 +            "sample_fmt": "s16",
 +            "nb_samples": 1024,
 +            "channels": 1
 +        },
 +        {
 +            "type": "packet",
 +            "codec_type": "video",
 +            "stream_index": 1,
 +            "pts": 2048,
 +            "pts_time": "0.040000",
 +            "dts": 2048,
 +            "dts_time": "0.040000",
 +            "duration": 2048,
 +            "duration_time": "0.040000",
 +            "size": "230400",
-             "pkt_pos": "265221",
++            "pos": "265226",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "video",
 +            "stream_index": 1,
 +            "key_frame": 1,
 +            "pkt_pts": 2048,
 +            "pkt_pts_time": "0.040000",
 +            "pkt_dts": 2048,
 +            "pkt_dts_time": "0.040000",
 +            "best_effort_timestamp": 2048,
 +            "best_effort_timestamp_time": "0.040000",
 +            "pkt_duration": 2048,
 +            "pkt_duration_time": "0.040000",
-             "pos": "495645",
++            "pkt_pos": "265226",
 +            "pkt_size": "230400",
 +            "width": 320,
 +            "height": 240,
 +            "pix_fmt": "rgb24",
 +            "sample_aspect_ratio": "1:1",
 +            "pict_type": "I",
 +            "coded_picture_number": 0,
 +            "display_picture_number": 0,
 +            "interlaced_frame": 0,
 +            "top_field_first": 0,
 +            "repeat_pict": 0
 +        },
 +        {
 +            "type": "packet",
 +            "codec_type": "video",
 +            "stream_index": 2,
 +            "pts": 2048,
 +            "pts_time": "0.040000",
 +            "dts": 2048,
 +            "dts_time": "0.040000",
 +            "duration": 2048,
 +            "duration_time": "0.040000",
 +            "size": "30000",
-             "pkt_pos": "495645",
++            "pos": "495650",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "video",
 +            "stream_index": 2,
 +            "key_frame": 1,
 +            "pkt_pts": 2048,
 +            "pkt_pts_time": "0.040000",
 +            "pkt_dts": 2048,
 +            "pkt_dts_time": "0.040000",
 +            "best_effort_timestamp": 2048,
 +            "best_effort_timestamp_time": "0.040000",
 +            "pkt_duration": 2048,
 +            "pkt_duration_time": "0.040000",
-             "pos": "525650",
++            "pkt_pos": "495650",
 +            "pkt_size": "30000",
 +            "width": 100,
 +            "height": 100,
 +            "pix_fmt": "rgb24",
 +            "sample_aspect_ratio": "1:1",
 +            "pict_type": "I",
 +            "coded_picture_number": 0,
 +            "display_picture_number": 0,
 +            "interlaced_frame": 0,
 +            "top_field_first": 0,
 +            "repeat_pict": 0
 +        },
 +        {
 +            "type": "packet",
 +            "codec_type": "audio",
 +            "stream_index": 0,
 +            "pts": 2048,
 +            "pts_time": "0.046440",
 +            "dts": 2048,
 +            "dts_time": "0.046440",
 +            "duration": 1024,
 +            "duration_time": "0.023220",
 +            "size": "2048",
-             "pkt_pos": "525650",
++            "pos": "525655",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "audio",
 +            "stream_index": 0,
 +            "key_frame": 1,
 +            "pkt_pts": 2048,
 +            "pkt_pts_time": "0.046440",
 +            "pkt_dts": 2048,
 +            "pkt_dts_time": "0.046440",
 +            "best_effort_timestamp": 2048,
 +            "best_effort_timestamp_time": "0.046440",
 +            "pkt_duration": 1024,
 +            "pkt_duration_time": "0.023220",
-             "pos": "527721",
++            "pkt_pos": "525655",
 +            "pkt_size": "2048",
 +            "sample_fmt": "s16",
 +            "nb_samples": 1024,
 +            "channels": 1
 +        },
 +        {
 +            "type": "packet",
 +            "codec_type": "audio",
 +            "stream_index": 0,
 +            "pts": 3072,
 +            "pts_time": "0.069660",
 +            "dts": 3072,
 +            "dts_time": "0.069660",
 +            "duration": 1024,
 +            "duration_time": "0.023220",
 +            "size": "2048",
-             "pkt_pos": "527721",
++            "pos": "527726",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "audio",
 +            "stream_index": 0,
 +            "key_frame": 1,
 +            "pkt_pts": 3072,
 +            "pkt_pts_time": "0.069660",
 +            "pkt_dts": 3072,
 +            "pkt_dts_time": "0.069660",
 +            "best_effort_timestamp": 3072,
 +            "best_effort_timestamp_time": "0.069660",
 +            "pkt_duration": 1024,
 +            "pkt_duration_time": "0.023220",
-             "pos": "529799",
++            "pkt_pos": "527726",
 +            "pkt_size": "2048",
 +            "sample_fmt": "s16",
 +            "nb_samples": 1024,
 +            "channels": 1
 +        },
 +        {
 +            "type": "packet",
 +            "codec_type": "video",
 +            "stream_index": 1,
 +            "pts": 4096,
 +            "pts_time": "0.080000",
 +            "dts": 4096,
 +            "dts_time": "0.080000",
 +            "duration": 2048,
 +            "duration_time": "0.040000",
 +            "size": "230400",
-             "pkt_pos": "529799",
++            "pos": "529804",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "video",
 +            "stream_index": 1,
 +            "key_frame": 1,
 +            "pkt_pts": 4096,
 +            "pkt_pts_time": "0.080000",
 +            "pkt_dts": 4096,
 +            "pkt_dts_time": "0.080000",
 +            "best_effort_timestamp": 4096,
 +            "best_effort_timestamp_time": "0.080000",
 +            "pkt_duration": 2048,
 +            "pkt_duration_time": "0.040000",
-             "pos": "760223",
++            "pkt_pos": "529804",
 +            "pkt_size": "230400",
 +            "width": 320,
 +            "height": 240,
 +            "pix_fmt": "rgb24",
 +            "sample_aspect_ratio": "1:1",
 +            "pict_type": "I",
 +            "coded_picture_number": 0,
 +            "display_picture_number": 0,
 +            "interlaced_frame": 0,
 +            "top_field_first": 0,
 +            "repeat_pict": 0
 +        },
 +        {
 +            "type": "packet",
 +            "codec_type": "video",
 +            "stream_index": 2,
 +            "pts": 4096,
 +            "pts_time": "0.080000",
 +            "dts": 4096,
 +            "dts_time": "0.080000",
 +            "duration": 2048,
 +            "duration_time": "0.040000",
 +            "size": "30000",
-             "pkt_pos": "760223",
++            "pos": "760228",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "video",
 +            "stream_index": 2,
 +            "key_frame": 1,
 +            "pkt_pts": 4096,
 +            "pkt_pts_time": "0.080000",
 +            "pkt_dts": 4096,
 +            "pkt_dts_time": "0.080000",
 +            "best_effort_timestamp": 4096,
 +            "best_effort_timestamp_time": "0.080000",
 +            "pkt_duration": 2048,
 +            "pkt_duration_time": "0.040000",
-             "pos": "790228",
++            "pkt_pos": "760228",
 +            "pkt_size": "30000",
 +            "width": 100,
 +            "height": 100,
 +            "pix_fmt": "rgb24",
 +            "sample_aspect_ratio": "1:1",
 +            "pict_type": "I",
 +            "coded_picture_number": 0,
 +            "display_picture_number": 0,
 +            "interlaced_frame": 0,
 +            "top_field_first": 0,
 +            "repeat_pict": 0
 +        },
 +        {
 +            "type": "packet",
 +            "codec_type": "audio",
 +            "stream_index": 0,
 +            "pts": 4096,
 +            "pts_time": "0.092880",
 +            "dts": 4096,
 +            "dts_time": "0.092880",
 +            "duration": 1024,
 +            "duration_time": "0.023220",
 +            "size": "2048",
-             "pkt_pos": "790228",
++            "pos": "790233",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "audio",
 +            "stream_index": 0,
 +            "key_frame": 1,
 +            "pkt_pts": 4096,
 +            "pkt_pts_time": "0.092880",
 +            "pkt_dts": 4096,
 +            "pkt_dts_time": "0.092880",
 +            "best_effort_timestamp": 4096,
 +            "best_effort_timestamp_time": "0.092880",
 +            "pkt_duration": 1024,
 +            "pkt_duration_time": "0.023220",
-             "pos": "792299",
++            "pkt_pos": "790233",
 +            "pkt_size": "2048",
 +            "sample_fmt": "s16",
 +            "nb_samples": 1024,
 +            "channels": 1
 +        },
 +        {
 +            "type": "packet",
 +            "codec_type": "audio",
 +            "stream_index": 0,
 +            "pts": 5120,
 +            "pts_time": "0.116100",
 +            "dts": 5120,
 +            "dts_time": "0.116100",
 +            "duration": 1024,
 +            "duration_time": "0.023220",
 +            "size": "2048",
-             "pkt_pos": "792299",
++            "pos": "792304",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "audio",
 +            "stream_index": 0,
 +            "key_frame": 1,
 +            "pkt_pts": 5120,
 +            "pkt_pts_time": "0.116100",
 +            "pkt_dts": 5120,
 +            "pkt_dts_time": "0.116100",
 +            "best_effort_timestamp": 5120,
 +            "best_effort_timestamp_time": "0.116100",
 +            "pkt_duration": 1024,
 +            "pkt_duration_time": "0.023220",
-             "pos": "794377",
++            "pkt_pos": "792304",
 +            "pkt_size": "2048",
 +            "sample_fmt": "s16",
 +            "nb_samples": 1024,
 +            "channels": 1
 +        },
 +        {
 +            "type": "packet",
 +            "codec_type": "video",
 +            "stream_index": 1,
 +            "pts": 6144,
 +            "pts_time": "0.120000",
 +            "dts": 6144,
 +            "dts_time": "0.120000",
 +            "duration": 2048,
 +            "duration_time": "0.040000",
 +            "size": "230400",
-             "pkt_pos": "794377",
++            "pos": "794382",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "video",
 +            "stream_index": 1,
 +            "key_frame": 1,
 +            "pkt_pts": 6144,
 +            "pkt_pts_time": "0.120000",
 +            "pkt_dts": 6144,
 +            "pkt_dts_time": "0.120000",
 +            "best_effort_timestamp": 6144,
 +            "best_effort_timestamp_time": "0.120000",
 +            "pkt_duration": 2048,
 +            "pkt_duration_time": "0.040000",
-             "pos": "1024801",
++            "pkt_pos": "794382",
 +            "pkt_size": "230400",
 +            "width": 320,
 +            "height": 240,
 +            "pix_fmt": "rgb24",
 +            "sample_aspect_ratio": "1:1",
 +            "pict_type": "I",
 +            "coded_picture_number": 0,
 +            "display_picture_number": 0,
 +            "interlaced_frame": 0,
 +            "top_field_first": 0,
 +            "repeat_pict": 0
 +        },
 +        {
 +            "type": "packet",
 +            "codec_type": "video",
 +            "stream_index": 2,
 +            "pts": 6144,
 +            "pts_time": "0.120000",
 +            "dts": 6144,
 +            "dts_time": "0.120000",
 +            "duration": 2048,
 +            "duration_time": "0.040000",
 +            "size": "30000",
-             "pkt_pos": "1024801",
++            "pos": "1024806",
 +            "flags": "K"
 +        },
 +        {
 +            "type": "frame",
 +            "media_type": "video",
 +            "stream_index": 2,
 +            "key_frame": 1,
 +            "pkt_pts": 6144,
 +            "pkt_pts_time": "0.120000",
 +            "pkt_dts": 6144,
 +            "pkt_dts_time": "0.120000",
 +            "best_effort_timestamp": 6144,
 +            "best_effort_timestamp_time": "0.120000",
 +            "pkt_duration": 2048,
 +            "pkt_duration_time": "0.040000",
-         "size": "1054882",
-         "bit_rate": "70325466",
++            "pkt_pos": "1024806",
 +            "pkt_size": "30000",
 +            "width": 100,
 +            "height": 100,
 +            "pix_fmt": "rgb24",
 +            "sample_aspect_ratio": "1:1",
 +            "pict_type": "I",
 +            "coded_picture_number": 0,
 +            "display_picture_number": 0,
 +            "interlaced_frame": 0,
 +            "top_field_first": 0,
 +            "repeat_pict": 0
 +        }
 +    ],
 +    "streams": [
 +        {
 +            "index": 0,
 +            "codec_name": "pcm_s16le",
 +            "codec_type": "audio",
 +            "codec_time_base": "1/44100",
 +            "codec_tag_string": "PSD[16]",
 +            "codec_tag": "0x10445350",
 +            "sample_fmt": "s16",
 +            "sample_rate": "44100",
 +            "channels": 1,
 +            "bits_per_sample": 16,
 +            "r_frame_rate": "0/0",
 +            "avg_frame_rate": "0/0",
 +            "time_base": "1/44100",
 +            "start_pts": 0,
 +            "start_time": "0.000000",
 +            "bit_rate": "705600",
 +            "nb_read_frames": "6",
 +            "nb_read_packets": "6",
 +            "disposition": {
 +                "default": 0,
 +                "dub": 0,
 +                "original": 0,
 +                "comment": 0,
 +                "lyrics": 0,
 +                "karaoke": 0,
 +                "forced": 0,
 +                "hearing_impaired": 0,
 +                "visual_impaired": 0,
 +                "clean_effects": 0,
 +                "attached_pic": 0
 +            },
 +            "tags": {
 +                "E": "mc²",
 +                "encoder": "Lavc pcm_s16le"
 +            }
 +        },
 +        {
 +            "index": 1,
 +            "codec_name": "rawvideo",
 +            "codec_type": "video",
 +            "codec_time_base": "1/51200",
 +            "codec_tag_string": "RGB[24]",
 +            "codec_tag": "0x18424752",
 +            "width": 320,
 +            "height": 240,
 +            "coded_width": 320,
 +            "coded_height": 240,
 +            "has_b_frames": 0,
 +            "sample_aspect_ratio": "1:1",
 +            "display_aspect_ratio": "4:3",
 +            "pix_fmt": "rgb24",
 +            "level": -99,
 +            "refs": 1,
 +            "r_frame_rate": "25/1",
 +            "avg_frame_rate": "25/1",
 +            "time_base": "1/51200",
 +            "start_pts": 0,
 +            "start_time": "0.000000",
 +            "nb_read_frames": "4",
 +            "nb_read_packets": "4",
 +            "disposition": {
 +                "default": 0,
 +                "dub": 0,
 +                "original": 0,
 +                "comment": 0,
 +                "lyrics": 0,
 +                "karaoke": 0,
 +                "forced": 0,
 +                "hearing_impaired": 0,
 +                "visual_impaired": 0,
 +                "clean_effects": 0,
 +                "attached_pic": 0
 +            },
 +            "tags": {
 +                "title": "foobar",
 +                "duration_ts": "field-and-tags-conflict-attempt",
 +                "encoder": "Lavc rawvideo"
 +            }
 +        },
 +        {
 +            "index": 2,
 +            "codec_name": "rawvideo",
 +            "codec_type": "video",
 +            "codec_time_base": "1/51200",
 +            "codec_tag_string": "RGB[24]",
 +            "codec_tag": "0x18424752",
 +            "width": 100,
 +            "height": 100,
 +            "coded_width": 100,
 +            "coded_height": 100,
 +            "has_b_frames": 0,
 +            "sample_aspect_ratio": "1:1",
 +            "display_aspect_ratio": "1:1",
 +            "pix_fmt": "rgb24",
 +            "level": -99,
 +            "refs": 1,
 +            "r_frame_rate": "25/1",
 +            "avg_frame_rate": "25/1",
 +            "time_base": "1/51200",
 +            "start_pts": 0,
 +            "start_time": "0.000000",
 +            "nb_read_frames": "4",
 +            "nb_read_packets": "4",
 +            "disposition": {
 +                "default": 0,
 +                "dub": 0,
 +                "original": 0,
 +                "comment": 0,
 +                "lyrics": 0,
 +                "karaoke": 0,
 +                "forced": 0,
 +                "hearing_impaired": 0,
 +                "visual_impaired": 0,
 +                "clean_effects": 0,
 +                "attached_pic": 0
 +            },
 +            "tags": {
 +                "encoder": "Lavc rawvideo"
 +            }
 +        }
 +    ],
 +    "format": {
 +        "filename": "tests/data/ffprobe-test.nut",
 +        "nb_streams": 3,
 +        "nb_programs": 0,
 +        "format_name": "nut",
 +        "start_time": "0.000000",
 +        "duration": "0.120000",
++        "size": "1054887",
++        "bit_rate": "70325800",
 +        "probe_score": 100,
 +        "tags": {
 +            "title": "ffprobe test file",
 +            "comment": "'A comment with CSV, XML & JSON special chars': <tag value=\"x\">",
 +            "comment2": "I ♥ Üñîçød€"
 +        }
 +    }
 +}
index 2fdd81b,0000000..834243a
mode 100644,000000..100644
--- /dev/null
@@@ -1,57 -1,0 +1,57 @@@
-         <packet codec_type="audio" stream_index="0" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="1024" duration_time="0.023220" size="2048" pos="642" flags="K"/>
-         <frame media_type="audio" stream_index="0" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" best_effort_timestamp="0" best_effort_timestamp_time="0.000000" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="642" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
-         <packet codec_type="video" stream_index="1" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="2048" duration_time="0.040000" size="230400" pos="2717" flags="K"/>
-         <frame media_type="video" stream_index="1" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" best_effort_timestamp="0" best_effort_timestamp_time="0.000000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="2717" pkt_size="230400" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-         <packet codec_type="video" stream_index="2" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="2048" duration_time="0.040000" size="30000" pos="233138" flags="K"/>
-         <frame media_type="video" stream_index="2" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" best_effort_timestamp="0" best_effort_timestamp_time="0.000000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="233138" pkt_size="30000" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-         <packet codec_type="audio" stream_index="0" pts="1024" pts_time="0.023220" dts="1024" dts_time="0.023220" duration="1024" duration_time="0.023220" size="2048" pos="263143" flags="K"/>
-         <frame media_type="audio" stream_index="0" key_frame="1" pkt_pts="1024" pkt_pts_time="0.023220" pkt_dts="1024" pkt_dts_time="0.023220" best_effort_timestamp="1024" best_effort_timestamp_time="0.023220" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="263143" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
-         <packet codec_type="video" stream_index="1" pts="2048" pts_time="0.040000" dts="2048" dts_time="0.040000" duration="2048" duration_time="0.040000" size="230400" pos="265221" flags="K"/>
-         <frame media_type="video" stream_index="1" key_frame="1" pkt_pts="2048" pkt_pts_time="0.040000" pkt_dts="2048" pkt_dts_time="0.040000" best_effort_timestamp="2048" best_effort_timestamp_time="0.040000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="265221" pkt_size="230400" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-         <packet codec_type="video" stream_index="2" pts="2048" pts_time="0.040000" dts="2048" dts_time="0.040000" duration="2048" duration_time="0.040000" size="30000" pos="495645" flags="K"/>
-         <frame media_type="video" stream_index="2" key_frame="1" pkt_pts="2048" pkt_pts_time="0.040000" pkt_dts="2048" pkt_dts_time="0.040000" best_effort_timestamp="2048" best_effort_timestamp_time="0.040000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="495645" pkt_size="30000" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-         <packet codec_type="audio" stream_index="0" pts="2048" pts_time="0.046440" dts="2048" dts_time="0.046440" duration="1024" duration_time="0.023220" size="2048" pos="525650" flags="K"/>
-         <frame media_type="audio" stream_index="0" key_frame="1" pkt_pts="2048" pkt_pts_time="0.046440" pkt_dts="2048" pkt_dts_time="0.046440" best_effort_timestamp="2048" best_effort_timestamp_time="0.046440" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="525650" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
-         <packet codec_type="audio" stream_index="0" pts="3072" pts_time="0.069660" dts="3072" dts_time="0.069660" duration="1024" duration_time="0.023220" size="2048" pos="527721" flags="K"/>
-         <frame media_type="audio" stream_index="0" key_frame="1" pkt_pts="3072" pkt_pts_time="0.069660" pkt_dts="3072" pkt_dts_time="0.069660" best_effort_timestamp="3072" best_effort_timestamp_time="0.069660" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="527721" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
-         <packet codec_type="video" stream_index="1" pts="4096" pts_time="0.080000" dts="4096" dts_time="0.080000" duration="2048" duration_time="0.040000" size="230400" pos="529799" flags="K"/>
-         <frame media_type="video" stream_index="1" key_frame="1" pkt_pts="4096" pkt_pts_time="0.080000" pkt_dts="4096" pkt_dts_time="0.080000" best_effort_timestamp="4096" best_effort_timestamp_time="0.080000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="529799" pkt_size="230400" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-         <packet codec_type="video" stream_index="2" pts="4096" pts_time="0.080000" dts="4096" dts_time="0.080000" duration="2048" duration_time="0.040000" size="30000" pos="760223" flags="K"/>
-         <frame media_type="video" stream_index="2" key_frame="1" pkt_pts="4096" pkt_pts_time="0.080000" pkt_dts="4096" pkt_dts_time="0.080000" best_effort_timestamp="4096" best_effort_timestamp_time="0.080000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="760223" pkt_size="30000" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-         <packet codec_type="audio" stream_index="0" pts="4096" pts_time="0.092880" dts="4096" dts_time="0.092880" duration="1024" duration_time="0.023220" size="2048" pos="790228" flags="K"/>
-         <frame media_type="audio" stream_index="0" key_frame="1" pkt_pts="4096" pkt_pts_time="0.092880" pkt_dts="4096" pkt_dts_time="0.092880" best_effort_timestamp="4096" best_effort_timestamp_time="0.092880" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="790228" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
-         <packet codec_type="audio" stream_index="0" pts="5120" pts_time="0.116100" dts="5120" dts_time="0.116100" duration="1024" duration_time="0.023220" size="2048" pos="792299" flags="K"/>
-         <frame media_type="audio" stream_index="0" key_frame="1" pkt_pts="5120" pkt_pts_time="0.116100" pkt_dts="5120" pkt_dts_time="0.116100" best_effort_timestamp="5120" best_effort_timestamp_time="0.116100" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="792299" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
-         <packet codec_type="video" stream_index="1" pts="6144" pts_time="0.120000" dts="6144" dts_time="0.120000" duration="2048" duration_time="0.040000" size="230400" pos="794377" flags="K"/>
-         <frame media_type="video" stream_index="1" key_frame="1" pkt_pts="6144" pkt_pts_time="0.120000" pkt_dts="6144" pkt_dts_time="0.120000" best_effort_timestamp="6144" best_effort_timestamp_time="0.120000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="794377" pkt_size="230400" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
-         <packet codec_type="video" stream_index="2" pts="6144" pts_time="0.120000" dts="6144" dts_time="0.120000" duration="2048" duration_time="0.040000" size="30000" pos="1024801" flags="K"/>
-         <frame media_type="video" stream_index="2" key_frame="1" pkt_pts="6144" pkt_pts_time="0.120000" pkt_dts="6144" pkt_dts_time="0.120000" best_effort_timestamp="6144" best_effort_timestamp_time="0.120000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="1024801" pkt_size="30000" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
 +<?xml version="1.0" encoding="UTF-8"?>
 +<ffprobe>
 +    <packets_and_frames>
-     <format filename="tests/data/ffprobe-test.nut" nb_streams="3" nb_programs="0" format_name="nut" start_time="0.000000" duration="0.120000" size="1054882" bit_rate="70325466" probe_score="100">
++        <packet codec_type="audio" stream_index="0" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="1024" duration_time="0.023220" size="2048" pos="647" flags="K"/>
++        <frame media_type="audio" stream_index="0" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" best_effort_timestamp="0" best_effort_timestamp_time="0.000000" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="647" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
++        <packet codec_type="video" stream_index="1" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="2048" duration_time="0.040000" size="230400" pos="2722" flags="K"/>
++        <frame media_type="video" stream_index="1" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" best_effort_timestamp="0" best_effort_timestamp_time="0.000000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="2722" pkt_size="230400" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
++        <packet codec_type="video" stream_index="2" pts="0" pts_time="0.000000" dts="0" dts_time="0.000000" duration="2048" duration_time="0.040000" size="30000" pos="233143" flags="K"/>
++        <frame media_type="video" stream_index="2" key_frame="1" pkt_pts="0" pkt_pts_time="0.000000" pkt_dts="0" pkt_dts_time="0.000000" best_effort_timestamp="0" best_effort_timestamp_time="0.000000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="233143" pkt_size="30000" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
++        <packet codec_type="audio" stream_index="0" pts="1024" pts_time="0.023220" dts="1024" dts_time="0.023220" duration="1024" duration_time="0.023220" size="2048" pos="263148" flags="K"/>
++        <frame media_type="audio" stream_index="0" key_frame="1" pkt_pts="1024" pkt_pts_time="0.023220" pkt_dts="1024" pkt_dts_time="0.023220" best_effort_timestamp="1024" best_effort_timestamp_time="0.023220" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="263148" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
++        <packet codec_type="video" stream_index="1" pts="2048" pts_time="0.040000" dts="2048" dts_time="0.040000" duration="2048" duration_time="0.040000" size="230400" pos="265226" flags="K"/>
++        <frame media_type="video" stream_index="1" key_frame="1" pkt_pts="2048" pkt_pts_time="0.040000" pkt_dts="2048" pkt_dts_time="0.040000" best_effort_timestamp="2048" best_effort_timestamp_time="0.040000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="265226" pkt_size="230400" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
++        <packet codec_type="video" stream_index="2" pts="2048" pts_time="0.040000" dts="2048" dts_time="0.040000" duration="2048" duration_time="0.040000" size="30000" pos="495650" flags="K"/>
++        <frame media_type="video" stream_index="2" key_frame="1" pkt_pts="2048" pkt_pts_time="0.040000" pkt_dts="2048" pkt_dts_time="0.040000" best_effort_timestamp="2048" best_effort_timestamp_time="0.040000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="495650" pkt_size="30000" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
++        <packet codec_type="audio" stream_index="0" pts="2048" pts_time="0.046440" dts="2048" dts_time="0.046440" duration="1024" duration_time="0.023220" size="2048" pos="525655" flags="K"/>
++        <frame media_type="audio" stream_index="0" key_frame="1" pkt_pts="2048" pkt_pts_time="0.046440" pkt_dts="2048" pkt_dts_time="0.046440" best_effort_timestamp="2048" best_effort_timestamp_time="0.046440" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="525655" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
++        <packet codec_type="audio" stream_index="0" pts="3072" pts_time="0.069660" dts="3072" dts_time="0.069660" duration="1024" duration_time="0.023220" size="2048" pos="527726" flags="K"/>
++        <frame media_type="audio" stream_index="0" key_frame="1" pkt_pts="3072" pkt_pts_time="0.069660" pkt_dts="3072" pkt_dts_time="0.069660" best_effort_timestamp="3072" best_effort_timestamp_time="0.069660" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="527726" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
++        <packet codec_type="video" stream_index="1" pts="4096" pts_time="0.080000" dts="4096" dts_time="0.080000" duration="2048" duration_time="0.040000" size="230400" pos="529804" flags="K"/>
++        <frame media_type="video" stream_index="1" key_frame="1" pkt_pts="4096" pkt_pts_time="0.080000" pkt_dts="4096" pkt_dts_time="0.080000" best_effort_timestamp="4096" best_effort_timestamp_time="0.080000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="529804" pkt_size="230400" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
++        <packet codec_type="video" stream_index="2" pts="4096" pts_time="0.080000" dts="4096" dts_time="0.080000" duration="2048" duration_time="0.040000" size="30000" pos="760228" flags="K"/>
++        <frame media_type="video" stream_index="2" key_frame="1" pkt_pts="4096" pkt_pts_time="0.080000" pkt_dts="4096" pkt_dts_time="0.080000" best_effort_timestamp="4096" best_effort_timestamp_time="0.080000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="760228" pkt_size="30000" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
++        <packet codec_type="audio" stream_index="0" pts="4096" pts_time="0.092880" dts="4096" dts_time="0.092880" duration="1024" duration_time="0.023220" size="2048" pos="790233" flags="K"/>
++        <frame media_type="audio" stream_index="0" key_frame="1" pkt_pts="4096" pkt_pts_time="0.092880" pkt_dts="4096" pkt_dts_time="0.092880" best_effort_timestamp="4096" best_effort_timestamp_time="0.092880" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="790233" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
++        <packet codec_type="audio" stream_index="0" pts="5120" pts_time="0.116100" dts="5120" dts_time="0.116100" duration="1024" duration_time="0.023220" size="2048" pos="792304" flags="K"/>
++        <frame media_type="audio" stream_index="0" key_frame="1" pkt_pts="5120" pkt_pts_time="0.116100" pkt_dts="5120" pkt_dts_time="0.116100" best_effort_timestamp="5120" best_effort_timestamp_time="0.116100" pkt_duration="1024" pkt_duration_time="0.023220" pkt_pos="792304" pkt_size="2048" sample_fmt="s16" nb_samples="1024" channels="1"/>
++        <packet codec_type="video" stream_index="1" pts="6144" pts_time="0.120000" dts="6144" dts_time="0.120000" duration="2048" duration_time="0.040000" size="230400" pos="794382" flags="K"/>
++        <frame media_type="video" stream_index="1" key_frame="1" pkt_pts="6144" pkt_pts_time="0.120000" pkt_dts="6144" pkt_dts_time="0.120000" best_effort_timestamp="6144" best_effort_timestamp_time="0.120000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="794382" pkt_size="230400" width="320" height="240" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
++        <packet codec_type="video" stream_index="2" pts="6144" pts_time="0.120000" dts="6144" dts_time="0.120000" duration="2048" duration_time="0.040000" size="30000" pos="1024806" flags="K"/>
++        <frame media_type="video" stream_index="2" key_frame="1" pkt_pts="6144" pkt_pts_time="0.120000" pkt_dts="6144" pkt_dts_time="0.120000" best_effort_timestamp="6144" best_effort_timestamp_time="0.120000" pkt_duration="2048" pkt_duration_time="0.040000" pkt_pos="1024806" pkt_size="30000" width="100" height="100" pix_fmt="rgb24" sample_aspect_ratio="1:1" pict_type="I" coded_picture_number="0" display_picture_number="0" interlaced_frame="0" top_field_first="0" repeat_pict="0"/>
 +    </packets_and_frames>
 +
 +    <streams>
 +        <stream index="0" codec_name="pcm_s16le" codec_type="audio" codec_time_base="1/44100" codec_tag_string="PSD[16]" codec_tag="0x10445350" sample_fmt="s16" sample_rate="44100" channels="1" bits_per_sample="16" r_frame_rate="0/0" avg_frame_rate="0/0" time_base="1/44100" start_pts="0" start_time="0.000000" bit_rate="705600" nb_read_frames="6" nb_read_packets="6">
 +            <disposition default="0" dub="0" original="0" comment="0" lyrics="0" karaoke="0" forced="0" hearing_impaired="0" visual_impaired="0" clean_effects="0" attached_pic="0"/>
 +            <tag key="E" value="mc²"/>
 +            <tag key="encoder" value="Lavc pcm_s16le"/>
 +        </stream>
 +        <stream index="1" codec_name="rawvideo" codec_type="video" codec_time_base="1/51200" codec_tag_string="RGB[24]" codec_tag="0x18424752" width="320" height="240" coded_width="320" coded_height="240" has_b_frames="0" sample_aspect_ratio="1:1" display_aspect_ratio="4:3" pix_fmt="rgb24" level="-99" refs="1" r_frame_rate="25/1" avg_frame_rate="25/1" time_base="1/51200" start_pts="0" start_time="0.000000" nb_read_frames="4" nb_read_packets="4">
 +            <disposition default="0" dub="0" original="0" comment="0" lyrics="0" karaoke="0" forced="0" hearing_impaired="0" visual_impaired="0" clean_effects="0" attached_pic="0"/>
 +            <tag key="title" value="foobar"/>
 +            <tag key="duration_ts" value="field-and-tags-conflict-attempt"/>
 +            <tag key="encoder" value="Lavc rawvideo"/>
 +        </stream>
 +        <stream index="2" codec_name="rawvideo" codec_type="video" codec_time_base="1/51200" codec_tag_string="RGB[24]" codec_tag="0x18424752" width="100" height="100" coded_width="100" coded_height="100" has_b_frames="0" sample_aspect_ratio="1:1" display_aspect_ratio="1:1" pix_fmt="rgb24" level="-99" refs="1" r_frame_rate="25/1" avg_frame_rate="25/1" time_base="1/51200" start_pts="0" start_time="0.000000" nb_read_frames="4" nb_read_packets="4">
 +            <disposition default="0" dub="0" original="0" comment="0" lyrics="0" karaoke="0" forced="0" hearing_impaired="0" visual_impaired="0" clean_effects="0" attached_pic="0"/>
 +            <tag key="encoder" value="Lavc rawvideo"/>
 +        </stream>
 +    </streams>
 +
++    <format filename="tests/data/ffprobe-test.nut" nb_streams="3" nb_programs="0" format_name="nut" start_time="0.000000" duration="0.120000" size="1054887" bit_rate="70325800" probe_score="100">
 +        <tag key="title" value="ffprobe test file"/>
 +        <tag key="comment" value="&apos;A comment with CSV, XML &amp; JSON special chars&apos;: &lt;tag value=&quot;x&quot;&gt;"/>
 +        <tag key="comment2" value="I ♥ Üñîçød€"/>
 +    </format>
 +</ffprobe>