Ticket #8220: gdb-cinepakenc

File gdb-cinepakenc, 11.4 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 '3'.
3Reading option '-stream_loop' ... matched as option 'stream_loop' (set number of times input stream shall be looped) with argument '23'.
4Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
5Reading option '-i' ... matched as input url with argument 'samples/webp/lossless_vec_1_4.webp'.
6Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
7Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0'.
8Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
9Reading option '-c:v:0' ... matched as option 'c' (codec name) with argument 'cinepak'.
10Reading option '-c:v:52' ... matched as option 'c' (codec name) with argument 'text'.
11Reading option '-disposition:s:8' ... matched as option 'disposition' (disposition) with argument 'adpcm_ms'.
12Reading option '-disposition:v:213' ... matched as option 'disposition' (disposition) with argument 'r10k'.
13Reading option '-vframes' ... matched as option 'vframes' (set the number of video frames to output) with argument '95'.
14Reading option '-aframes' ... matched as option 'aframes' (set the number of audio frames to output) with argument '2'.
15Reading option '-ab' ... matched as option 'ab' (audio bitrate (please use -b:a)) with argument '104k'.
16Reading option '-strict' ...Routing option strict to both codec and muxer layer
17 matched as AVOption 'strict' with argument '3'.
18Reading option 'output/tmp.avs2' ... matched as output url.
19Finished splitting the commandline.
20Parsing a group of options: global .
21Applying option y (overwrite output files) with argument 1.
22Applying option loglevel (set logging level) with argument 99.
23Successfully parsed a group of options.
24Parsing a group of options: input url samples/webp/lossless_vec_1_4.webp.
25Applying option t (record or transcode "duration" seconds of audio/video) with argument 3.
26Applying option stream_loop (set number of times input stream shall be looped) with argument 23.
27Successfully parsed a group of options.
28Opening an input file: samples/webp/lossless_vec_1_4.webp.
29[NULL @ 0x61b000000080] Opening 'samples/webp/lossless_vec_1_4.webp' for reading
30[file @ 0x6110000002c0] Setting default whitelist 'file,crypto'
31Probing image2 score:50 size:50
32Probing webp_pipe score:99 size:50
33[webp_pipe @ 0x61b000000080] Format webp_pipe probed with size=2048 and score=99
34[webp_pipe @ 0x61b000000080] Before avformat_find_stream_info() pos: 0 bytes read:50 seeks:0 nb_streams:1
35[webp_pipe @ 0x61b000000080] parser not found for codec webp, packets or times may be invalid.
36 Last message repeated 1 times
37[webp_pipe @ 0x61b000000080] stream 0: start_time: -368934881474191040.000 duration: -368934881474191040.000
38[webp_pipe @ 0x61b000000080] format: start_time: -9223372036854.775 duration: -9223372036854.775 (estimate from bit rate) bitrate=0 kb/s
39[webp_pipe @ 0x61b000000080] After avformat_find_stream_info() pos: 50 bytes read:50 seeks:0 frames:1
40Input #0, webp_pipe, from 'samples/webp/lossless_vec_1_4.webp':
41 Duration: N/A, bitrate: N/A
42 Stream #0:0, 1, 1/25: Video: webp, 1 reference frame, argb, 16x16, 0/1, lossless, 25 tbr, 25 tbn, 25 tbc
43Successfully opened the file.
44Parsing a group of options: output url output/tmp.avs2.
45Applying option map (set input stream mapping) with argument 0.
46Applying option c (codec name) with argument copy.
47Applying option c:v:0 (codec name) with argument cinepak.
48Applying option c:v:52 (codec name) with argument text.
49Applying option disposition:s:8 (disposition) with argument adpcm_ms.
50Applying option disposition:v:213 (disposition) with argument r10k.
51Applying option vframes (set the number of video frames to output) with argument 95.
52Applying option aframes (set the number of audio frames to output) with argument 2.
53Applying option ab (audio bitrate (please use -b:a)) with argument 104k.
54Successfully parsed a group of options.
55Opening an output file: output/tmp.avs2.
56Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (output/tmp.avs2) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
57[file @ 0x610000000640] Setting default whitelist 'file,crypto'
58Successfully opened the file.
59detected 48 logical cores
60[New Thread 0x7ffff172f700 (LWP 40844)]
61[New Thread 0x7ffff0f2e700 (LWP 40849)]
62[New Thread 0x7ffff072d700 (LWP 40852)]
63[New Thread 0x7fffeff2c700 (LWP 40858)]
64[New Thread 0x7fffef72b700 (LWP 40863)]
65[New Thread 0x7fffeef2a700 (LWP 40866)]
66[New Thread 0x7fffee729700 (LWP 40871)]
67[New Thread 0x7fffedf28700 (LWP 40873)]
68[New Thread 0x7fffed727700 (LWP 40877)]
69[New Thread 0x7fffecf26700 (LWP 40885)]
70[New Thread 0x7fffec725700 (LWP 40892)]
71[New Thread 0x7fffebf24700 (LWP 40895)]
72[New Thread 0x7fffeb723700 (LWP 40903)]
73[New Thread 0x7fffeaf22700 (LWP 40910)]
74[New Thread 0x7fffea721700 (LWP 40916)]
75[New Thread 0x7fffe9f20700 (LWP 40917)]
76Stream mapping:
77 Stream #0:0 -> #0:0 (webp (native) -> cinepak (native))
78Press [q] to stop, [?] for help
79cur_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)
80[New Thread 0x7fffe971f700 (LWP 40920)]
81[New Thread 0x7fffe8f1e700 (LWP 40924)]
82[New Thread 0x7fffe871d700 (LWP 40931)]
83[New Thread 0x7fffe7f1c700 (LWP 40934)]
84[New Thread 0x7fffe771b700 (LWP 40937)]
85[New Thread 0x7fffe6f1a700 (LWP 40941)]
86[New Thread 0x7fffe6719700 (LWP 40945)]
87[New Thread 0x7fffe5f18700 (LWP 40946)]
88[New Thread 0x7fffe5717700 (LWP 40950)]
89[New Thread 0x7fffe4f16700 (LWP 40952)]
90[New Thread 0x7fffe4715700 (LWP 40954)]
91[New Thread 0x7fffe3f14700 (LWP 40955)]
92[New Thread 0x7fffe3713700 (LWP 40958)]
93[New Thread 0x7fffe2f0a700 (LWP 40959)]
94[New Thread 0x7fffe26f3700 (LWP 40962)]
95[New Thread 0x7fffe1edc700 (LWP 40963)]
96[New Thread 0x7fffe16c5700 (LWP 40968)]
97[New Thread 0x7fffe0eae700 (LWP 40970)]
98[New Thread 0x7fffe0697700 (LWP 40974)]
99[New Thread 0x7fffdfe80700 (LWP 40978)]
100[New Thread 0x7fffdf669700 (LWP 40979)]
101[New Thread 0x7fffdee52700 (LWP 40996)]
102[New Thread 0x7fffde63b700 (LWP 41003)]
103[New Thread 0x7fffdde24700 (LWP 41017)]
104[New Thread 0x7fffdd60d700 (LWP 41027)]
105[New Thread 0x7fffdcdf6700 (LWP 41038)]
106[New Thread 0x7fffdc5df700 (LWP 41050)]
107[New Thread 0x7fffdbdc8700 (LWP 41056)]
108[New Thread 0x7fffdb5b1700 (LWP 41067)]
109[New Thread 0x7fffdad9a700 (LWP 41072)]
110[New Thread 0x7fffda583700 (LWP 41076)]
111[New Thread 0x7fffd9d6c700 (LWP 41083)]
112[New Thread 0x7fffd9555700 (LWP 41086)]
113[New Thread 0x7fffd8d3e700 (LWP 41089)]
114[New Thread 0x7fffd8527700 (LWP 41092)]
115[New Thread 0x7fffd7d10700 (LWP 41100)]
116[New Thread 0x7fffd74f9700 (LWP 41103)]
117[New Thread 0x7fffd6ce2700 (LWP 41106)]
118[New Thread 0x7fffd64cb700 (LWP 41108)]
119[New Thread 0x7fffd5cb4700 (LWP 41111)]
120[New Thread 0x7fffd549d700 (LWP 41115)]
121[New Thread 0x7fffd4c86700 (LWP 41122)]
122[New Thread 0x7fffd446f700 (LWP 41133)]
123[New Thread 0x7fffd3c58700 (LWP 41139)]
124[New Thread 0x7fffd3441700 (LWP 41142)]
125[New Thread 0x7fffd2c2a700 (LWP 41156)]
126[New Thread 0x7fffd2413700 (LWP 41163)]
127[New Thread 0x7fffd1bfc700 (LWP 41171)]
128 Last message repeated 1 times
129[graph 0 input from stream 0:0 @ 0x611000001580] Setting 'video_size' to value '16x16'
130[graph 0 input from stream 0:0 @ 0x611000001580] Setting 'pix_fmt' to value '25'
131[graph 0 input from stream 0:0 @ 0x611000001580] Setting 'time_base' to value '1/25'
132[graph 0 input from stream 0:0 @ 0x611000001580] Setting 'pixel_aspect' to value '0/1'
133[graph 0 input from stream 0:0 @ 0x611000001580] Setting 'sws_param' to value 'flags=2'
134[graph 0 input from stream 0:0 @ 0x611000001580] Setting 'frame_rate' to value '25/1'
135[graph 0 input from stream 0:0 @ 0x611000001580] w:16 h:16 pixfmt:argb tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
136[format @ 0x611000001940] Setting 'pix_fmts' to value 'rgb24|gray'
137[auto_scaler_0 @ 0x611000009280] Setting 'flags' to value 'bicubic'
138[auto_scaler_0 @ 0x611000009280] w:iw h:ih flags:'bicubic' interl:0
139[format @ 0x611000001940] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_null_0' and the filter 'format'
140[AVFilterGraph @ 0x60e000000d40] query_formats: 5 queried, 3 merged, 1 already done, 0 delayed
141[auto_scaler_0 @ 0x611000009280] picking rgb24 out of 2 ref:argb alpha:1
142[swscaler @ 0x62f000000400] Forcing full internal H chroma due to input having non subsampled chroma
143[auto_scaler_0 @ 0x611000009280] w:16 h:16 fmt:argb sar:0/1 -> w:16 h:16 fmt:rgb24 sar:0/1 flags:0x4
144Output #0, avs2, to 'output/tmp.avs2':
145 Metadata:
146 encoder : Lavf58.33.100
147 Stream #0:0, 0, 1/25: Video: cinepak, 1 reference frame, rgb24, 16x16, 0/1, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
148 Metadata:
149 encoder : Lavc58.59.101 cinepak
150Clipping frame in rate conversion by 0.000008
151
152Thread 1 "ffmpeg_usan" hit Breakpoint 1, encode_mode (s=0x6150000002c0, h=16, scratch_data=0x7fff00000010, scratch_linesize=0x7fffffffa850,
153 last_data=0x7fffffffa750, last_linesize=0x7fffffffa810, info=0x7fffffff7620, buf=0x61f000000e8c " ") at libavcodec/cinepakenc.c:602
154602 flags |= 1 << (31 - y + x);
155(gdb) c
156Continuing.
157libavcodec/cinepakenc.c:602:32: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
158SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/cinepakenc.c:602:32 in
159
160Thread 1 "ffmpeg_usan" hit Breakpoint 1, encode_mode (s=0x6150000002c0, h=8, scratch_data=0x7fff00000008, scratch_linesize=0x7fffffffa850,
161 last_data=0x7fffffffa750, last_linesize=0x7fffffffa810, info=0x7fffffff7620, buf=0x61f000000e8c " ") at libavcodec/cinepakenc.c:602
162602 flags |= 1 << (31 - y + x);
163(gdb) bt
164#0 encode_mode (s=0x6150000002c0, h=8, scratch_data=0x7fff00000008, scratch_linesize=0x7fffffffa850, last_data=0x7fffffffa750, last_linesize=0x7fffffffa810,
165 info=0x7fffffff7620, buf=0x61f000000e8c " ") at libavcodec/cinepakenc.c:602
166#1 0x000000000a453aed in rd_strip (y=0, s=<optimized out>, h=<optimized out>, keyframe=<optimized out>, last_data=<optimized out>,
167 last_linesize=<optimized out>, data=<optimized out>, linesize=<optimized out>, scratch_data=<optimized out>, scratch_linesize=<optimized out>,
168 buf=<optimized out>, best_score=<optimized out>) at libavcodec/cinepakenc.c:973
169#2 rd_frame (s=<optimized out>, frame=<optimized out>, isakeyframe=<optimized out>, buf=<optimized out>, buf_size=0) at libavcodec/cinepakenc.c:1100
170#3 0x000000000a44467e in cinepak_encode_frame (avctx=<optimized out>, pkt=0x60e000004480, frame=<optimized out>, got_packet=0x7fffffffad80)
171 at libavcodec/cinepakenc.c:1161
172#4 0x000000000b43ebad in avcodec_encode_video2 (avctx=0x619000003280, avpkt=<optimized out>, frame=0x61600003d280, got_packet_ptr=<optimized out>)
173 at libavcodec/encode.c:302
174#5 0x000000000b44b1c6 in do_encode (avctx=<optimized out>, frame=0x61600003d280, got_packet=0x7fffffffad80) at libavcodec/encode.c:371
175#6 0x000000000b448ee7 in avcodec_send_frame (avctx=<optimized out>, frame=0x61600003d280) at libavcodec/encode.c:420
176#7 0x0000000000a178d1 in do_video_out (of=0x60a0000002c0, ost=0x616000000f80, next_picture=0x61600003d280, sync_ipts=4.9406564584124654e-324)
177 at fftools/ffmpeg.c:1287
178#8 0x00000000009f818f in reap_filters (flush=0) at fftools/ffmpeg.c:1504
179#9 0x0000000000848299 in transcode_step () at fftools/ffmpeg.c:4648
180#10 transcode () at fftools/ffmpeg.c:4692
181#11 0x000000000081cf60 in main (argc=<optimized out>, argv=<optimized out>) at fftools/ffmpeg.c:4894
182