Registered User
Join Date: Dec 2018
Posts: 2
|
problems with fps conversion and deinterlacing with ffmpeg in staxrip
Hello guys,
since I changed from 2.29 to 2.42.1 last week, neither deinterlacing nor frame conversion work using ffmpeg within staxrip.
On the end of a fps conversion the program stops with an error that there were too less frames to encode. How can I tell staxrip that exactly this was my intention (I have 720p50 input which I convert to 480p25)?
And second, deinterlacing doesn't work with ffmpeg.
My command line looks like: -hwaccel cuda -hwaccel_output_format cuda -c:v h264_nvenc -profile:v high -v verbose -vf yadif,delogo=x=100:y=59:w=30:h=60,eq=gamma=0.91:saturation=1.4,crop=1920:1080:0:0,scale=1744x980:flags=lanczos,unsharp=3:3:2 -preset p6 -tune hq -rc vbr -rc-lookahead 32 -spatial-aq 1 -temporal-aq 1 -coder cabac -refs 2 -bf 4 -b_ref_mode middle -b:v 4300k
The log is this:
Quote:
------------------------- System Environment -------------------------
StaxRip : v2.42.1
Settings : v2.42.1
Windows : Windows 10 Pro 22H2 2009 (19041.1.amd64fre.vb_release.191206-1406)
Language : German (Germany)
CPU : AMD Ryzen 9 5900X 12-Core Processor
RAM : 32GB
GPU : NVIDIA GeForce RTX 4060 Ti
Resolution : 2560 x 1440
DPI : 96
Code Page : 1252
----------------------- Media Info Source File -----------------------
D:\GBlueUE4k\1\20240921 Hello_fixed.ts
General
ID : 10016 (0x2720)
Complete name : D:\GBlueUE4k\1\20240921 Hello_fixed.ts
Format : MPEG-TS
File size : 2.46 GiB
Duration : 42 min 15 s
Overall bit rate mode : Variable
Overall bit rate : 8 342 kb/s
Frame rate : 25.000 FPS
Video
ID : 6571 (0x19AB)
Menu ID : 50032 (0xC370)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format, CABAC : Yes
Format, Reference frames : 4 frames
Format, GOP : M=4, N=24
Codec ID : 27
Duration : 42 min 15 s
Bit rate : 7 478 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 FPS
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan type, store method : Separated fields
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.144
Stream size : 2.21 GiB (90%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 6572 (0x19AC)
Menu ID : 50032 (0xC370)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : 6
Duration : 42 min 15 s
Bit rate mode : Constant
Bit rate : 448 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : -56 ms
Stream size : 135 MiB (5%)
Language : German
Service kind : Complete Main
Dialog Normalization : -31 dB
cmixlev : -4.5 dB
surmixlev : -6 dB
dialnorm_Average : -27 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -27 dB
----------------------------- Demux Audio -----------------------------
ffmpeg N-116758-x64-gcc14.2.0
"C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\FrameServer\AviSynth\ffmpeg.exe" -y -hide_banner -probesize 10M -i "D:\GBlueUE4k\1\20240921 Hello_fixed.ts" -vn -sn -c:a copy "D:\GBlueUE4k\1\20240921 Hello_fixed_temp\ID1_[de] (German) -56ms.ac3"
[h264 @ 000001fe726dc340] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000001fe726dc340] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[h264 @ 000001fe726dc340] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000001fe726dc340] Increasing reorder buffer to 2
Input #0, mpegts, from 'D:\GBlueUE4k\1\20240921 Hello_fixed.ts':
Duration: 00:42:15.14, start: 19074.473467, bitrate: 8342 kb/s
Program 50032
Stream #0:0[0x19ab]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn
Stream #0:1[0x19ac](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Output #0, ac3, to 'D:\GBlueUE4k\1\20240921 Hello_fixed_temp\ID1_[de] (German) -56ms.ac3':
Metadata:
encoder : Lavf61.5.101
Stream #0:0(deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s
Press [q] to stop, [?] for help
[out#0/ac3 @ 000001fe726dc340] video:0KiB audio:138646KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.000000%
Start: 23:49:05
End: 23:49:06
Duration: 00:00:00
General
Complete name : D:\GBlueUE4k\1\20240921 Hello_fixed_temp\ID1_[de] (German) -56ms.ac3
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
File size : 135 MiB
Duration : 42 min 15 s
Overall bit rate mode : Constant
Overall bit rate : 448 kb/s
Audio
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Duration : 42 min 15 s
Bit rate mode : Constant
Bit rate : 448 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 135 MiB (100%)
Service kind : Complete Main
Dialog Normalization : -31 dB
cmixlev : -4.5 dB
surmixlev : -6 dB
dialnorm_Average : -27 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -27 dB
------------------------------ Auto Crop ------------------------------
AutoCrop 2.5
"C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\Support\AutoCrop\AutoCrop.exe" "D:\GBlueUE4k\1\20240921 Hello_fixed_temp\20240921 Hello_fixed_source.avs" 3 15 3168 3168 1000 0
0,0,0,0
Start: 23:49:09
End: 23:49:09
Duration: 00:00:00
---------------------------- Configuration ----------------------------
Template : NVENC-ffmpeg-int-TV·HD-colorEnhanced-unsharp
Video Encoder : ffmpegEnc
Video Encoder Profile : ffmpeg | Nvidia | Nvidia H.264
Container/Muxer Profile : MKV (mkvmerge)
+++++
Process Priority : BelowNormal
Delete Temp Files : Disabled
Delete Temp Files Selection : Include
--------------------------- AviSynth Script ---------------------------
AddAutoloadDir("C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\FrameServer\AviSynth\plugins")
LoadPlugin("C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\Plugins\Dual\L-SMASH-Works\LSMASHSource.dll")
LWLibavVideoSource("D:\GBlueUE4k\1\20240921 Hello_fixed.ts", cachefile="D:\GBlueUE4k\1\20240921 Hello_fixed_temp\temp.lwi")
FadeIO2(50)
# hardware encoder resizes
------------------------- Source Script Info -------------------------
Width : 1920
Height : 1080
Frames : 63377
Time : 42:15.080
Framerate : 25 (25/1)
Format : YUV420P8
------------------------- Target Script Info -------------------------
Width : 1920
Height : 1080
Frames : 63381
Time : 42:15.240
Framerate : 25 (25/1)
Format : YUV420P8
------------- Error Video encoding Nvidia | Nvidia H.264 -------------
ffmpeg N-116758-x64-gcc14.2.0
"C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\FrameServer\AviSynth\ffmpeg.exe" -hwaccel cuda -hwaccel_output_format cuda -i "D:\GBlueUE4k\1\20240921 Hello_fixed.ts" -c:v h264_nvenc -profile:v high -v verbose -vf yadif,delogo=x=143:y=69:w=60:h=80,eq=gamma=0.91:saturation=1.4,crop=1920:1080:0:0,scale=1744x980:flags=lanczos,unsharp=3:3:2 -preset p6 -tune hq -rc vbr -rc-lookahead 32 -spatial-aq 1 -temporal-aq 1 -coder cabac -refs 2 -bf 4 -b_ref_mode middle -b:v 4300k -an -y -hide_banner "D:\GBlueUE4k\1\20240921 Hello_fixed_temp\20240921 Hello_fixed_out.h264"
[h264 @ 000002614951f340] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 000002614951f340] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000002614951f340] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[h264 @ 000002614951f340] Increasing reorder buffer to 1
[h264 @ 000002614951f340] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000002614951f340] Increasing reorder buffer to 2
[mpegts @ 0000026149514400] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
Selecting decoder 'h264' because of requested hwaccel method cuda
Input #0, mpegts, from 'D:\GBlueUE4k\1\20240921 Hello_fixed.ts':
Duration: 00:42:15.14, start: 19074.473467, bitrate: 8342 kb/s
Program 50032
Stream #0:0[0x19ab]: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first, left), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn
Stream #0:1[0x19ac](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s
[out#0/h264 @ 000002614a6eec00] No explicit maps, mapping streams automatically...
[vost#0:0/h264_nvenc @ 00000261497e0580] Created video stream from input stream 0:0
[Parsed_delogo_1 @ 00000261495a4a80] x:100 y:59, w:30 h:60 band:1 show:0
[Parsed_scale_9 @ 000002614a7f42c0] w:1744 h:980 flags:'lanczos' interl:0
Correcting start time of Input #0 by 56000 us.
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
[vost#0:0/h264_nvenc @ 00000261497e0580] Starting thread...
[vf#0:0 @ 00000261495a4440] Starting thread...
[vist#0:0/h264 @ 000002614a6ed040] [dec:h264 @ 00000261495a4a80] Starting thread...
[in#0/mpegts @ 0000026149514080] Starting thread...
Press [q] to stop, [?] for help
[h264 @ 00000261496b09c0] NVDEC capabilities:
[h264 @ 00000261496b09c0] format supported: yes, max_mb_count: 65536
[h264 @ 00000261496b09c0] min_width: 48, max_width: 4096
[h264 @ 00000261496b09c0] min_height: 16, max_height: 4096
[h264 @ 00000261496b09c0] Reinit context to 1920x1088, pix_fmt: cuda
[h264 @ 000002614b0e2040] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000002614b0e2040] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[h264 @ 00000261495bb2c0] mmco: unref short failure
Last message repeated 1 times
[Parsed_delogo_1 @ 0000026149512ec0] x:100 y:59, w:30 h:60 band:1 show:0
[graph -1 input from stream 0:0 @ 000002616b157cc0] w:1920 h:1080 pixfmt:cuda tb:1/90000 fr:25/1 sar:1/1 csp:bt709 range:tv
[auto_scale_0 @ 000002616b157dc0] w:iw h:ih flags:'' interl:0
[Parsed_yadif_0 @ 000002614aef83c0] auto-inserting filter 'auto_scale_0' between the filter 'graph -1 input from stream 0:0' and the filter 'Parsed_yadif_0'
Impossible to convert between the formats supported by the filter 'graph -1 input from stream 0:0' and the filter 'auto_scale_0'
[vf#0:0 @ 00000261495a4440] Error reinitializing filters!
[vf#0:0 @ 00000261495a4440] Task finished with error code: -40 (Function not implemented)
[vf#0:0 @ 00000261495a4440] Terminating thread with return code -40 (Function not implemented)
[vost#0:0/h264_nvenc @ 00000261497e0580] Encoder thread received EOF
[vost#0:0/h264_nvenc @ 00000261497e0580] Could not open encoder before EOF
[vost#0:0/h264_nvenc @ 00000261497e0580] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_nvenc @ 00000261497e0580] Terminating thread with return code -22 (Invalid argument)
[vist#0:0/h264 @ 000002614a6ed040] [dec:h264 @ 00000261495a4a80] Decoder returned EOF, finishing
[vist#0:0/h264 @ 000002614a6ed040] [dec:h264 @ 00000261495a4a80] Terminating thread with return code 0 (success)
[vist#0:0/h264 @ 000002614a6ed040] All consumers of this stream are done
[in#0/mpegts @ 0000026149514080] All consumers are done
[in#0/mpegts @ 0000026149514080] Terminating thread with return code 0 (success)
[out#0/h264 @ 000002614a6eec00] Nothing was written into output file, because at least one of its streams received no packets.
[AVIOContext @ 00000261495a4240] Statistics: 0 bytes written, 0 seeks, 0 writeouts
[in#0/mpegts @ 0000026149514080] Input file #0 (D:\GBlueUE4k\1\20240921 Hello_fixed.ts):
[in#0/mpegts @ 0000026149514080] Input stream #0:0 (video): 36 packets read (543343 bytes); 4 frames decoded; 0 decode errors;
[in#0/mpegts @ 0000026149514080] Total: 36 packets (543343 bytes) demuxed
[AVIOContext @ 0000026149514ac0] Statistics: 4444304 bytes read, 2 seeks
Conversion failed!
Video encoding Nvidia | Nvidia H.264 returned exit code: -40 (0xFFFFFFD8)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Start: 14:33:34
End: 14:33:35
Duration: 00:00:01
|
|