Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 Encoder GUIs

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th March 2019, 18:15   #3521  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
NVEnc(ffmpeg)

I made a few tests with the experimental NVEnc(ffmpeg). It seems to work here with -rc-lookahead=0 (or omitted). It fails for non-zero values. So this setting may perhaps be greyed out unless it's just an issue of the current ffmpeg or a problem with my system. According to the ffmpeg doc this parameter is valid, so I don't know. The default value is 0 anyway, so as long as I don't change it it's no problem.
Sharc is offline   Reply With Quote
Old 16th March 2019, 00:22   #3522  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Seems like rc-lookahead only works with H.264 and not H.265, since
Code:
ffmpeg -y -threads 8 -i "F:\TestClips&Co\files\Test-AC3-5.1.avi" -map 0:0 -an -sn   -vf zscale=rangein=tv:range=tv -pix_fmt yuv420p -vsync 0  -vcodec h264_nvenc -preset 5 -profile:v 2 -level 0 -rc vbr_2pass -2pass 1 -qmin 0 -qmax 51 -b:v 1500k -spatial-aq 0 -temporal-aq 0 -rc-lookahead 32 -surfaces 32 -no-scenecut 0 -refs 3 -nonref_p 1 -strict_gop 1 -bsf:v h264_mp4toannexb "E:\Temp\Test-AC3-5.1_00_21_02_2110_02.264"
works fine here.
This is exactly why I keep the 'experimental': Couldn't find any documentation about the dependencies of the options and I'm too lazy to test everything.
-> I'll make sure rc-lookahead is only 'usable' (and added to the command line) when H.264 is used in the next release.

Cu Selur

Ps.: let me know if you stumble over other restrictions.
__________________
Hybrid here in the forum, homepage

Last edited by Selur; 16th March 2019 at 00:32.
Selur is offline   Reply With Quote
Old 16th March 2019, 00:54   #3523  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by Selur View Post
Seems like rc-lookahead only works with H.264 and not H.265
I'm not sure if it works but have you tried -x265-params (in bold below)?
Code:
libx265 AVOptions:
  -crf               <float>      E..V..... set the x265 crf (from -1 to FLT_MAX) (default -1)
  -forced-idr        <boolean>    E..V..... if forcing keyframes, force them as IDR frames (default false)
  -preset            <string>     E..V..... set the x265 preset
  -tune              <string>     E..V..... set the x265 tune parameter
  -profile           <string>     E..V..... set the x265 profile
  -x265-params       <string>     E..V..... set the x265 configuration using a :-separated list of key=value parameters
Quote:
Originally Posted by Selur View Post
Couldn't find any documentation about the dependencies of the options
"ffmpeg -h full"

Also: https://trac.ffmpeg.org/wiki/Encode/H.265
__________________
Groucho's Avisynth Stuff

Last edited by Groucho2004; 16th March 2019 at 00:58.
Groucho2004 is offline   Reply With Quote
Old 16th March 2019, 08:30   #3524  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
@Groucho2004: we are talking '-vcodec hevc_nvenc' and '-vcodec h264_nvenc' here,... not general H.264 and H.265
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 16th March 2019, 09:00   #3525  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by Selur View Post
Seems like rc-lookahead only works with H.264 and not H.265, …..
It doesn't work here with H.264 either. I tried your script and it failed. Only difference is that my input is a .m2ts file


P.S.

You have added -bsf:v h264_mp4toannexb to your script. I think this should be added per default when selecting .m2ts as output. Currently it is missing.

Last edited by Sharc; 16th March 2019 at 09:04.
Sharc is offline   Reply With Quote
Old 16th March 2019, 09:05   #3526  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
The call works fine here. :/
You did adjust all the paths (input, output, ffmpeg) and you are using the ffmpeg version which came with Hybrid, correct?
What does ffmpeg report when you call your modified call?
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 16th March 2019, 09:17   #3527  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Another observation with .m2ts as target:
The files play fine on all players which I have tried. The exception are VEGAS products. Neither VEGAS Movie Studio nor VEGAS DVD architect handle these files properly (freezing or similar).
I found a workaround by remuxing the .m2ts file again with tsmuxer, this time with insertSEI, contSPS, in the .meta.
Now I wonder whether insertSEI, contSPS, should be added per default - unless it has other unwanted implications which I don't know.
Sharc is offline   Reply With Quote
Old 16th March 2019, 09:35   #3528  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Don't see any harm in doing so. Will send you a link to a dev version in a few minutes for testing.

Cu Selur
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 16th March 2019, 09:39   #3529  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by Selur View Post
The call works fine here. :/
You did adjust all the paths (input, output, ffmpeg) and you are using the ffmpeg version which came with Hybrid, correct?
What does ffmpeg report when you call your modified call?
Hmmm… I have ffmpeg 4.1.1 64 bit in the system path. Maybe this makes a difference. FFmpeg reports that -rc-lookahead does not apply (discarding it), and I am also getting a warning that -rc vbr_2pass is obsolete and should be replaced by -rc vbr_hq.

I need to double check with the ffmpeg version which comes with Hybrid.
Sharc is offline   Reply With Quote
Old 16th March 2019, 09:42   #3530  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
The deprecated warning is no problem.
Last ffmpeg I shipped with Hybrid on Windows was:
Code:
ffmpeg version N-93331-gc2a221c5ae Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.3.0 (Rev2, Built by MSYS2 project)
  configuration:  --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib --enable-sdl2 --disable-debug --enable-ffnvcodec --enable-nvdec --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --enable-fontconfig --enable-libass --enable-libbluray --enable-libfreetype --enable-libmfx --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwavpack --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libaom --enable-libopenmpt --enable-version3 --enable-libkvazaar --enable-libxavs --enable-libxavs2 --enable-mbedtls --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv --extra-cflags=-DKVZ_STATIC_LIB
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.103 / 58. 47.103
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 16th March 2019, 09:52   #3531  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Your version is newer. I stuck with the last stable release 4.1.1. from Zeranoe.
I'll upgrade.....
Sharc is offline   Reply With Quote
Old 16th March 2019, 09:56   #3532  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
I usually build ffmpeg&co on the day I release Hybrid, so the versions of the tools should be up-to-date usually.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 5th May 2019, 06:31   #3533  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Hybrid rev 2019.05.05.1:
*fixed*
  • jobs: unwarrented warning about 'You are creating a job without audio, while the input has audio!' during batch processing
  • ffmpeg: tonemap sd range missing
  • Avisynth: amDCT Prefetch missing
  • Muxing: Mp4Box + chapters + Parallel subjob processing
  • NVEnc: 'Parallel subjob processing' + keyfile caused crash
  • Vapoursynth: LSFMod options matching code (missed version)
  • Avisynth: NNEDI3Resize missing prescreen mode 0
  • x26X: parallel subjob processing .mbtree-system cleanup triggered too early
  • Muxing: MP4Box 'flattening'-call handling
  • jobs: Subjobs that took longer to delete
  • ffnvenc: bsf written
  • Vapoursynth: rotation handling
  • VP9: color space grayed initially out
  • NVEnc: file size calculation adjustment
  • Subtitle: subtitle order mixup
  • filtering: 'Force 4:4:4 downsize' with 'no XSynth'
  • Avisynth: LSMASHVideoSource + hight bit depth source
  • Vaporoursynth: MCDegrainSharp, libmvtools dependency
  • jobs: show fps when mencoder is used
  • muxing: cosmetic glitch caused ffmpeg for ts muxing to be disabled
  • jobs: mencoder getting stuck on mencoder job
  • jobs: mencoder progress indication during Xvid encoding
  • jobs: Abort subjob processing if another subjob is aborted/postponed/stopped/...
*changed*
  • Vapoursynth: default filter order (rotation before resize)
  • Avisynth: use Prefetch() with "cpu count / 2" instead of "cpu count" when MT-Threads is set to 0
  • mencoder: use fractions when specifiying ofps
  • muxing: added 'insertSEI, contSPS' to tsMuxeR muxing call
*added*
  • filtering: 'rotate' 'auto' option
  • Avisynth: MvToolsFPSmod
  • Vapoursynth: added TimeCube to apply LUTs for Color Correction
  • Avisynth: MCDegrainSharp

-> downloads: http://www.selur.de/downloads

Cu Selur
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 6th May 2019, 14:02   #3534  |  Link
Gravitator
Registered User
 
Join Date: May 2014
Posts: 292
Hybrid v2019.05.05.1

x264
Add any video file > Hardware: (DXVA > Blu-ray > DXVA) - results in blocking the "Resize" checkbox.
__________________
Win10x64, Xeon E5450, GTX 750 2GB, DDR3 8GB.
Gravitator is offline   Reply With Quote
Old 6th May 2019, 18:42   #3535  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
That's probably right, since 'Blu-ray' might enforce 'Convert output to PAR' which enforces 'Resize' and switching back to DXVA doesn't disable it.
-> works like intended
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 9th June 2019, 11:14   #3536  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Hybrid rev 2019.06.09.2:
*fixed*
  • NVEnc: init bug

Hybrid rev 2019.06.09.1:
*fixed*
  • Vapoursynth: embedding idx/sub and sup subtitles
  • Filtering: crop only bug
  • Xvid: decimal/fraction in mencoder
  • Files: Do not allow semicolon or other separator used by Hybrid inside input and output file names.
  • Mp4Box: mp4box vfr handling
  • Avisynth: HDRAGC min grain option
  • Avisynth: Flash3K Deband defaults
*changed*
  • NVEnc: allow aq-strength for H.265
  • NVEnc: rearranges layout
  • Decoder: prefer ffmpeg as decoder for > 8Bit output
  • FFNvEnc: tier-support added missing level 51
  • QSVEnc: fixed --weightp support
  • x265: adjusted to 'committed 4583000' "Changed the params max-merge to 3, b-intra enabled, limit-ref and early-skip enabled for improved performance for high res"
  • Vapoursynth: replaced 'knwvsfunc.py' with 'G41Fun.py'
*added*
  • NVEnc: support --dhdr10-info, --nonrefp, --no-i-adapt, --no-b-adapt, --direct, --adapt-transform, --weightp, --strict-gop
  • Tags: option to set copyright info

-> downloads: http://www.selur.de/downloads

Cu Selur
__________________
Hybrid here in the forum, homepage

Last edited by Selur; 9th June 2019 at 15:54.
Selur is offline   Reply With Quote
Old 27th July 2019, 14:49   #3537  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Selur,
Your screenshot link in 1st post is 404. [JFYI]
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 25th August 2019, 11:45   #3538  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Hybrid rev 2019.08.25.1:
*fixed*
  • jobs: removed unneeded copy call during subtitle speed-change
  • Avisynth: FrameRateConverter
  • Analysis: adjusted to MediaInfo reporting 'TrueHD / AC-3' streams as just 'AC-3'
  • Analysis: chapter info parsing from mediainfo
  • video: some ffmpeg nvenc options
  • subs: automatic extraction of PGS subtitles from transport streams
  • Vapoursynth: waifux dependency loading
  • jobs: mkvmerge call input detection checks
  • muxing: tsMuxer call
  • analysis: raw audio handling
  • jobs: Avisynth/Vapoursynth: DGIndexNV log cleanup
  • analysis: AutoCrop for Blu-ray/mpls input
  • muxing: force 1:1 signaling in case input and output PAR differ
  • Avisynth: Preview refresh problem
  • video: NvEncLogicService errors/crash
  • video: support adaptive quantization nvenc / ffnvenc
*changed*
  • Vapoursynth: adjusted to lates DFTTest changes
  • jobs: process priority only on Windows systems
  • analysis: ffmpeg direct timecode extraction
  • Vapoursynth: used sub.TextFile for .srt subtitles (VsFilter is Windows only :/)
  • Vapoursynth: adjusted to HDR10ToSDRDG 1.12
  • Analysis: if time code count and indicated frame count differ more than 1000 frames use time code count as frame count
  • Global: don't check for avsviewer when no Avisynth is detected, don't check for VSPIPE or VSViewer, when Vapoursynth isn't detected
  • video: adjusted to x265 3.1, rewrote x265-"minimize command line"
  • Preview: report Avisynth and Vapoursynth Errors not through popups, but through an entry into the log
*added*
  • gui: option to 'ask for confirmation' in multiple places
  • gui: optional warnings when deleting/resetting/... stuff
  • jobs: auto save after adding jobs option
  • video: support for const quality in ffmpeg (nvenc)
  • video: support for NVEncCs 'constant quality'-mode
  • video: x265, support for adaptive quantization mode 4
  • video: x265, support hierarchical motion estimation (--hme/--hme-search)
  • video: nvenc, support --dhdr10-info, allow aq-strength for H.265, --nonrefp, i/b adapt
  • jobs: 'ignore crashed'-option
  • Vapoursynth: vs subtitle blend option
  • Vapoursynth: 'custom font path'-option
*removed*
  • audio: support for libvo (since ffmpeg dropped support for it back in 2016)

-> downloads: http://www.selur.de/downloads

Cu Selur

Ps.: working on providing a Vapoursynth package or build script for Debian based Linux systesm, but stuck atm. :/
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 26th August 2019, 19:53   #3539  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Hybrid rev 2019.08.26.1: (Windows only release)
*fixed*
  • switched back to Vapoursynth R46, since R47 breaks vsViewer and vsedit.

-> downloads: http://www.selur.de/downloads

Cu Selur
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 29th September 2019, 13:28   #3540  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Hybrid rev 2019.09.29.1:
*fixed*
  • Jobs: d2v Indexer output detection
  • x265: removed '--no-intra-refresh'
  • Input: ffmpeg direct time code extraction
  • Jobs: x265, don't create .cutree-deletion job when '--no-cutree' is used.
  • Jobs: 'MPEG-4 ASP + mkv stretch'-handling on passthrough
  • FilterPreview: with interlaced content, that doesn't get deinterlaced while 'No Avisynth during Preview' is disabled
*changed*
  • Vapoursynth: make vsFilterMod optional (Windows only)
  • Vapoursynth: handle chapter selection
  • x265: support selective SAO
  • Preview: mplayer preview + crop force refresh
  • Removed old compatibility code for old platforms (XP/Vista/SnowLeopard/...)
  • Input: small stuff, disable stretch detection (since it only works for video atm.)
*added*
  • Vapoursynth: Cnr2, TemporalDegrain filter
  • Synth: support 'prefer HW decoding' for LWLibAvSource

-> downloads: http://www.selur.de/downloads

Cu Selur
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:15.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.