YTPPlus
YTPPlus copied to clipboard
Create Video hangs indefinitely
Lazy guess without further testing:
Source 1 is only 12s. Assuming that no sequences overlap, cause of hang is likely to be that illegal clip count and min/max duration constraint isn't being checked prior to writing segments.
Params:
- Sources: 2
- Min Stream Duration: 0.2 (default)
- Max Stream Duration: 0.4 (default)
- Clip count: 20 (default), 10, 5, 4
Behavior:
- Clip count below 5 works.
- Clip count 5 or higher causes hang.
- Shell shows the process hanging at ffmpeg handling of temp5.mp4.
- Same behavior across all the jobs.
Source info:
- Only tested the same two sources with different options.
- Both had been downloaded with youtube-dl.
- Source 1 was a webm. Source 2 was an mkv.
- Both were reencoded to mp4 for use here with ffmpeg
-strict -2
for aac handling. - Mediainfo for the two sources included below.
Mediainfo
Source 1
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 452 KiB
Duration : 12 s 719 ms
Overall bit rate mode : Variable
Overall bit rate : 291 kb/s
Writing application : Lavf56.40.101
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 12 s 640 ms
Bit rate : 158 kb/s
Width : 320 pixels
Height : 240 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.083
Stream size : 244 KiB (54%)
Writing library : x264 core 148 r2643 5c65704
Encoding settings : 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=7 / 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
Language : English
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : mp4a-40-2
Duration : 12 s 719 ms
Bit rate mode : Variable
Bit rate : 128 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 197 KiB (44%)
Language : English
Default : Yes
Alternate group : 1
Source 2
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 105 MiB
Duration : 2 min 15 s
Overall bit rate : 6 530 kb/s
Writing application : Lavf56.40.101
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2 min 15 s
Bit rate : 6 393 kb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 30.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.026
Stream size : 103 MiB (98%)
Writing library : x264 core 148 r2643 5c65704
Encoding settings : 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=18 / lookahead_threads=3 / 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
Language : English
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : mp4a-40-2
Duration : 2 min 15 s
Bit rate mode : Constant
Bit rate : 132 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 2.11 MiB (2%)
Language : English
Default : Yes
Alternate group : 1
Further prodding:
- I normalized sources to remove other considerations.
- The new test was with Sources 2B and 3.
- The bug persisted, so 'best guess' above wasn't it.
Details
- Source 1
- Source 1 was very short and 240p.
- I replaced it outright with Source 3, entirely different media.
- Source 2
- Source 1 was 4K and had been reencoded with ffmpeg, as mentioned above.
- I replaced Source 2 with Source 2B.
- Source 2B
- Source 2B is a 2m15s, 1080 mp4 downloaded with
youtube-dl -f 137
.
- Source 2B is a 2m15s, 1080 mp4 downloaded with
- Source 3
- Source 3 is a 16m11s, 1080p mp4 downloaded with
youtube-dl -f 137
.
- Source 3 is a 16m11s, 1080p mp4 downloaded with
Mediainfo
Source 2B
Format : dash
Codec ID : dash (iso6/avc1/mp41)
File size : 41.0 MiB
Duration : 2 min 15 s
Overall bit rate : 2 540 kb/s
Encoded date : UTC 2017-02-04 11:07:05
Tagged date : UTC 2017-02-04 11:07:05
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 2 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2 min 15 s
Bit rate : 2 537 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 30.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.041
Stream size : 40.9 MiB (100%)
Encoded date : UTC 2017-02-04 11:07:05
Tagged date : UTC 2017-02-04 11:07:05
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Source 3
Format : dash
Codec ID : dash (iso6/avc1/mp41)
File size : 101 MiB
Duration : 16 min 11 s
Overall bit rate : 870 kb/s
Encoded date : UTC 2018-09-20 20:16:33
Tagged date : UTC 2018-09-20 20:16:33
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 3 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 3 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 16 min 11 s
Bit rate : 867 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.014
Stream size : 100 MiB (100%)
Encoded date : UTC 2018-09-20 20:16:33
Tagged date : UTC 2018-09-20 20:16:33
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
As of now there is absolutely no handling of errors when an effect is applied to a video, which is something I am working on for the next release.