[FFmpeg-trac] #7071(undetermined:new): ffmpeg crashes in video capture on windows 10
FFmpeg
trac at avcodec.org
Wed Mar 7 23:42:14 EET 2018
#7071: ffmpeg crashes in video capture on windows 10
-------------------------------------+-------------------------------------
Reporter: rafaeldl | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: graph | Blocked By:
capture filte | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
I am trying to capture video in windows 10. On first run it works
correctly, but after period I try again and the command does not work
anymore, gets stuck in message "Selecting pin Audio Out on audio only". In
order to work again I have to restart the computer.
How to reproduce:
{{{
C:\ultravideo>ffmpeg -y -v 9 -loglevel 99 -report -framerate 25 -vsync 1
-video_size 720x480 -f dshow -rtbufsize 250000k
-crossbar_video_input_pin_number 0 -crossbar_audio_input_pin_number 2 -i
video="Conexant Polaris Video Capture":audio="Conexant Polaris Audio
Capture" out.mp4
ffmpeg started on 2018-03-07 at 18:18:03
Report written to "ffmpeg-20180307-181803.log"
ffmpeg version N-90242-g5ab0ecf283 Copyright (c) 2000-2018 the FFmpeg
developers
built with gcc 7.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
--enable-libspeex --enable-libxvid --enable-libmfx --enable-amf --enable-
ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2
--enable-avisynth
libavutil 56. 8.100 / 56. 8.100
libavcodec 58. 13.102 / 58. 13.102
libavformat 58. 10.100 / 58. 10.100
libavdevice 58. 2.100 / 58. 2.100
libavfilter 7. 12.100 / 7. 12.100
libswscale 5. 0.102 / 5. 0.102
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument '99'.
Reading option '-report' ... matched as option 'report' (generate a
report) with argument '1'.
Reading option '-framerate' ... matched as AVOption 'framerate' with
argument '25'.
Reading option '-vsync' ... matched as option 'vsync' (video sync method)
with argument '1'.
Reading option '-video_size' ... matched as AVOption 'video_size' with
argument '720x480'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'dshow'.
Reading option '-rtbufsize' ... matched as AVOption 'rtbufsize' with
argument '250000k'.
Reading option '-crossbar_video_input_pin_number' ... matched as AVOption
'crossbar_video_input_pin_number' with argument '0'.
Reading option '-crossbar_audio_input_pin_number' ... matched as AVOption
'crossbar_audio_input_pin_number' with argument '2'.
Reading option '-i' ... matched as input url with argument 'video=Conexant
Polaris Video Capture:audio=Conexant Polaris Audio Capture'.
Reading option 'out.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option v (set logging level) with argument 9.
Applying option report (generate a report) with argument 1.
Applying option vsync (video sync method) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url video=Conexant Polaris Video
Capture:audio=Conexant Polaris Audio Capture.
Applying option f (force format) with argument dshow.
Successfully parsed a group of options.
Opening an input file: video=Conexant Polaris Video Capture:audio=Conexant
Polaris Audio Capture.
[dshow @ 000002961f2bc080] Selecting pin Capturar on video
[dshow @ 000002961f2bc080] Crossbar Switching Information for Conexant
Polaris Video Capture:
[dshow @ 000002961f2bc080] Routing video input from pin 0
[dshow @ 000002961f2bc080] Crossbar Output pin 0: "Video Decoder"
related output pin: 1 current input pin: 0 compatible input pins: 0 1
[dshow @ 000002961f2bc080] Routing audio input from pin 2
[dshow @ 000002961f2bc080] Crossbar Output pin 1: "Audio Decoder"
related output pin: 0 current input pin: 2 compatible input pins: 2
[dshow @ 000002961f2bc080] Crossbar Input pin 0 - "S-Video" related
input pin: 2
[dshow @ 000002961f2bc080] Crossbar Input pin 1 - "Video Composite"
related input pin: 2
[dshow @ 000002961f2bc080] Crossbar Input pin 2 - "Audio Line" related
input pin: 1
[dshow @ 000002961f2bc080] not reusing previous graph capture filter
@device_pnp_\\?\usb#vid_1f4d&pid_0102&mi_01#6&31956d8d&0&0001#{33d9a762-90c8-11d0-bd43-00a0c911ce86}\{5eaf914d-2212-4034
-8c4c-02cafd15d68a} !=
@device_pnp_\\?\usb#vid_1f4d&pid_0102&mi_01#6&31956d8d&0&0001#{65e8773d-
8f56-11d0-a3b9-00a0c9223196}\{9b365890-165f-11d0-a195-0020afd156e4}
[dshow @ 000002961f2bc080] Selecting pin Audio Out on audio only
}}}
The FFMPEG process is running and using 25% CPU and when I close it
displays the following information:
{{{
Received windows signal 0
[dshow @ 000002961f2bc080] interrupted
[dshow @ 000002961f2bc080] stream 0: start_time: -922337203685.478
duration: -922337203685.478
[dshow @ 000002961f2bc080] stream 1: start_time: -922337203685.478
duration: -922337203685.478
[dshow @ 000002961f2bc080] format: start_time: -9223372036854.775
duration: -9223372036854.775 bitrate=0 kb/s
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, dshow, from 'video=Conexant Polaris Video Capture:audio=Conexant
Polaris Audio Capture':
Duration: N/A, bitrate: N/A
Stream #0:0, 0, 1/10000000: Video: rawvideo, 1 reference frame (UYVY /
0x59565955), uyvy422, 720x480 (0x0), 0/1, 25 fps, 25 tbr, 10000k tbn,
10000k tbc
Stream #0:1, 0, 1/10000000: Audio: pcm_s16le, 48000 Hz, stereo, s16,
1536 kb/s
Successfully opened the file.
Parsing a group of options: output url out.mp4.
Successfully parsed a group of options.
Opening an output file: out.mp4.
[file @ 000002961f368200] Setting default whitelist 'file,crypto'
Successfully opened the file.
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
Finishing stream 0:0 without any data written to it.
detected 4 logical cores
[graph 0 input from stream 0:0 @ 000002961f941e80] Setting 'video_size' to
value '720x480'
[graph 0 input from stream 0:0 @ 000002961f941e80] Setting 'pix_fmt' to
value '15'
[graph 0 input from stream 0:0 @ 000002961f941e80] Setting 'time_base' to
value '1/10000000'
[graph 0 input from stream 0:0 @ 000002961f941e80] Setting 'pixel_aspect'
to value '0/1'
[graph 0 input from stream 0:0 @ 000002961f941e80] Setting 'sws_param' to
value 'flags=2'
[graph 0 input from stream 0:0 @ 000002961f941e80] Setting 'frame_rate' to
value '10000000/400000'
[graph 0 input from stream 0:0 @ 000002961f941e80] w:720 h:480
pixfmt:uyvy422 tb:1/10000000 fr:10000000/400000 sar:0/1 sws_param:flags=2
[format @ 000002961f36f800] Setting 'pix_fmts' to value
'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21|yuv420p10le|yuv422p10le|yuv444p10le|nv20le'
[auto_scaler_0 @ 000002961f371140] Setting 'flags' to value 'bicubic'
[auto_scaler_0 @ 000002961f371140] w:iw h:ih flags:'bicubic' interl:0
[format @ 000002961f36f800] auto-inserting filter 'auto_scaler_0' between
the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 000002961f9415c0] query_formats: 4 queried, 2 merged, 1
already done, 0 delayed
[auto_scaler_0 @ 000002961f371140] picking yuv422p out of 11 ref:uyvy422
alpha:0
[auto_scaler_0 @ 000002961f371140] w:720 h:480 fmt:uyvy422 sar:0/1 ->
w:720 h:480 fmt:yuv422p sar:0/1 flags:0x4
[libx264 @ 000002961f2dae40] using mv_range_thread = 40
[libx264 @ 000002961f2dae40] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000002961f2dae40] profile High 4:2:2, level 3.0, 4:2:2 8-bit
[libx264 @ 000002961f2dae40] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4
AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html -
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Finishing stream 0:1 without any data written to it.
[graph_1_in_0_1 @ 00000296202b9100] Setting 'time_base' to value '1/48000'
[graph_1_in_0_1 @ 00000296202b9100] Setting 'sample_rate' to value '48000'
[graph_1_in_0_1 @ 00000296202b9100] Setting 'sample_fmt' to value 's16'
[graph_1_in_0_1 @ 00000296202b9100] Setting 'channel_layout' to value
'0x3'
[graph_1_in_0_1 @ 00000296202b9100] tb:1/48000 samplefmt:s16
samplerate:48000 chlayout:0x3
[format_out_0_1 @ 00000296202b8a00] Setting 'sample_fmts' to value 'fltp'
[format_out_0_1 @ 00000296202b8a00] Setting 'sample_rates' to value
'96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'
[format_out_0_1 @ 00000296202b8a00] auto-inserting filter
'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter
'format_out_0_1'
[AVFilterGraph @ 000002961f373b00] query_formats: 4 queried, 6 merged, 3
already done, 0 delayed
[auto_resampler_0 @ 00000296202b8900] [SWR @ 000002961faba000] Using s16p
internally between filters
[auto_resampler_0 @ 00000296202b8900] ch:2 chl:stereo fmt:s16 r:48000Hz ->
ch:2 chl:stereo fmt:fltp r:48000Hz
Output #0, mp4, to 'out.mp4':
Metadata:
encoder : Lavf58.10.100
Stream #0:0, 0, 1/12800: Video: h264 (libx264), 1 reference frame
(avc1 / 0x31637661), yuv422p, 720x480, 0/1, q=-1--1, 25 fps, 12800 tbn, 25
tbc
Metadata:
encoder : Lavc58.13.102 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1, 0, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000
Hz, stereo, fltp, delay 1024, 128 kb/s
Metadata:
encoder : Lavc58.13.102 aac
frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.00 bitrate=N/A
speed= 0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Input file #0 (video=Conexant Polaris Video Capture:audio=Conexant Polaris
Audio Capture):
Input stream #0:0 (video): 0 packets read (0 bytes); 0 frames decoded;
Input stream #0:1 (audio): 0 packets read (0 bytes); 0 frames decoded (0
samples);
Total: 0 packets (0 bytes) demuxed
Output file #0 (out.mp4):
Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes);
Output stream #0:1 (audio): 0 frames encoded (0 samples); 0 packets
muxed (0 bytes);
Total: 0 packets (0 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 000002961f3682c0] Statistics: 2 seeks, 3 writeouts
[aac @ 000002961f2dcc40] Qavg: nan
dshow passing through packet of type video size 0 timestamp
300922280000 orig timestamp 2968970887735200 graph timestamp 300922280000
diff -2968669965455200 Conexant Polaris Video Capture
Exiting normally, received signal 2.
}}}
Does anyone know what may be happening?
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7071>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list