[Attachment 42324 - Click to enlarge]
ahh
please is there a way to don't see "original framerate = 50" ?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 31 to 54 of 54
Thread
-
-
I think the issue lies with nvenc not supporting interlaced sources nor interlaced output, the source needs to be deinterlaced then fed into the encoder.
-
Drag/drop AVS file onto batch file (--tff = interlaced):
Code:"G:\Program Files\QSVEnc\QSVEncC\x86\QSVEncC.exe" -i %1 --codec h264 --quality best --gop-len 60 --b-pyramid --scenechange --cqp 18:20:22 --ref 4 --sar 1:1 --colormatrix bt709 --tff -o "%~dpnx1.qsvenc.mkv"
-
but maybe I have necessity of the muxer of ffmpeg to manage audio and other, so if possibile I would like pipe qsvencc in ffmpeg
for example: using x264
Code:v:\automazioneclip\core\ffmpeg64bitmar2017.exe -threads 12 -y -f concat -safe 0 -i concatList.txt -filter_complex "[0:1] [0:2] amerge" -vf scale=interl=1 -pix_fmt yuv420p -c:v libx264 -profile:v main -level:v 4.1 -g 33 -bf 2 -crf 24 -flags +ildct+ilme -top 1 -c:a ac3 -b:a 320k -ar 48000 -aspect 16:9 MP4_HD_420.MP4 rem
Last edited by marcorocchini; 15th Jul 2017 at 19:25.
-
I don't speak "cat" . Can you clarify in english ?
Did you want
video => ffmpeg pipe => qsvencc encode ?
What about audio ? qsvencc can encode audio, but only if input is av codec direct input . But I don't think 422 is supported
You can't "pipe" qsvencc output into ffmpeg, pipes are only for uncompressed data . But maybe make a batch calling multiple sequential operations
Easiest would be ffmpeg qsv if you can get that to work reliably -
video => ffmpeg pipe => qsvencc encode ?
maybe yes but it's too complicate: the problem is QSV encoding using ffmpeg is not reliable
using the same commandline sometimes encoding fails, sometime work, sometime freeze during encoding.
I have change ffmpeg 32/64bit all version from april 2016 to now but nothing to do.
I have change the intel HD4600 drivers but the problem remains. NVidia NCENC encoding is not bad but the quality is not the same of the QSV encoder that I prefer.
For example just now I try to encode 139 MXF files using:
Code:ffmpeg64bitjuly2017.exe -threads 12 -y -f concat -safe 0 -i concatList.txt -filter_complex "[0:1] [0:2] amerge" -pix_fmt nv12 -vf scale=interl=1,format=pix_fmts=nv12 -c:v h264_qsv -global_quality 27 -level:v 4.1 -flags +ildct+ilme -top 1 -aspect 16:9 -c:a ac3 -b:a 320k -ar 48000 -aspect 16:9 QSV.MP4
file 'V:\recanati\C0003.MXF'
file 'V:\recanati\C0005.MXF'
file 'V:\recanati\C0008.MXF'
file 'V:\recanati\C0010.MXF'
file 'V:\recanati\C0013.MXF'
....
file 'V:\recanati\C0139MXF'
after 3-4 minutes to the start... it frezzeLast edited by marcorocchini; 16th Jul 2017 at 06:25.
-
-
I have test h264_qsv over a single file (not concat), over an .avs and in all cases in single true video files but ... the same problem: it return an error, sometime works, sometimes frezze randomly.
Also I have remove the -threads 12 from commandline, but the problem remains
[Attachment 42339 - Click to enlarge]
[Attachment 42340 - Click to enlarge]
[Attachment 42341 - Click to enlarge] -
-
Do you understand that single pipe to qsvencc only encode video, no audio. It only accepts 1 pipe. Audio has to be done in other step, muxed in other step, maybe in a batch
But you can test it anyways, and if it work, it really is ffmpeg qsv implementation problem. I read some old threads about buffer flushing problem or something like that
interlaced 422 => interlaced 420 pipe looks like this . You have many rate control options in qsvencc
Code:ffmpeg -i "input.ext" -vf scale=interl=1,format=pix_fmts=yuv420p -c:v rawvideo -an -f rawvideo - | QSVEncC64.exe --raw --input-res 1920x1080 --fps 25 -i - --codec h264 --tff --la-icq 24 -o "output.mp4"
Code:Encode Mode Options: EncMode default: --cqp --cqp <int> or encode in Constant QP, default 24:26:27 <int>:<int>:<int> set qp value for i:p:b frame --vqp <int> or encode in Variable QP, default 24:26:27 <int>:<int>:<int> set qp value for i:p:b frame --la <int> set bitrate in Lookahead mode (kbps) --la-hrd <int> set bitrate in HRD-Lookahead mode (kbps) --icq <int> encode in Intelligent Const. Quality mode default value: 23 --la-icq <int> encode in ICQ mode with Lookahead default value: 23 --cbr <int> set bitrate in CBR mode (kbps) --vbr <int> set bitrate in VBR mode (kbps) --avbr <int> set bitrate in AVBR mode (kbps) AVBR mode is only supported with API v1.3 --avbr-unitsize <int> avbr calculation period in x100 frames default 90 (= unit size 9000 frames) --qvbr <int> set bitrate in Quality VBR mode. requires --qvbr-q option to be set as well --qvbr-q <int> or set quality used in qvbr mode. default: 23 --qvbr-quality <int> QVBR mode is only supported with API v1.11 --vcm <int> set bitrate in VCM mode (kbps)
-
-
-
I have try the commandline
Code:ffmpeg64bitjuly2017 -i c0113.mxf -vf scale=interl=1,format=pix_fmts=yuv420p -c:v rawvideo -an -f rawvideo - | QSVEncC64.exe --raw --input-res 1920x1080 --fps 25 -i - --tff --la-icq 24 -o output.mp4
Code:QSVEncC.exe --input-res 1920x1080 --fps 25 -i c0034.avs --codec h264 --tff --la-icq 24 -o output.mp4 Error: Unknown value for codec
However removing "--codec h264" from the commandline the pipe generate the final output but in VLC won't play. Also using the 32 bit version
Code:QSVEncC.exe --input-res 1920x1080 --fps 25 -i c0034.avs --codec h264 --tff --la-icq 24 -o output.mp4
Code:LoadPlugin("C:\staxrip\Applications\AviSynth plugins\ffms2\ffms2.dll") FFVideoSource("V:\C0122\C0034.MXF", cachefile = "V:\C0122\C0034 temp files\C0034.ffindex") AssumeFPS(25.000000) ConvertToYV12()
However I wonder:
what parameters I have to take to NVENC which correspond to the maximum with these QSV parameters?
------------------------------------------------------------
Encoding video command line encoder: Intel H.264 Encoder
------------------------------------------------------------
"C:\staxrip\Applications\QSVEncC\QSVEncC.exe" --sar 1:1 -i "V:\C0122\C0049 temp files\C0049.avs" -o "V:\C0122\C0049 temp files\C0049_out.h264"
V:\C0122\C0049 temp files\C0049.avs
QSVEnc 1.31 (x86), based on Intel(R) Media SDK Encoding Sample 6,0,0,98947
OS Unknown (x64)
CPU Info Intel Core i7-4702MQ @ 2.20GHz [TB: 2.90GHz] (4C/8T)
GPU Info Intel HD Graphics 4600 (20 EU) @ 1150 MHz (20.19.15.4624)
Media SDK QuickSyncVideo (hardware encoder), 1st GPU, API v1.13
Buffer Memory d3d9, 3 input buffer
Input Frame Info Avisynth 2.60 (yv12)->nv12[AVX2], 1920x1080, 25/1 fps
Output Video H.264/AVC High @ Level 4
1920x1080p 1:1 25.000fps (25/1fps)
Target usage 4 - balanced
Encode Mode Constant QP (CQP)
CQP Value I:24 P:26 B:27
QP Limit min: none, max: none
Trellis Auto
Ref frames 2 frames
Bframes 3 frames?????? off
Max GOP Length 250 frames
Scene Change on
qsvencc --check-features 1>features.txt
QSVEncC (x86) 1.19 by rigaya, build Mar 25 2014 23:31:39
based on Intel(R) Media SDK Encoding Sample 5,0,337,0
avi reader: enabled
avs reader: enabled
vpy reader: enabled
Media SDK Hardware API v1.8
Supported features:
CBR VBR AVBR CQP VQP LA ICQ LAICQ VCM
RC mode available o o o o o o o o x
VUI info output o o o o o o o o x
Trellis o o o o o o o o x
Adaptive_I x x x x x x x x x
Adaptive_B x x x x x x x x x
B_Pyramid x x x x x x x x x
Ext_BRC o o o x x x o x x
MBBRC o o o x x x o x x
Lookahead Quality x x x x x o x o x
Media SDK Software API v1.8
Supported features:
CBR VBR AVBR CQP VQP LA ICQ LAICQ VCM
RC mode available o o o o o x x x x
VUI info output o o o o o x x x x
Trellis x x x x x x x x x
Adaptive_I o o o o o x x x x
Adaptive_B o o o o o x x x x
B_Pyramid o o o o o x x x x
Ext_BRC x x x x x x x x x
MBBRC x x x x x x x x x
Lookahead Quality x x x x x x x x x
[Attachment 42351 - Click to enlarge]Last edited by marcorocchini; 17th Jul 2017 at 07:34.
-
Ahnn .. ok
maybe I use an older version of QSVenCc
downloaded now the 2.71
Where source422 is this usual MXF:
https://www.dropbox.com/s/829iziwuetpdqm4/source422.MXF?dl=0
I try:
Code:ffmpeg64bitjuly2017 -i source422.mxf -vf scale=interl=1,format=pix_fmts=yuv420p -c:v rawvideo -an -f rawvideo - | c:\q\QSVEncC\x86\QSVEncC.exe --input-res 1920x1080 --fps 25 --raw -i - --codec h264 --tff --la-icq 24 -o output.mp4
[Attachment 42354 - Click to enlarge]
maybe a wrong little parameter in the pipe?Last edited by marcorocchini; 20th Jul 2017 at 18:23.
-
I used 2.62 . Works here. Maybe problem with your driver / version mismatch ?
-
Code:
ffmpeg64bitjuly2017 -i source422.mxf -vf scale=interl=1,format=pix_fmts=yuv420p -c:v rawvideo -an -f rawvideo - | c:\QSVENC262\x86\QSVEncC.exe --input-res 1920x1080 --fps 25 --raw -i - --codec h264 --tff --la-icq 24 -o output.mp4
and work also the 64bit version
Code:ffmpeg64bitjuly2017 -i source422.mxf -vf scale=interl=1,format=pix_fmts=yuv420p -c:v rawvideo -an -f rawvideo - | c:\QSVENC262\x64\QSVEncC64.exe --input-res 1920x1080 --fps 25 --raw -i - --codec h264 --tff --la-icq 24 -o output.mp4
And 1 little problem:
General
Complete name : V:\C0122\output.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
File size : 37.0 MiB
Duration : 14s 80ms
Overall bit rate : 22.1 Mbps
Writing application : QSVEncC (x64) 2.62
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 14s 80ms
Bit rate : 22.1 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 50.000 fps
Original frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.213
Stream size : 37.0 MiB (100%)
Why framerate is 50 fps? it should be 25Last edited by marcorocchini; 17th Jul 2017 at 13:12.
-
I answered the audio questions above
Not sure about the framerate, or why both nvenc and qsv don't like interlaced video rate (it's field rate, not frame rate)
Or use libx264, more stable, better quality , fewer problems, but much slower -
[Attachment 42364 - Click to enlarge]
Code:ffmpeg64bitjuly2017 -i source422.mxf -vf scale=interl=1,format=pix_fmts=yuv420p -c:v rawvideo -an -f rawvideo - | c:\QSVENC262\x86\QSVEncC.exe --input-res 1920x1080 --fps 25 --raw -i - --codec h264 --tff --la-icq 24 -o output.mkv
maybe a feline solution: QSVencC don't encode with the correct framerate to .mp4 container
try to mkv and all is ok -
seems that encoding versus MP4 generate FPS error, versus MKV seems that only mediainfo show the correct framerate but internally the FPS is alwais wrong.
Meanwhile in H264 seems ok
Code:c:\QSVENC262\x86\QSVEncC.exe --fps 25 --avs -i v:\c0122\source422.avs --codec h264 --tff --gop-len 33 --bframes 1 --trellis b --qvbr 11500 --qvbr-q 26 -o output.h264
Code:Import("v:\automazioneclip\avisynth\plugins\IResize.avsi") LoadPlugin("v:\automazioneclip\avisynth\plugins\LSMASHSource.dll") LoadCPlugin("v:\automazioneclip\core\yadif.dll") vid=LWLibavVideoSource("V:\c0122\source422.MXF").convertToYV12(interlaced=true) left = ffaudiosource("V:\c0122\source422.MXF", track = 1) right = ffaudiosource("V:\c0122\source422.MXF", track = 2) both=mergechannels(left, right) audiodub(vid,both)
-
-
please is it possible pipe this
Code:v:\automazioneclip\core\ffmpeg64bit332.exe -y -threads 12 -y -f concat -safe 0 -i concatlist.txt -vf scale=interl=1,format=pix_fmts=yuv420p -c:v rawvideo -an -f rawvideo - | V:\automazioneclip\core\QSVenc262\x86\QSVEncC.exe --input-res 1920x1080 --fps 25 --raw -i - --codec h264 --tff --trellis ALL --la-icq 31 --la-depth 50 --gop-len 250 --bframes 3 --strict-gop --quality high -o concatHD.h264
Code:V:\automazioneclip\core\MP4Box\mp4box.exe -fps 25.000000 -add "concatHD.H264#video:name=Video" -add "concatHD.mp3#audio:name=Audio" -new "concatHD.mp4"
where the concatHD.mp3 is made in advance?
-
Similar Threads
-
H264 video cutter with smart re-encoding (alternative to VideoRedo H264)
By cheerful in forum Newbie / General discussionsReplies: 1Last Post: 22nd Jul 2014, 09:42 -
Hardware acceleration demos in FFMPEG!!!!!!!
By Stears555 in forum Video ConversionReplies: 1Last Post: 21st Jun 2014, 14:17 -
Encoding For Better Quality? Codec: H264 - MPEG-4 AVC (part 10) (H264)
By derek123 in forum Video ConversionReplies: 7Last Post: 20th Jan 2014, 05:01 -
(FFMPEG) Muxing h264 and aac
By Simon_ in forum Video ConversionReplies: 5Last Post: 7th Sep 2013, 10:24 -
how can i mux to mp4 from h264/aac using ffmpeg
By DKhanh in forum Video ConversionReplies: 3Last Post: 24th Aug 2013, 12:50