Ticket #8221: gdb-vc2enc

File gdb-vc2enc, 16.1 KB (added by Suhwan, 7 years ago)
Line 
1Splitting the commandline.
2Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '1'.
3Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
4Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '118'.
5Reading option '-i' ... matched as input url with argument 'samples/jpg/blue-1x1.jpg'.
6Reading option '-target' ... matched as option 'target' (specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-")) with argument 'vcd'.
7Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
8Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0'.
9Reading option '-c:v:0' ... matched as option 'c' (codec name) with argument 'vc2'.
10Reading option '-disposition:v:105' ... matched as option 'disposition' (disposition) with argument 'ppm'.
11Reading option '-disposition:a:103' ... matched as option 'disposition' (disposition) with argument 'alias_pix'.
12Reading option '-aframes' ... matched as option 'aframes' (set the number of audio frames to output) with argument '118'.
13Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '71'.
14Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '440k'.
15Reading option 'output/tmp.mp4' ... matched as output url.
16Finished splitting the commandline.
17Parsing a group of options: global .
18Applying option y (overwrite output files) with argument 1.
19Applying option loglevel (set logging level) with argument 99.
20Successfully parsed a group of options.
21Parsing a group of options: input url samples/jpg/blue-1x1.jpg.
22Applying option t (record or transcode "duration" seconds of audio/video) with argument 1.
23Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 118.
24Successfully parsed a group of options.
25Opening an input file: samples/jpg/blue-1x1.jpg.
26[NULL @ 0x61b000000080] Opening 'samples/jpg/blue-1x1.jpg' for reading
27[file @ 0x610000000140] Setting default whitelist 'file,crypto'
28Probing image2 score:50 size:319
29Probing mpegts score:2 size:319
30Probing jpeg_pipe score:51 size:319
31[jpeg_pipe @ 0x61b000000080] Format jpeg_pipe probed with size=2048 and score=51
32[jpeg_pipe @ 0x61b000000080] Before avformat_find_stream_info() pos: 0 bytes read:319 seeks:0 nb_streams:1
33[mjpeg @ 0x619000000580] marker=d8 avail_size_in_buf=317
34[mjpeg @ 0x619000000580] marker parser used 0 bytes (0 bits)
35[mjpeg @ 0x619000000580] marker=e0 avail_size_in_buf=315
36[mjpeg @ 0x619000000580] marker parser used 16 bytes (128 bits)
37[mjpeg @ 0x619000000580] marker=fe avail_size_in_buf=297
38[mjpeg @ 0x619000000580] marker parser used 28 bytes (224 bits)
39[mjpeg @ 0x619000000580] marker=db avail_size_in_buf=267
40[mjpeg @ 0x619000000580] index=0
41[mjpeg @ 0x619000000580] qscale[0]: 0
42[mjpeg @ 0x619000000580] marker parser used 67 bytes (536 bits)
43[mjpeg @ 0x619000000580] marker=db avail_size_in_buf=198
44[mjpeg @ 0x619000000580] index=1
45[mjpeg @ 0x619000000580] qscale[1]: 0
46[mjpeg @ 0x619000000580] marker parser used 67 bytes (536 bits)
47[mjpeg @ 0x619000000580] marker=c0 avail_size_in_buf=129
48[mjpeg @ 0x619000000580] Changing bps from 0 to 8
49[mjpeg @ 0x619000000580] sof0: picture: 1x1
50[mjpeg @ 0x619000000580] component 0 2:2 id: 0 quant:0
51[mjpeg @ 0x619000000580] component 1 1:1 id: 1 quant:1
52[mjpeg @ 0x619000000580] component 2 1:1 id: 2 quant:1
53[mjpeg @ 0x619000000580] pix fmt id 22111100
54[mjpeg @ 0x619000000580] Format yuvj420p chosen by get_format().
55[mjpeg @ 0x619000000580] marker parser used 17 bytes (136 bits)
56[mjpeg @ 0x619000000580] marker=c4 avail_size_in_buf=110
57[mjpeg @ 0x619000000580] marker parser used 0 bytes (0 bits)
58[mjpeg @ 0x619000000580] marker=c4 avail_size_in_buf=87
59[mjpeg @ 0x619000000580] marker parser used 0 bytes (0 bits)
60[mjpeg @ 0x619000000580] marker=c4 avail_size_in_buf=65
61[mjpeg @ 0x619000000580] marker parser used 0 bytes (0 bits)
62[mjpeg @ 0x619000000580] marker=c4 avail_size_in_buf=42
63[mjpeg @ 0x619000000580] marker parser used 0 bytes (0 bits)
64[mjpeg @ 0x619000000580] escaping removed 1 bytes
65[mjpeg @ 0x619000000580] marker=da avail_size_in_buf=20
66[mjpeg @ 0x619000000580] marker parser used 19 bytes (152 bits)
67[mjpeg @ 0x619000000580] EOI missing, emulating
68[mjpeg @ 0x619000000580] decode frame unused 0 bytes
69[jpeg_pipe @ 0x61b000000080] stream 0: start_time: -368934881474191040.000 duration: -368934881474191040.000
70[jpeg_pipe @ 0x61b000000080] format: start_time: -9223372036854.775 duration: -9223372036854.775 (estimate from bit rate) bitrate=0 kb/s
71[jpeg_pipe @ 0x61b000000080] After avformat_find_stream_info() pos: 319 bytes read:319 seeks:0 frames:1
72Input #0, jpeg_pipe, from 'samples/jpg/blue-1x1.jpg':
73 Duration: N/A, bitrate: N/A
74 Stream #0:0, 1, 1/25: Video: mjpeg (Baseline), 1 reference frame, yuvj420p(pc, bt470bg/unknown/unknown, center), 1x1 [SAR 72:72 DAR 1:1], 0/1, 25 tbr, 25 tbn, 25 tbc
75Successfully opened the file.
76Parsing a group of options: output url output/tmp.mp4.
77Applying option target (specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-")) with argument vcd.
78Assuming PAL for target.
79Applying option map (set input stream mapping) with argument 0.
80Applying option c:v:0 (codec name) with argument vc2.
81Applying option disposition:v:105 (disposition) with argument ppm.
82Applying option disposition:a:103 (disposition) with argument alias_pix.
83Applying option aframes (set the number of audio frames to output) with argument 118.
84Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 71.
85Applying option b:v (video bitrate (please use -b:v)) with argument 440k.
86Successfully parsed a group of options.
87Opening an output file: output/tmp.mp4.
88[file @ 0x610000000940] Setting default whitelist 'file,crypto'
89Successfully opened the file.
90Stream mapping:
91 Stream #0:0 -> #0:0 (mjpeg (native) -> dirac (vc2))
92Press [q] to stop, [?] for help
93cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
94[mjpeg @ 0x619000000a80] marker=d8 avail_size_in_buf=317
95[mjpeg @ 0x619000000a80] marker parser used 0 bytes (0 bits)
96[mjpeg @ 0x619000000a80] marker=e0 avail_size_in_buf=315
97[mjpeg @ 0x619000000a80] marker parser used 16 bytes (128 bits)
98[mjpeg @ 0x619000000a80] marker=fe avail_size_in_buf=297
99[mjpeg @ 0x619000000a80] marker parser used 28 bytes (224 bits)
100[mjpeg @ 0x619000000a80] marker=db avail_size_in_buf=267
101[mjpeg @ 0x619000000a80] index=0
102[mjpeg @ 0x619000000a80] qscale[0]: 0
103[mjpeg @ 0x619000000a80] marker parser used 67 bytes (536 bits)
104[mjpeg @ 0x619000000a80] marker=db avail_size_in_buf=198
105[mjpeg @ 0x619000000a80] index=1
106[mjpeg @ 0x619000000a80] qscale[1]: 0
107[mjpeg @ 0x619000000a80] marker parser used 67 bytes (536 bits)
108[mjpeg @ 0x619000000a80] marker=c0 avail_size_in_buf=129
109[mjpeg @ 0x619000000a80] sof0: picture: 1x1
110[mjpeg @ 0x619000000a80] component 0 2:2 id: 0 quant:0
111[mjpeg @ 0x619000000a80] component 1 1:1 id: 1 quant:1
112[mjpeg @ 0x619000000a80] component 2 1:1 id: 2 quant:1
113[mjpeg @ 0x619000000a80] pix fmt id 22111100
114[mjpeg @ 0x619000000a80] Format yuvj420p chosen by get_format().
115[mjpeg @ 0x619000000a80] marker parser used 17 bytes (136 bits)
116[mjpeg @ 0x619000000a80] marker=c4 avail_size_in_buf=110
117[mjpeg @ 0x619000000a80] class=0 index=0 nb_codes=11
118[mjpeg @ 0x619000000a80] marker parser used 21 bytes (168 bits)
119[mjpeg @ 0x619000000a80] marker=c4 avail_size_in_buf=87
120[mjpeg @ 0x619000000a80] class=1 index=0 nb_codes=1
121[mjpeg @ 0x619000000a80] marker parser used 20 bytes (160 bits)
122[mjpeg @ 0x619000000a80] marker=c4 avail_size_in_buf=65
123[mjpeg @ 0x619000000a80] class=0 index=1 nb_codes=11
124[mjpeg @ 0x619000000a80] marker parser used 21 bytes (168 bits)
125[mjpeg @ 0x619000000a80] marker=c4 avail_size_in_buf=42
126[mjpeg @ 0x619000000a80] class=1 index=1 nb_codes=1
127[mjpeg @ 0x619000000a80] marker parser used 20 bytes (160 bits)
128[mjpeg @ 0x619000000a80] escaping removed 1 bytes
129[mjpeg @ 0x619000000a80] marker=da avail_size_in_buf=20
130[mjpeg @ 0x619000000a80] component: 0
131[mjpeg @ 0x619000000a80] component: 1
132[mjpeg @ 0x619000000a80] component: 2
133[mjpeg @ 0x619000000a80] marker parser used 18 bytes (138 bits)
134[mjpeg @ 0x619000000a80] marker=d9 avail_size_in_buf=0
135[mjpeg @ 0x619000000a80] decode frame unused 0 bytes
136detected 48 logical cores
137[New Thread 0x7ffff172f700 (LWP 25448)]
138[New Thread 0x7ffff0f2e700 (LWP 25458)]
139[New Thread 0x7ffff072d700 (LWP 25468)]
140[New Thread 0x7fffeff2c700 (LWP 25487)]
141[New Thread 0x7fffef72b700 (LWP 25507)]
142[New Thread 0x7fffeef2a700 (LWP 25509)]
143[New Thread 0x7fffee729700 (LWP 25518)]
144[New Thread 0x7fffedf28700 (LWP 25538)]
145[New Thread 0x7fffed727700 (LWP 25552)]
146[New Thread 0x7fffecf26700 (LWP 25566)]
147[New Thread 0x7fffec725700 (LWP 25568)]
148[New Thread 0x7fffebf24700 (LWP 25571)]
149[New Thread 0x7fffeb723700 (LWP 25574)]
150[New Thread 0x7fffeaf22700 (LWP 25577)]
151[New Thread 0x7fffea721700 (LWP 25582)]
152[New Thread 0x7fffe9f20700 (LWP 25584)]
153[New Thread 0x7fffe971f700 (LWP 25586)]
154[New Thread 0x7fffe8f1e700 (LWP 25588)]
155[New Thread 0x7fffe871d700 (LWP 25590)]
156[New Thread 0x7fffe7f1c700 (LWP 25593)]
157[New Thread 0x7fffe771b700 (LWP 25596)]
158[New Thread 0x7fffe6f1a700 (LWP 25598)]
159[New Thread 0x7fffe6719700 (LWP 25600)]
160[New Thread 0x7fffe5f18700 (LWP 25602)]
161[New Thread 0x7fffe5717700 (LWP 25604)]
162[New Thread 0x7fffe4f16700 (LWP 25606)]
163[New Thread 0x7fffe4715700 (LWP 25611)]
164[New Thread 0x7fffe3f14700 (LWP 25614)]
165[New Thread 0x7fffe3713700 (LWP 25617)]
166[New Thread 0x7fffe2f0a700 (LWP 25620)]
167[New Thread 0x7fffe26f3700 (LWP 25623)]
168[New Thread 0x7fffe1edc700 (LWP 25628)]
169[New Thread 0x7fffe16c5700 (LWP 25631)]
170[New Thread 0x7fffe0eae700 (LWP 25635)]
171[New Thread 0x7fffe0697700 (LWP 25637)]
172[New Thread 0x7fffdfe80700 (LWP 25639)]
173[New Thread 0x7fffdf669700 (LWP 25641)]
174[New Thread 0x7fffdee52700 (LWP 25644)]
175[New Thread 0x7fffde63b700 (LWP 25669)]
176[New Thread 0x7fffdde24700 (LWP 25676)]
177[New Thread 0x7fffdd60d700 (LWP 25688)]
178[New Thread 0x7fffdcdf6700 (LWP 25701)]
179[New Thread 0x7fffdc5df700 (LWP 25721)]
180[New Thread 0x7fffdbdc8700 (LWP 25738)]
181[New Thread 0x7fffdb5b1700 (LWP 25742)]
182[New Thread 0x7fffdad9a700 (LWP 25756)]
183[New Thread 0x7fffda583700 (LWP 25766)]
184[New Thread 0x7fffd9d6c700 (LWP 25774)]
185[graph 0 input from stream 0:0 @ 0x611000000f40] Setting 'video_size' to value '1x1'
186[graph 0 input from stream 0:0 @ 0x611000000f40] Setting 'pix_fmt' to value '12'
187[graph 0 input from stream 0:0 @ 0x611000000f40] Setting 'time_base' to value '1/118'
188[graph 0 input from stream 0:0 @ 0x611000000f40] Setting 'pixel_aspect' to value '72/72'
189[graph 0 input from stream 0:0 @ 0x611000000f40] Setting 'sws_param' to value 'flags=2'
190[graph 0 input from stream 0:0 @ 0x611000000f40] Setting 'frame_rate' to value '118/1'
191[graph 0 input from stream 0:0 @ 0x611000000f40] w:1 h:1 pixfmt:yuvj420p tb:1/118 fr:118/1 sar:72/72 sws_param:flags=2
192[scaler_out_0_0 @ 0x611000001300] Setting 'w' to value '352'
193[scaler_out_0_0 @ 0x611000001300] Setting 'h' to value '288'
194[scaler_out_0_0 @ 0x611000001300] Setting 'flags' to value 'bicubic'
195[scaler_out_0_0 @ 0x611000001300] w:352 h:288 flags:'bicubic' interl:0
196[format @ 0x611000001580] Setting 'pix_fmts' to value 'yuv420p|yuv422p|yuv444p|yuv420p10le|yuv422p10le|yuv444p10le|yuv420p12le|yuv422p12le|yuv444p12le'
197[AVFilterGraph @ 0x60e000001440] query_formats: 6 queried, 5 merged, 0 already done, 0 delayed
198[scaler_out_0_0 @ 0x611000001300] picking yuv420p out of 9 ref:yuvj420p alpha:0
199[swscaler @ 0x62f000000400] deprecated pixel format used, make sure you did set range correctly
200[scaler_out_0_0 @ 0x611000001300] w:1 h:1 fmt:yuvj420p sar:72/72 -> w:352 h:288 fmt:yuv420p sar:9/11 flags:0x4
201[New Thread 0x7fffd9555700 (LWP 25843)]
202[New Thread 0x7fffd8d3e700 (LWP 25854)]
203[New Thread 0x7fffd8527700 (LWP 25862)]
204[New Thread 0x7fffd7d10700 (LWP 25865)]
205[New Thread 0x7fffd74f9700 (LWP 25876)]
206[New Thread 0x7fffd6ce2700 (LWP 25880)]
207[New Thread 0x7fffd64cb700 (LWP 25894)]
208[New Thread 0x7fffd5cb4700 (LWP 25909)]
209[New Thread 0x7fffd549d700 (LWP 25919)]
210[New Thread 0x7fffd4c86700 (LWP 25926)]
211[New Thread 0x7fffd446f700 (LWP 25931)]
212[New Thread 0x7fffd3c58700 (LWP 25950)]
213[New Thread 0x7fffd3441700 (LWP 25958)]
214[New Thread 0x7fffd2c2a700 (LWP 25962)]
215[New Thread 0x7fffd2413700 (LWP 25978)]
216[vc2 @ 0x619000001e80] Format does not strictly comply with VC2 specs
217[vcd @ 0x61b000000780] VBV buffer size not set, using default size of 230KB
218If you want the mpeg file to be compliant to some specification
219Like DVD, VCD or others, make sure you set the correct buffer size
220Output #0, vcd, to 'output/tmp.mp4':
221 Metadata:
222 encoder : Lavf58.33.100
223 Stream #0:0, 0, 1/90000: Video: dirac (vc2), 1 reference frame, yuv420p(center), 352x288 [SAR 9:11 DAR 1:1], 0/1, q=2-31, 440 kb/s, 71 fps, 90k tbn, 71 tbc
224 Metadata:
225 encoder : Lavc58.59.101 vc2
226Clipping frame in rate conversion by 0.000008
227*** 2 dup!
228
229Thread 1 "ffmpeg_g" hit Breakpoint 1, calc_slice_sizes (s=0x61f000000080) at libavcodec/vc2enc.c:660
230660 args->bits_ceil = s->slice_max_bytes << 3;
231(gdb) n
232libavcodec/vc2enc.c:660:51: runtime error: left shift of negative value -2
233SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/vc2enc.c:660:51 in
234661 args->bits_floor = s->slice_min_bytes << 3;
235(gdb) bt
236#0 calc_slice_sizes (s=0x61f000000080) at libavcodec/vc2enc.c:661
237#1 0x0000000013fe64f3 in encode_frame (s=0x61f000000080, avpkt=0x60e000004700, frame=<optimized out>, aux_data=0x20892c00 <.str.64> "Lavc58.59.101",
238 header_size=114, field=0) at libavcodec/vc2enc.c:913
239#2 0x0000000013fe0057 in vc2_encode_frame (avctx=<optimized out>, avpkt=0x60e000004700, frame=0x616000039680, got_packet=0x7fffffffade0)
240 at libavcodec/vc2enc.c:985
241#3 0x000000000b436eed in avcodec_encode_video2 (avctx=0x619000001e80, avpkt=<optimized out>, frame=0x616000039680, got_packet_ptr=<optimized out>)
242 at libavcodec/encode.c:302
243#4 0x000000000b443506 in do_encode (avctx=<optimized out>, frame=0x616000039680, got_packet=0x7fffffffade0) at libavcodec/encode.c:371
244#5 0x000000000b441227 in avcodec_send_frame (avctx=<optimized out>, frame=0x616000039680) at libavcodec/encode.c:420
245#6 0x0000000000a178d1 in do_video_out (of=0x60a000000340, ost=0x616000001280, next_picture=0x616000039680, sync_ipts=4.9406564584124654e-324)
246 at fftools/ffmpeg.c:1287
247#7 0x00000000009f818f in reap_filters (flush=0) at fftools/ffmpeg.c:1504
248#8 0x0000000000848299 in transcode_step () at fftools/ffmpeg.c:4648
249#9 transcode () at fftools/ffmpeg.c:4692
250#10 0x000000000081cf60 in main (argc=<optimized out>, argv=<optimized out>) at fftools/ffmpeg.c:4894
251(gdb) n
252libavcodec/vc2enc.c:661:51: runtime error: left shift of negative value -1
253SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/vc2enc.c:661:51 in
254662 memset(args->cache, 0, s->q_ceil*sizeof(*args->cache));
255(gdb) bt
256#0 calc_slice_sizes (s=0x61f000000080) at libavcodec/vc2enc.c:662
257#1 0x0000000013fe64f3 in encode_frame (s=0x61f000000080, avpkt=0x60e000004700, frame=<optimized out>, aux_data=0x20892c00 <.str.64> "Lavc58.59.101",
258 header_size=114, field=0) at libavcodec/vc2enc.c:913
259#2 0x0000000013fe0057 in vc2_encode_frame (avctx=<optimized out>, avpkt=0x60e000004700, frame=0x616000039680, got_packet=0x7fffffffade0)
260 at libavcodec/vc2enc.c:985
261#3 0x000000000b436eed in avcodec_encode_video2 (avctx=0x619000001e80, avpkt=<optimized out>, frame=0x616000039680, got_packet_ptr=<optimized out>)
262 at libavcodec/encode.c:302
263#4 0x000000000b443506 in do_encode (avctx=<optimized out>, frame=0x616000039680, got_packet=0x7fffffffade0) at libavcodec/encode.c:371
264#5 0x000000000b441227 in avcodec_send_frame (avctx=<optimized out>, frame=0x616000039680) at libavcodec/encode.c:420
265#6 0x0000000000a178d1 in do_video_out (of=0x60a000000340, ost=0x616000001280, next_picture=0x616000039680, sync_ipts=4.9406564584124654e-324)
266 at fftools/ffmpeg.c:1287
267#7 0x00000000009f818f in reap_filters (flush=0) at fftools/ffmpeg.c:1504
268#8 0x0000000000848299 in transcode_step () at fftools/ffmpeg.c:4648
269#9 transcode () at fftools/ffmpeg.c:4692
270#10 0x000000000081cf60 in main (argc=<optimized out>, argv=<optimized out>) at fftools/ffmpeg.c:4894