| 1 | FFmpeg crashes a lot.
|
|---|
| 2 |
|
|---|
| 3 | 1. Generally I convert videos from youtube. Every once in a while I get a crash, maybe 1 out of 100. The crash occurs consistently on the same file but sometimes changing the quality settings will get it to convert.
|
|---|
| 4 |
|
|---|
| 5 | 2. I have some realmedia files that crash all the time. I can't get them to convert. I have a few hundreds and about half convert and the other half will not even with different quality settings. Sometimes changing the quality will convert but most of the time it will not.
|
|---|
| 6 |
|
|---|
| 7 | This seems to be a problem with FFmpeg. 1. It shouldn't crash. 2. It probably should be able to handle the videos. I can play them just fine.
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | Stream mapping:
|
|---|
| 11 | Stream #0:1 -> #0:0 (rv20 (native) -> hevc (libx265))
|
|---|
| 12 | Stream #0:0 -> #0:1 (sipr (native) -> aac (native))
|
|---|
| 13 | Press [q] to stop, [?] for help
|
|---|
| 14 | x265 [info]: HEVC encoder version 3.4+2-73ca1d7be377
|
|---|
| 15 | x265 [info]: build info [Windows][GCC 10.2.1][64 bit] 8bit+10bit
|
|---|
| 16 | x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
|
|---|
| 17 | x265 [info]: Main profile, Level-2 (Main tier)
|
|---|
| 18 | x265 [info]: Thread pool created using 8 threads
|
|---|
| 19 | x265 [info]: Slices : 1
|
|---|
| 20 | x265 [info]: frame threads / pool features : 3 / wpp(4 rows)
|
|---|
| 21 | x265 [warning]: Source height < 720p; disabling lookahead-slices
|
|---|
| 22 | x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
|
|---|
| 23 | x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
|
|---|
| 24 | x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 3
|
|---|
| 25 | x265 [info]: Keyframe min / max / scenecut / bias : 25 / 250 / 40 / 5.00
|
|---|
| 26 | x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2
|
|---|
| 27 | x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
|
|---|
| 28 | x265 [info]: References / ref-limit cu / depth : 3 / off / on
|
|---|
| 29 | x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 32 / 1
|
|---|
| 30 | x265 [info]: Rate Control / qCompress : CRF-29.0 / 0.60
|
|---|
| 31 | x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
|
|---|
| 32 | x265 [info]: tools: b-intra strong-intra-smoothing deblock sao
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 | These are the commands passed to ffmpeg
|
|---|
| 36 |
|
|---|
| 37 | -threads 4 -f mp4 -movflags +faststart -c:v libx265 -framerate 30 -crf 30 -c:a aac -b:a 64k -af aresample=resampler=soxr -ar 44100
|
|---|
| 38 |
|
|---|
| 39 | changing crf to different values may allow the file to convert rather than crash ffmpeg.
|
|---|
| 40 |
|
|---|
| 41 | The crash is very annoying because it blocks the batch conversion. I wish FFmpeg would just abort and give an error code. This suggests there is a bug in the code. Crashes are always bad.
|
|---|
| 42 |
|
|---|
| 43 | I am attaching a video that produces the crash using those settings.
|
|---|
| 44 |
|
|---|
| 45 | https://ufile.io/knvgeepq
|
|---|
| 46 |
|
|---|
| 47 | https://ufile.io/n06sa2nw
|
|---|