diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-10 20:58:15 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-10 20:59:55 +0100 |
commit | 6f69f7a8bf6a0d013985578df2ef42ee6b1c7994 (patch) | |
tree | 0c2ec8349ff1763d5f48454b8b9f26374dbd80b0 /tests | |
parent | 60b75186b2c878b6257b43c8fcc0b1356ada218e (diff) | |
parent | 9200514ad8717c63f82101dc394f4378854325bf (diff) | |
download | ffmpeg-6f69f7a8bf6a0d013985578df2ef42ee6b1c7994.tar.gz |
Merge commit '9200514ad8717c63f82101dc394f4378854325bf'
* commit '9200514ad8717c63f82101dc394f4378854325bf':
lavf: replace AVStream.codec with AVStream.codecpar
This has been a HUGE effort from:
- Derek Buitenhuis <derek.buitenhuis@gmail.com>
- Hendrik Leppkes <h.leppkes@gmail.com>
- wm4 <nfxjfg@googlemail.com>
- Clément Bœsch <clement@stupeflix.com>
- James Almer <jamrial@gmail.com>
- Michael Niedermayer <michael@niedermayer.cc>
- Rostislav Pehlivanov <atomnuker@gmail.com>
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/api/api-band-test.c | 9 | ||||
-rw-r--r-- | tests/api/api-h264-test.c | 9 | ||||
-rw-r--r-- | tests/api/api-seek-test.c | 9 | ||||
-rw-r--r-- | tests/fate/vpx.mak | 4 | ||||
-rw-r--r-- | tests/ref/fate/concat-demuxer-extended-lavf-mxf | 2 | ||||
-rw-r--r-- | tests/ref/fate/concat-demuxer-extended-lavf-mxf_d10 | 2 | ||||
-rw-r--r-- | tests/ref/fate/concat-demuxer-simple1-lavf-mxf | 2 | ||||
-rw-r--r-- | tests/ref/fate/concat-demuxer-simple1-lavf-mxf_d10 | 2 | ||||
-rw-r--r-- | tests/ref/fate/concat-demuxer-simple2-lavf-ts | 2 | ||||
-rw-r--r-- | tests/ref/fate/ffprobe_compact | 4 | ||||
-rw-r--r-- | tests/ref/fate/ffprobe_csv | 4 | ||||
-rw-r--r-- | tests/ref/fate/ffprobe_default | 4 | ||||
-rw-r--r-- | tests/ref/fate/ffprobe_flat | 4 | ||||
-rw-r--r-- | tests/ref/fate/ffprobe_ini | 4 | ||||
-rw-r--r-- | tests/ref/fate/ffprobe_json | 4 | ||||
-rw-r--r-- | tests/ref/fate/ffprobe_xml | 4 | ||||
-rw-r--r-- | tests/ref/fate/movenc | 38 | ||||
-rw-r--r-- | tests/ref/fate/xmv-demux | 28 | ||||
-rw-r--r-- | tests/ref/lavf/ffm | 2 | ||||
-rw-r--r-- | tests/ref/seek/lavf-voc | 12 |
20 files changed, 76 insertions, 73 deletions
diff --git a/tests/api/api-band-test.c b/tests/api/api-band-test.c index 8644e7df9e..5ccba4f766 100644 --- a/tests/api/api-band-test.c +++ b/tests/api/api-band-test.c @@ -67,7 +67,8 @@ static void draw_horiz_band(AVCodecContext *ctx, const AVFrame *fr, int offset[4 static int video_decode(const char *input_filename) { AVCodec *codec = NULL; - AVCodecContext *origin_ctx = NULL, *ctx= NULL; + AVCodecContext *ctx= NULL; + AVCodecParameters *origin_par = NULL; uint8_t *byte_buffer = NULL; AVFrame *fr = NULL; AVPacket pkt; @@ -99,9 +100,9 @@ static int video_decode(const char *input_filename) return -1; } - origin_ctx = fmt_ctx->streams[video_stream]->codec; + origin_par = fmt_ctx->streams[video_stream]->codecpar; - codec = avcodec_find_decoder(origin_ctx->codec_id); + codec = avcodec_find_decoder(origin_par->codec_id); if (!codec) { av_log(NULL, AV_LOG_ERROR, "Can't find decoder\n"); return -1; @@ -113,7 +114,7 @@ static int video_decode(const char *input_filename) return AVERROR(ENOMEM); } - result = avcodec_copy_context(ctx, origin_ctx); + result = avcodec_parameters_to_context(ctx, origin_par); if (result) { av_log(NULL, AV_LOG_ERROR, "Can't copy decoder context\n"); return result; diff --git a/tests/api/api-h264-test.c b/tests/api/api-h264-test.c index acf1636b39..ef3a1fefff 100644 --- a/tests/api/api-h264-test.c +++ b/tests/api/api-h264-test.c @@ -32,7 +32,8 @@ static int video_decode_example(const char *input_filename) { AVCodec *codec = NULL; - AVCodecContext *origin_ctx = NULL, *ctx= NULL; + AVCodecContext *ctx= NULL; + AVCodecParameters *origin_par = NULL; AVFrame *fr = NULL; uint8_t *byte_buffer = NULL; AVPacket pkt; @@ -63,9 +64,9 @@ static int video_decode_example(const char *input_filename) return -1; } - origin_ctx = fmt_ctx->streams[video_stream]->codec; + origin_par = fmt_ctx->streams[video_stream]->codecpar; - codec = avcodec_find_decoder(origin_ctx->codec_id); + codec = avcodec_find_decoder(origin_par->codec_id); if (!codec) { av_log(NULL, AV_LOG_ERROR, "Can't find decoder\n"); return -1; @@ -77,7 +78,7 @@ static int video_decode_example(const char *input_filename) return AVERROR(ENOMEM); } - result = avcodec_copy_context(ctx, origin_ctx); + result = avcodec_parameters_to_context(ctx, origin_par); if (result) { av_log(NULL, AV_LOG_ERROR, "Can't copy decoder context\n"); return result; diff --git a/tests/api/api-seek-test.c b/tests/api/api-seek-test.c index 135b972440..df47a5fbdb 100644 --- a/tests/api/api-seek-test.c +++ b/tests/api/api-seek-test.c @@ -174,7 +174,8 @@ static long int read_seek_range(const char *string_with_number) static int seek_test(const char *input_filename, const char *start, const char *end) { AVCodec *codec = NULL; - AVCodecContext *origin_ctx = NULL, *ctx= NULL; + AVCodecContext *ctx= NULL; + AVCodecParameters *origin_par = NULL; AVFrame *fr = NULL; AVFormatContext *fmt_ctx = NULL; int video_stream; @@ -210,9 +211,9 @@ static int seek_test(const char *input_filename, const char *start, const char * return -1; } - origin_ctx = fmt_ctx->streams[video_stream]->codec; + origin_par = fmt_ctx->streams[video_stream]->codecpar; - codec = avcodec_find_decoder(origin_ctx->codec_id); + codec = avcodec_find_decoder(origin_par->codec_id); if (!codec) { av_log(NULL, AV_LOG_ERROR, "Can't find decoder\n"); return -1; @@ -224,7 +225,7 @@ static int seek_test(const char *input_filename, const char *start, const char * return AVERROR(ENOMEM); } - result = avcodec_copy_context(ctx, origin_ctx); + result = avcodec_parameters_to_context(ctx, origin_par); if (result) { av_log(NULL, AV_LOG_ERROR, "Can't copy decoder context\n"); return result; diff --git a/tests/fate/vpx.mak b/tests/fate/vpx.mak index 57e2d8101f..f0bcfaca4a 100644 --- a/tests/fate/vpx.mak +++ b/tests/fate/vpx.mak @@ -20,10 +20,10 @@ FATE_VP6-$(call DEMDEC, EA, VP6) += fate-vp61 fate-vp61: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/ea-vp6/MovieSkirmishGondor.vp6 -t 4 FATE_VP6-$(call DEMDEC, FLV, VP6A) += fate-vp6a -fate-vp6a: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/flash-vp6/300x180-Scr-f8-056alpha.flv +fate-vp6a: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/flash-vp6/300x180-Scr-f8-056alpha.mov FATE_VP6-$(call DEMDEC, FLV, VP6A) += fate-vp6a-skip_alpha -fate-vp6a-skip_alpha: CMD = framecrc -flags +bitexact -skip_alpha 1 -i $(TARGET_SAMPLES)/flash-vp6/300x180-Scr-f8-056alpha.flv +fate-vp6a-skip_alpha: CMD = framecrc -flags +bitexact -skip_alpha 1 -i $(TARGET_SAMPLES)/flash-vp6/300x180-Scr-f8-056alpha.mov FATE_VP6-$(call DEMDEC, FLV, VP6F) += fate-vp6f fate-vp6f: CMD = framecrc -flags +bitexact -i $(TARGET_SAMPLES)/flash-vp6/clip1024.flv diff --git a/tests/ref/fate/concat-demuxer-extended-lavf-mxf b/tests/ref/fate/concat-demuxer-extended-lavf-mxf index 4caec5a988..b89493857d 100644 --- a/tests/ref/fate/concat-demuxer-extended-lavf-mxf +++ b/tests/ref/fate/concat-demuxer-extended-lavf-mxf @@ -1 +1 @@ -37b4a84fce71b3f8b129f8b866c5f55a *tests/data/fate/concat-demuxer-extended-lavf-mxf.ffprobe +0aa1ca6ff6e2e5aa926454d22fdaecd5 *tests/data/fate/concat-demuxer-extended-lavf-mxf.ffprobe diff --git a/tests/ref/fate/concat-demuxer-extended-lavf-mxf_d10 b/tests/ref/fate/concat-demuxer-extended-lavf-mxf_d10 index 1965050a5e..b378a2da21 100644 --- a/tests/ref/fate/concat-demuxer-extended-lavf-mxf_d10 +++ b/tests/ref/fate/concat-demuxer-extended-lavf-mxf_d10 @@ -1 +1 @@ -2f5e935f86304c843be1454b1354a4b7 *tests/data/fate/concat-demuxer-extended-lavf-mxf_d10.ffprobe +14c2b8d8f82f261c9627b33c481c0e8c *tests/data/fate/concat-demuxer-extended-lavf-mxf_d10.ffprobe diff --git a/tests/ref/fate/concat-demuxer-simple1-lavf-mxf b/tests/ref/fate/concat-demuxer-simple1-lavf-mxf index c28db28ebc..3fc7957a13 100644 --- a/tests/ref/fate/concat-demuxer-simple1-lavf-mxf +++ b/tests/ref/fate/concat-demuxer-simple1-lavf-mxf @@ -120,5 +120,5 @@ audio|1|65280|1.360000|65280|1.360000|1920|0.040000|N/A|N/A|3840|206848|K|1 Strings Metadata|8 video|0|37|1.480000|34|1.360000|1|0.040000|N/A|N/A|24786|211456|K|1 Strings Metadata|8 -0|mpeg2video|4|video|1/50|[0][0][0][0]|0x0000|352|288|0|0|1|1:1|11:9|yuv420p|8|tv|unknown|unknown|unknown|left|00:00:00:00|1|N/A|25/1|25/1|1/25|N/A|N/A|N/A|N/A|N/A|104857200|N/A|N/A|N/A|51|0|0|0|0|0|0|0|0|0|0|0|0x060A2B340101010501010D001300000000000000000000000000000000000001 +0|mpeg2video|4|video|1/25|[0][0][0][0]|0x0000|352|288|0|0|1|1:1|11:9|yuv420p|8|tv|unknown|unknown|unknown|left|N/A|1|N/A|25/1|25/1|1/25|N/A|N/A|N/A|N/A|N/A|N/A|N/A|N/A|N/A|51|0|0|0|0|0|0|0|0|0|0|0|0x060A2B340101010501010D001300000000000000000000000000000000000001 1|pcm_s16le|unknown|audio|1/48000|[0][0][0][0]|0x0000|s16|48000|1|unknown|16|N/A|0/0|0/0|1/48000|0|0.000000|N/A|N/A|768000|N/A|N/A|N/A|N/A|50|0|0|0|0|0|0|0|0|0|0|0|0x060A2B340101010501010D001300000000000000000000000000000000000001 diff --git a/tests/ref/fate/concat-demuxer-simple1-lavf-mxf_d10 b/tests/ref/fate/concat-demuxer-simple1-lavf-mxf_d10 index 3b6e3fe0e4..0ff1b04c7c 100644 --- a/tests/ref/fate/concat-demuxer-simple1-lavf-mxf_d10 +++ b/tests/ref/fate/concat-demuxer-simple1-lavf-mxf_d10 @@ -78,5 +78,5 @@ video|0|34|1.360000|34|1.360000|1|0.040000|N/A|N/A|150000|1923072|K|1 Strings Metadata|8 audio|1|65280|1.360000|65280|1.360000|1920|0.040000|N/A|N/A|7680|2073600|K|1 Strings Metadata|8 -0|mpeg2video|0|video|1/50|[0][0][0][0]|0x0000|720|608|0|0|0|1:1|45:38|yuv422p|5|tv|unknown|unknown|unknown|topleft|00:00:00:00|1|N/A|25/1|25/1|1/25|0|0.000000|N/A|N/A|30000000|30000000|N/A|N/A|N/A|35|0|0|0|0|0|0|0|0|0|0|0|0x060A2B340101010501010D001300000000000000000000000000000000000001 +0|mpeg2video|0|video|1/25|[0][0][0][0]|0x0000|720|608|0|0|0|1:1|45:38|yuv422p|5|tv|unknown|unknown|unknown|topleft|N/A|1|N/A|25/1|25/1|1/25|0|0.000000|N/A|N/A|30000000|N/A|N/A|N/A|N/A|35|0|0|0|0|0|0|0|0|0|0|0|0x060A2B340101010501010D001300000000000000000000000000000000000001 1|pcm_s16le|unknown|audio|1/48000|[0][0][0][0]|0x0000|s16|48000|2|unknown|16|N/A|0/0|0/0|1/48000|0|0.000000|N/A|N/A|1536000|N/A|N/A|N/A|N/A|35|0|0|0|0|0|0|0|0|0|0|0|0x060A2B340101010501010D001300000000000000000000000000000000000001 diff --git a/tests/ref/fate/concat-demuxer-simple2-lavf-ts b/tests/ref/fate/concat-demuxer-simple2-lavf-ts index 4a50f52c6f..33337cff43 100644 --- a/tests/ref/fate/concat-demuxer-simple2-lavf-ts +++ b/tests/ref/fate/concat-demuxer-simple2-lavf-ts @@ -148,4 +148,4 @@ video|1|168382|1.870911|164782|1.830911|3600|0.040000|N/A|N/A|24800|189692|K video|1|171982|1.910911|168382|1.870911|3600|0.040000|N/A|N/A|17454|216388|_ video|1|175582|1.950911|171982|1.910911|3600|0.040000|N/A|N/A|15033|235000|_ 0|mp2|unknown|audio|1/44100|[3][0][0][0]|0x0003|s16p|44100|1|mono|0|N/A|0/0|0/0|1/90000|0|0.000000|N/A|N/A|64000|N/A|N/A|N/A|N/A|89|0|0|0|0|0|0|0|0|0|0|0 -1|mpeg2video|4|video|1/50|[2][0][0][0]|0x0002|352|288|0|0|1|1:1|11:9|yuv420p|8|tv|unknown|unknown|unknown|left|00:00:00:00|1|N/A|25/1|25/1|1/90000|N/A|N/A|N/A|N/A|N/A|104857200|N/A|N/A|N/A|60|0|0|0|0|0|0|0|0|0|0|0 +1|mpeg2video|4|video|1/25|[2][0][0][0]|0x0002|352|288|0|0|1|1:1|11:9|yuv420p|8|tv|unknown|unknown|unknown|left|N/A|1|N/A|25/1|25/1|1/90000|N/A|N/A|N/A|N/A|N/A|N/A|N/A|N/A|N/A|60|0|0|0|0|0|0|0|0|0|0|0 diff --git a/tests/ref/fate/ffprobe_compact b/tests/ref/fate/ffprobe_compact index 4e1288431d..d529bb617e 100644 --- a/tests/ref/fate/ffprobe_compact +++ b/tests/ref/fate/ffprobe_compact @@ -27,6 +27,6 @@ frame|media_type=video|stream_index=1|key_frame=1|pkt_pts=6144|pkt_pts_time=0.12 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 +stream|index=1|codec_name=rawvideo|profile=unknown|codec_type=video|codec_time_base=1/25|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/25|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=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€ diff --git a/tests/ref/fate/ffprobe_csv b/tests/ref/fate/ffprobe_csv index 8088c4e232..882c1b80be 100644 --- a/tests/ref/fate/ffprobe_csv +++ b/tests/ref/fate/ffprobe_csv @@ -27,6 +27,6 @@ frame,video,1,1,6144,0.120000,6144,0.120000,6144,0.120000,2048,0.040000,794382,2 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 +stream,1,rawvideo,unknown,video,1/25,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/25,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,1054887,70325800,100,ffprobe test file,"'A comment with CSV, XML & JSON special chars': <tag value=""x"">",I ♥ Üñîçød€ diff --git a/tests/ref/fate/ffprobe_default b/tests/ref/fate/ffprobe_default index 2adb4a4fb2..4adb33068c 100644 --- a/tests/ref/fate/ffprobe_default +++ b/tests/ref/fate/ffprobe_default @@ -568,7 +568,7 @@ index=1 codec_name=rawvideo profile=unknown codec_type=video -codec_time_base=1/51200 +codec_time_base=1/25 codec_tag_string=RGB[24] codec_tag=0x18424752 width=320 @@ -621,7 +621,7 @@ index=2 codec_name=rawvideo profile=unknown codec_type=video -codec_time_base=1/51200 +codec_time_base=1/25 codec_tag_string=RGB[24] codec_tag=0x18424752 width=100 diff --git a/tests/ref/fate/ffprobe_flat b/tests/ref/fate/ffprobe_flat index e3483238b8..4b2c91a1aa 100644 --- a/tests/ref/fate/ffprobe_flat +++ b/tests/ref/fate/ffprobe_flat @@ -509,7 +509,7 @@ 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_time_base="1/25" streams.stream.1.codec_tag_string="RGB[24]" streams.stream.1.codec_tag="0x18424752" streams.stream.1.width=320 @@ -560,7 +560,7 @@ 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_time_base="1/25" streams.stream.2.codec_tag_string="RGB[24]" streams.stream.2.codec_tag="0x18424752" streams.stream.2.width=100 diff --git a/tests/ref/fate/ffprobe_ini b/tests/ref/fate/ffprobe_ini index cc556a4432..ba59d61909 100644 --- a/tests/ref/fate/ffprobe_ini +++ b/tests/ref/fate/ffprobe_ini @@ -574,7 +574,7 @@ index=1 codec_name=rawvideo profile=unknown codec_type=video -codec_time_base=1/51200 +codec_time_base=1/25 codec_tag_string=RGB[24] codec_tag=0x18424752 width=320 @@ -631,7 +631,7 @@ index=2 codec_name=rawvideo profile=unknown codec_type=video -codec_time_base=1/51200 +codec_time_base=1/25 codec_tag_string=RGB[24] codec_tag=0x18424752 width=100 diff --git a/tests/ref/fate/ffprobe_json b/tests/ref/fate/ffprobe_json index 34be90738b..8d7abda685 100644 --- a/tests/ref/fate/ffprobe_json +++ b/tests/ref/fate/ffprobe_json @@ -561,7 +561,7 @@ "index": 1, "codec_name": "rawvideo", "codec_type": "video", - "codec_time_base": "1/51200", + "codec_time_base": "1/25", "codec_tag_string": "RGB[24]", "codec_tag": "0x18424752", "width": 320, @@ -604,7 +604,7 @@ "index": 2, "codec_name": "rawvideo", "codec_type": "video", - "codec_time_base": "1/51200", + "codec_time_base": "1/25", "codec_tag_string": "RGB[24]", "codec_tag": "0x18424752", "width": 100, diff --git a/tests/ref/fate/ffprobe_xml b/tests/ref/fate/ffprobe_xml index 834243aa9e..b51b0c61ca 100644 --- a/tests/ref/fate/ffprobe_xml +++ b/tests/ref/fate/ffprobe_xml @@ -37,13 +37,13 @@ <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"> + <stream index="1" codec_name="rawvideo" codec_type="video" codec_time_base="1/25" 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"> + <stream index="2" codec_name="rawvideo" codec_type="video" codec_time_base="1/25" 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> diff --git a/tests/ref/fate/movenc b/tests/ref/fate/movenc index 845ef543fd..d6a7e34259 100644 --- a/tests/ref/fate/movenc +++ b/tests/ref/fate/movenc @@ -1,28 +1,28 @@ -249e02e3645ea5ca2c74397c62c53314 3269 non-empty-moov -3281ff664e9a06e5a03ec6ea1729696c 3721 non-empty-moov-elst -b408a545b1963a5ea82cf37208b66548 3629 non-empty-moov-no-elst -a66c786022280c1f69ad7c98c719fa53 4435 ismv -176a315a5385cb2e082d863e0fb22bf1 2891 empty-moov -10eb3fdf6ed1400a1eec50746537159f 3283 empty-moov-no-elst -bcd4d6d22f828f1061e13f3af459644f 3115 empty-moov-no-elst-no-adjust -176a315a5385cb2e082d863e0fb22bf1 2891 delay-moov -1398c80f1f5fd7f8e127bb5b17311016 3203 delay-moov-elst -ed6dd0e0fd6d0d9d1145b201674325f6 2098 delay-moov-empty-track -7f1dabd680135708c6ff359e4ab27165 2001 delay-moov-empty-track-flush -39d798aa11a265c7906f9e11d4f303c0 1159 empty-moov-header +214242e9c7c93171d2f47f5b47776559 3269 non-empty-moov +44467d568a3cc38d414fd8ed4b2a968f 3721 non-empty-moov-elst +de22b98a3885f9b4b83cdd48ff46aeb9 3629 non-empty-moov-no-elst +1f37c1a8e01651e8bebcd66f00b6a226 4435 ismv +ed8506ebfce4c41732205ae26a4759fd 2891 empty-moov +1844ee6d19fd1e6daf2655632cf26310 3283 empty-moov-no-elst +139b27dbe2a80c2dc088d0c755f26033 3115 empty-moov-no-elst-no-adjust +ed8506ebfce4c41732205ae26a4759fd 2891 delay-moov +3ece148745cd64b4428530a4d1080a2d 3203 delay-moov-elst +9562946a369e6fb570fb2fd7aa2fe728 2098 delay-moov-empty-track +4c7832b81836331c6c37155dc31d95be 2001 delay-moov-empty-track-flush +b7e3c768b9094ebe2fda44979a7f8985 1159 empty-moov-header a0165f4a26a409212b0946e981bdefb9 1584 empty-moov-content -39d798aa11a265c7906f9e11d4f303c0 1159 delay-moov-header +b7e3c768b9094ebe2fda44979a7f8985 1159 delay-moov-header a0165f4a26a409212b0946e981bdefb9 1584 delay-moov-content 272a474cfd2a68cc5f05b426b14a2b7d 876 empty-moov-second-frag 272a474cfd2a68cc5f05b426b14a2b7d 876 empty-moov-second-frag-discont 272a474cfd2a68cc5f05b426b14a2b7d 876 delay-moov-second-frag-discont -6256445b9595de78be493e0faf2bc5d7 1219 delay-moov-elst-init +6ec3698bcc86013e0016e3d47d230363 1219 delay-moov-elst-init fcae8f40e015b59aabc8d4a99a759ca1 996 delay-moov-elst-second-frag -6256445b9595de78be493e0faf2bc5d7 1219 delay-moov-elst-init-discont +6ec3698bcc86013e0016e3d47d230363 1219 delay-moov-elst-init-discont fcae8f40e015b59aabc8d4a99a759ca1 996 delay-moov-elst-second-frag-discont -29f875e401df0fc3026995d12872ef21 1219 delay-moov-elst-signal-init +c3681590a292cb9ca19a5a982e530166 1219 delay-moov-elst-signal-init aa5462cc0d2144f72154d9c309edb57d 996 delay-moov-elst-signal-second-frag -29f875e401df0fc3026995d12872ef21 1219 delay-moov-elst-signal-init-discont +c3681590a292cb9ca19a5a982e530166 1219 delay-moov-elst-signal-init-discont aa5462cc0d2144f72154d9c309edb57d 996 delay-moov-elst-signal-second-frag-discont -6cd6085f4f0ff536acfcb77cb658eb47 4935 vfr -6cd6085f4f0ff536acfcb77cb658eb47 4935 vfr-noduration +f12d4a0e054abcc508cc0d28cb320e57 4935 vfr +f12d4a0e054abcc508cc0d28cb320e57 4935 vfr-noduration diff --git a/tests/ref/fate/xmv-demux b/tests/ref/fate/xmv-demux index d13270a6fc..75b515fa3c 100644 --- a/tests/ref/fate/xmv-demux +++ b/tests/ref/fate/xmv-demux @@ -84,33 +84,33 @@ 0, 4640, 4640, 0, 100, 0x45023894, F=0x0 0, 4680, 4680, 0, 948, 0xa65ed345, F=0x0 0, 4720, 4720, 0, 2808, 0xd7285746, F=0x0 -0, 4760, 4760, 40, 5372, 0x05794175, F=0x0 +0, 4760, 4760, 0, 5372, 0x05794175, F=0x0 1, 3307, 3307, 21, 1512, 0xed8b3f4b -0, 4800, 4800, 40, 11596, 0x8636eca7, F=0x0 +0, 4800, 4800, 0, 11596, 0x8636eca7, F=0x0 1, 3328, 3328, 21, 1512, 0xa27d3891 -0, 4840, 4840, 40, 11524, 0xe1f39be3, F=0x0 +0, 4840, 4840, 0, 11524, 0xe1f39be3, F=0x0 1, 3349, 3349, 21, 1512, 0xb0f13eb6 -0, 4880, 4880, 40, 23392, 0xab053f05, F=0x0 +0, 4880, 4880, 0, 23392, 0xab053f05, F=0x0 1, 3370, 3370, 23, 1656, 0xe5a98324 -0, 4920, 4920, 40, 4560, 0x03197d07, F=0x0 +0, 4920, 4920, 0, 4560, 0x03197d07, F=0x0 1, 3393, 3393, 31, 2232, 0x15445433 -0, 4960, 4960, 40, 4440, 0x1cc361a2, F=0x0 +0, 4960, 4960, 0, 4440, 0x1cc361a2, F=0x0 1, 3424, 3424, 31, 2232, 0x5cb348a9 -0, 5000, 5000, 40, 23688, 0x16030634, F=0x0 +0, 5000, 5000, 0, 23688, 0x16030634, F=0x0 1, 3455, 3455, 31, 2232, 0xf10347da -0, 5040, 5040, 40, 16132, 0xf0eca799, F=0x0 +0, 5040, 5040, 0, 16132, 0xf0eca799, F=0x0 1, 3486, 3486, 34, 2448, 0x3e16a175 -0, 5080, 5080, 40, 29896, 0x0c0988ea, F=0x0 +0, 5080, 5080, 0, 29896, 0x0c0988ea, F=0x0 1, 3520, 3520, 35, 2520, 0x17e3ca2b -0, 5120, 5120, 40, 19956, 0x0093aa0b, F=0x0 +0, 5120, 5120, 0, 19956, 0x0093aa0b, F=0x0 1, 3555, 3555, 27, 1944, 0x35c2de84 -0, 5160, 5160, 40, 16392, 0x8829a9ca, F=0x0 +0, 5160, 5160, 0, 16392, 0x8829a9ca, F=0x0 1, 3582, 3582, 27, 1944, 0x55b4db40 -0, 5200, 5200, 40, 16772, 0x9a4a546d, F=0x0 +0, 5200, 5200, 0, 16772, 0x9a4a546d, F=0x0 1, 3609, 3609, 29, 2088, 0xdaae14b2 -0, 5240, 5240, 40, 8920, 0xcd8ca203, F=0x0 +0, 5240, 5240, 0, 8920, 0xcd8ca203, F=0x0 1, 3638, 3638, 27, 1944, 0x92ccd37f -0, 5280, 5280, 40, 9632, 0x53c1d37b, F=0x0 +0, 5280, 5280, 0, 9632, 0x53c1d37b, F=0x0 1, 3665, 3665, 27, 1944, 0x70efede1 0, 5320, 5320, 40, 8976, 0xfe4da2cc, F=0x0 1, 3692, 3692, 27, 1944, 0x7601d304 diff --git a/tests/ref/lavf/ffm b/tests/ref/lavf/ffm index c4d7e1f807..e45ef08a24 100644 --- a/tests/ref/lavf/ffm +++ b/tests/ref/lavf/ffm @@ -1,3 +1,3 @@ -e63c16b5f0ad5015304fc4009fdb33ca *./tests/data/lavf/lavf.ffm +79674a5219d00e1d2221a29157b35eb4 *./tests/data/lavf/lavf.ffm 376832 ./tests/data/lavf/lavf.ffm ./tests/data/lavf/lavf.ffm CRC=0x000e23ae diff --git a/tests/ref/seek/lavf-voc b/tests/ref/seek/lavf-voc index 483c782e78..014c251129 100644 --- a/tests/ref/seek/lavf-voc +++ b/tests/ref/seek/lavf-voc @@ -4,13 +4,13 @@ ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 1024 ret: 0 st:-1 flags:1 ts: 1.894167 ret:-EOF ret: 0 st: 0 flags:0 ts: 0.788330 -ret: 0 st: 0 flags:1 dts: 0.800773 pts: 0.800773 pos: 33956 size: 1024 +ret: 0 st: 0 flags:1 dts: 0.800773 pts: 0.800773 pos: 34984 size: 1024 ret:-1 st: 0 flags:1 ts:-0.317494 ret:-1 st:-1 flags:0 ts: 2.576668 ret: 0 st:-1 flags:1 ts: 1.470835 ret:-EOF ret: 0 st: 0 flags:0 ts: 0.365012 -ret: 0 st: 0 flags:1 dts: 0.376834 pts: 0.376834 pos: 15452 size: 1024 +ret: 0 st: 0 flags:1 dts: 0.376834 pts: 0.376834 pos: 16480 size: 1024 ret:-1 st: 0 flags:1 ts:-0.740834 ret:-1 st:-1 flags:0 ts: 2.153336 ret: 0 st:-1 flags:1 ts: 1.047503 @@ -21,24 +21,24 @@ ret: 0 st: 0 flags:1 ts: 2.835848 ret:-EOF ret:-1 st:-1 flags:0 ts: 1.730004 ret: 0 st:-1 flags:1 ts: 0.624171 -ret: 0 st: 0 flags:1 dts: 0.612356 pts: 0.612356 pos: 25732 size: 1024 +ret: 0 st: 0 flags:1 dts: 0.612356 pts: 0.612356 pos: 26760 size: 1024 ret: 0 st: 0 flags:0 ts:-0.481669 ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 1024 ret: 0 st: 0 flags:1 ts: 2.412507 ret:-EOF ret:-1 st:-1 flags:0 ts: 1.306672 ret: 0 st:-1 flags:1 ts: 0.200839 -ret: 0 st: 0 flags:1 dts: 0.188417 pts: 0.188417 pos: 7228 size: 1024 +ret: 0 st: 0 flags:1 dts: 0.188417 pts: 0.188417 pos: 8256 size: 1024 ret: 0 st: 0 flags:0 ts:-0.904986 ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 32 size: 1024 ret: 0 st: 0 flags:1 ts: 1.989167 ret:-EOF ret: 0 st:-1 flags:0 ts: 0.883340 -ret: 0 st: 0 flags:1 dts: 0.894981 pts: 0.894981 pos: 38068 size: 1024 +ret: 0 st: 0 flags:1 dts: 0.894981 pts: 0.894981 pos: 39096 size: 1024 ret:-1 st:-1 flags:1 ts:-0.222493 ret:-1 st: 0 flags:0 ts: 2.671673 ret: 0 st: 0 flags:1 ts: 1.565849 ret:-EOF ret: 0 st:-1 flags:0 ts: 0.460008 -ret: 0 st: 0 flags:1 dts: 0.471043 pts: 0.471043 pos: 19564 size: 1024 +ret: 0 st: 0 flags:1 dts: 0.471043 pts: 0.471043 pos: 20592 size: 1024 ret:-1 st:-1 flags:1 ts:-0.645825 |