[FFmpeg-trac] #6058(undetermined:new): cuvid: Transcoding hangs after several files processed
FFmpeg
trac at avcodec.org
Thu Jan 5 14:01:26 EET 2017
#6058: cuvid: Transcoding hangs after several files processed
-------------------------------------+-------------------------------------
Reporter: slomkowski | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: nvenc | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by slomkowski):
Since ffmpeg doesn't crash, just hangs or waits for something, I cannot
provide backtrace. I just run ffmpeg once again with debug level, and this
my console output (note that other ffmpeg instance is still hanged in
background).
{{{
ffmpeg version N-82987-gd800d48 Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=../ffmpeg_build --enable-gpl --disable-debug
--enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopus
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree
--enable-nvenc --enable-libnpp --enable-vdpau --enable-cuda --enable-cuvid
libavutil 55. 43.100 / 55. 43.100
libavcodec 57. 70.101 / 57. 70.101
libavformat 57. 61.100 / 57. 61.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 68.100 / 6. 68.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-hwaccel_device' ... matched as option 'hwaccel_device'
(select a device for HW acceleration) with argument '0'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW
accelerated decoding) with argument 'cuvid'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'mpeg2_cuvid'.
Reading option '-i' ... matched as input url with argument
'/mnt/rtvprocessing/artifacts/2017-01-05/RV_N24____2017-01-05_09.14__vsn0
/raw-ts-file.ts'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'h264_nvenc'.
Reading option '-rc' ... matched as AVOption 'rc' with argument 'vbr'.
Reading option '-movflags' ... matched as AVOption 'movflags' with
argument '+faststart'.
Reading option 'video-file.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 loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url
/mnt/rtvprocessing/artifacts/2017-01-05/RV_N24____2017-01-05_09.14__vsn0
/raw-ts-file.ts.
Applying option hwaccel_device (select a device for HW acceleration) with
argument 0.
Applying option hwaccel (use HW accelerated decoding) with argument cuvid.
Applying option c:v (codec name) with argument mpeg2_cuvid.
Successfully parsed a group of options.
Opening an input file:
/mnt/rtvprocessing/artifacts/2017-01-05/RV_N24____2017-01-05_09.14__vsn0
/raw-ts-file.ts.
[file @ 0x21d5060] Setting default whitelist 'file,crypto'
[mpegts @ 0x21d4760] Format mpegts probed with size=2048 and score=50
[mpegts @ 0x21d4760] stream=0 stream_type=2 pid=3ff prog_reg_desc=
[mpegts @ 0x21d4760] stream=1 stream_type=3 pid=400 prog_reg_desc=
[mpegts @ 0x21d4760] stream=2 stream_type=6 pid=23 prog_reg_desc=
[mpegts @ 0x21d4760] Before avformat_find_stream_info() pos: 0 bytes
read:32768 seeks:0 nb_streams:3
[mpegts @ 0x21d4760] parser not found for codec dvb_teletext, packets or
times may be invalid.
Last message repeated 1 times
[mpeg2video @ 0x21d9220] Invalid frame dimensions 0x0.
Last message repeated 10 times
[mpegts @ 0x21d4760] max_analyze_duration 5000000 reached at 5000000
microseconds st:2
[mpegts @ 0x21d4760] PES packet size mismatch
[mpegts @ 0x21d4760] After avformat_find_stream_info() pos: 0 bytes
read:3330192 seeks:2 frames:449
Input #0, mpegts, from
'/mnt/rtvprocessing/artifacts/2017-01-05/RV_N24____2017-01-05_09.14__vsn0
/raw-ts-file.ts':
Duration: 00:18:00.88, start: 54479.140411, bitrate: 3785 kb/s
Program 17503
Stream #0:0[0x3ff], 118, 1/90000: Video: mpeg2video (Main), 1
reference frame ([2][0][0][0] / 0x0002), yuv420p(tv, top first, left),
720x576 [SAR 64:45 DAR 16:9], 0/1, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x400](deu), 204, 1/90000: Audio: mp2 ([3][0][0][0] /
0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
Stream #0:2[0x23](deu), 127, 1/90000: Subtitle: dvb_teletext
([6][0][0][0] / 0x0006)
Successfully opened the file.
Parsing a group of options: output url video-file.mp4.
Applying option c:v (codec name) with argument h264_nvenc.
Successfully parsed a group of options.
Opening an output file: video-file.mp4.
[file @ 0x22049a0] Setting default whitelist 'file,crypto'
Successfully opened the file.
Setting up CUVID transcoding
}}}
Just waits on `Setting up CUVID transcoding`. Also all ffmpeg instances
consume 100% CPU.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6058#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list