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 11th October 2017, 01:24   #2661  |  Link
Magik Mark
Registered User
 
Join Date: Dec 2014
Posts: 482
Stax

Windows 10 RS3 "Fall Update" is out. Do you see any incompatibilities?
__________________
Asus X99 Sabertooth - Xeon E5 2695 - Asus Strix GTX 960 4G - DDR4 16GB Predator - Pioneer KRP 600M (isf calibrated) - Yamaha A3030 - Windows 10 x64 - Kodi with DSplayer - Lav - MadVR - XYsubtitle
Magik Mark is online now   Reply With Quote
Old 11th October 2017, 04:08   #2662  |  Link
Sxc
Registered User
 
Join Date: Jan 2016
Posts: 9
AC3 with delay > AAC to MKV or MP4 issue

Hi, if I use staxrip 1.7.0.0 stable to encode a mkv with AC3 audio that has a delay to a mkv with AAC audio, the audio is wildly out of sync and the resulting output file has the audio listed as being 1 second shorter (and a slightly smaller delay value).

Source from mediainfo before encoding:

Code:
Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 21 min 59 s
Bit rate mode                            : Constant
Bit rate                                 : 384 kb/s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : -126 ms
Stream size                              : 60.4 MiB (7%)
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No
From the output mkv file, note the duration is less by a second and the delay is adjusted:

Code:
Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC-2
Duration                                 : 21 min 58 s
Bit rate                                 : 211 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
Delay relative to video                  : -117 ms
Stream size                              : 33.2 MiB (4%)
Language                                 : English
Default                                  : No
Forced                                   : No
And using handbrake to encode the same file (and the sound is in sync) the mediainfo shows:
Code:
Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC-2
Duration                                 : 21 min 59 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
Delay relative to video                  : -126 ms
Title                                    : Stereo
Default                                  : Yes
Forced                                   : No
I've tried using different encoders (qaac instead of the eac3to it uses for auto) and still the same result. Anyone else had this issue?
Sxc is offline   Reply With Quote
Old 12th October 2017, 23:22   #2663  |  Link
Magik Mark
Registered User
 
Join Date: Dec 2014
Posts: 482
Stax

Just installed RS3 so far the the only problem that I encountered is "Shutdown" doesn't work after encoding
__________________
Asus X99 Sabertooth - Xeon E5 2695 - Asus Strix GTX 960 4G - DDR4 16GB Predator - Pioneer KRP 600M (isf calibrated) - Yamaha A3030 - Windows 10 x64 - Kodi with DSplayer - Lav - MadVR - XYsubtitle
Magik Mark is online now   Reply With Quote
Old 14th October 2017, 17:12   #2664  |  Link
Zetti
Registered User
 
Join Date: Dec 2015
Posts: 52
MKVToolNix v17.0.0 is released.
Zetti is offline   Reply With Quote
Old 14th October 2017, 23:01   #2665  |  Link
Lupissimo
Registered User
 
Join Date: Nov 2002
Posts: 65
Could somebody please tell me how to include HSVadjust into Staxrip 1.6( I am a newcomer to scripting).
@ Stax:
I confirm the audio delay bug with 1.7.(see above: AC3 with delay > AAC to MKV or MP4 issue)
Encoding with 1.6 is OK.
Lupissimo is offline   Reply With Quote
Old 15th October 2017, 00:33   #2666  |  Link
stax76
staxrip & mpv.net
 
Join Date: Jun 2002
Posts: 5,239
@Lupissimo
@Sxc

Please post the full log file, I tried to reproduce it but couldn't find a problem.


@Zetti

Thanks, I've updated both.


Quote:
Just installed RS3 so far the the only problem that I encountered is "Shutdown" doesn't work after encoding
Is RS3 is officially released? I didn't notice news about it on my tech news site golem.de. staxrip uses shutdown.exe and I can't do much if it don't work.


@mparade

That don't contain the info I need, please upload a sample.
__________________
StaxRip - use pastebin for log files and imgbox for screenshots
mpv.net player
stax76 is offline   Reply With Quote
Old 15th October 2017, 02:08   #2667  |  Link
craigpro
Registered User
 
Join Date: Feb 2003
Posts: 33
hi stax76 - unfortunately I have this recurring error with stable 1.7.0.0 with any file I try to encode (I upgraded NVencc 3.2.2 to 3.2.3):



Error Video encoding using NVEnc 3.22 (1.7.0.0)

Video encoding using NVEnc 3.22 failed with exit code: 1 (0x1)

The exit code might be a system error code: STATUS_WAIT_1

The exit code might be a system error code: Incorrect function.


------------------- Video encoding using NVEnc 3.22 -------------------

C:\GPU\StaxRip-x64-1.7\Apps\NVEnc\NVEncC64.exe --cqp 18:20:22 --codec h265 --preset quality --output-depth 10 --weightp --lookahead 16 --transfer auto -i H:\NEW\testfile_temp\testfile.avs -o H:\NEW\testfile_temp\testfile_out.h265

NVEncC (x64) 3.23 (r667) by rigaya, Sep 26 2017 20:51:36 (VC 1900/Win/avx2)
OS Version Windows 7 x64 (7601)
CPU Intel Core i5-2500K @ 3.30GHz (4C/4T)
GPU #0: GeForce GTX 1060 6GB (10 EU) @ 1708 MHz (387.92)
NVENC / CUDA NVENC API 8.0, CUDA 9.1, schedule mode: auto
Input Buffers CUDA, 36 frames
Input Info Avisynth 2.60(yv12)->p010 [AVX], 1280x720, 24000/1001 fps
Vpp Filters copyHtoD
Output Info H.265/HEVC main10 @ Level auto
1280x720p 1:1 23.976fps (24000/1001fps)
Encoder Preset quality
Rate Control CQP I:18 P:20 B:22
Lookahead on, 16 frames, Adaptive I, B Insert
GOP length 240 frames
B frames 0 frames
Ref frames 3 frames, LTR: off
AQ off
CU max / min auto / auto
Others mv:auto
Error cudaEventSynchronize: 4 (cudaErrorLaunchFailure).



StaxRip.ErrorAbortException: Video encoding using NVEnc 3.22 failed with exit code: 1 (0x1)

The exit code might be a system error code: STATUS_WAIT_1

The exit code might be a system error code: Incorrect function.


------------------- Video encoding using NVEnc 3.22 -------------------

C:\GPU\StaxRip-x64-1.7\Apps\NVEnc\NVEncC64.exe --cqp 18:20:22 --codec h265 --preset quality --output-depth 10 --weightp --lookahead 16 --transfer auto -i H:\NEW\testfile_temp\testfile.avs -o H:\NEW\testfile_temp\testfile_out.h265

NVEncC (x64) 3.23 (r667) by rigaya, Sep 26 2017 20:51:36 (VC 1900/Win/avx2)
OS Version Windows 7 x64 (7601)
CPU Intel Core i5-2500K @ 3.30GHz (4C/4T)
GPU #0: GeForce GTX 1060 6GB (10 EU) @ 1708 MHz (387.92)
NVENC / CUDA NVENC API 8.0, CUDA 9.1, schedule mode: auto
Input Buffers CUDA, 36 frames
Input Info Avisynth 2.60(yv12)->p010 [AVX], 1280x720, 24000/1001 fps
Vpp Filters copyHtoD
Output Info H.265/HEVC main10 @ Level auto
1280x720p 1:1 23.976fps (24000/1001fps)
Encoder Preset quality
Rate Control CQP I:18 P:20 B:22
Lookahead on, 16 frames, Adaptive I, B Insert
GOP length 240 frames
B frames 0 frames
Ref frames 3 frames, LTR: off
AQ off
CU max / min auto / auto
Others mv:auto
Error cudaEventSynchronize: 4 (cudaErrorLaunchFailure).


at StaxRip.Proc.Start() in D:\Projekte\VS\VB\StaxRip\General\Proc.vb:line 338
at StaxRip.NVEnc.Encode() in D:\Projekte\VS\VB\StaxRip\Encoding\NVEnc.vb:line 82
at StaxRip.GlobalClass.ProcessVideo() in D:\Projekte\VS\VB\StaxRip\General\GlobalClass.vb:line 225
at System.Threading.Tasks.Parallel.<>c__DisplayClass4_0.<Invoke>b__0()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at StaxRip.GlobalClass.ProcessJob(String jobPath) in D:\Projekte\VS\VB\StaxRip\General\GlobalClass.vb:line 137




the complete log file :




-------------------------- System Environment --------------------------

StaxRip : 1.7.0.0
Windows : Windows 7 Home Premium
Language : English (Australia)
CPU : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
GPU : NVIDIA GeForce GTX 1060 6GB
Resolution : 1920 x 1080
DPI : 96

------------------------ MediaInfo Source File ------------------------

H:\NEW\testfile.mkv

General
Complete name : H:\NEW\testfile.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 2.18 GiB
Duration : 56 min 53 s
Overall bit rate mode : Variable
Overall bit rate : 5 479 kb/s
Encoded date : UTC 2017-08-21 21:21:11
Writing application : mkvmerge v8.3.0 ('Over the Horizon') 64bit
Writing library : libebml v1.3.1 + libmatroska v1.4.2

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 5 Ref Frames
Format, CABAC : Yes
Format, RefFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 56 min 53 s
Bit rate : 4 773 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.216
Stream size : 1.89 GiB (87%)
Writing library : x264 core 152 r2851 ba24899
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 56 min 53 s
Bit rate mode : Variable
Bit rate : 720 kb/s
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 48.0 kHz
Frame rate : 11.719 FPS (4096 SPF)
Bit depth : 24 bits
Stream size : 293 MiB (13%)
Writing library : libFLAC 1.2.1 (UTC 2007-09-17)
Language : English
Default : Yes
Forced : No

Menu
00 : 00:00.000 : en:00:00:00.000
00 : 07:07.552 : en:00:07:07.552
00 : 11:30.023 : en:00:11:30.023
00 : 23:31.076 : en:00:23:31.076
00 : 29:10.207 : en:00:29:10.207
00 : 36:12.712 : en:00:36:12.712
00 : 45:33.314 : en:00:45:33.314

------------------ Demux MKV using mkvextract 15.0.0 ------------------

C:\GPU\StaxRip-x64-1.7\Apps\MKVToolNix\mkvextract.exe tracks H:\NEW\testfile.mkv 1:"H:\NEW\testfile_temp\testfile ID1 English.flac" --ui-language en

Extracting track 1 with the CodecID 'A_FLAC' to the file 'H:\NEW\testfile_temp\testfile ID1 English.flac'. Container format: raw data

Start: 11:58:46 AM
End: 11:58:58 AM
Duration: 00:00:12

General
Complete name : H:\NEW\testfile_temp\testfile ID1 English.flac
Format : FLAC
Format/Info : Free Lossless Audio Codec
File size : 293 MiB
Duration : 56 min 53 s
Overall bit rate mode : Variable
Overall bit rate : 720 kb/s

Audio
Format : FLAC
Format/Info : Free Lossless Audio Codec
Duration : 56 min 53 s
Bit rate mode : Variable
Bit rate : 720 kb/s
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 48.0 kHz
Bit depth : 24 bits
Stream size : 293 MiB (100%)
Writing library : libFLAC 1.2.1 (UTC 2007-09-17)

-------------- Demux xml chapters using mkvextract 15.0.0 --------------

C:\GPU\StaxRip-x64-1.7\Apps\MKVToolNix\mkvextract.exe chapters H:\NEW\testfile.mkv --redirect-output H:\NEW\testfile_temp\testfile_chapters.xml

File 'H:\NEW\testfile.mkv': container: Matroska
Track ID 0: video (MPEG-4p10/AVC/h.264)
Track ID 1: audio (FLAC)
Chapters: 7 entries

Start: 11:58:58 AM
End: 11:58:59 AM
Duration: 00:00:00

-------------- Demux ogg chapters using mkvextract 15.0.0 --------------

C:\GPU\StaxRip-x64-1.7\Apps\MKVToolNix\mkvextract.exe chapters H:\NEW\testfile.mkv --redirect-output H:\NEW\testfile_temp\testfile_chapters.txt --simple

File 'H:\NEW\testfile.mkv': container: Matroska
Track ID 0: video (MPEG-4p10/AVC/h.264)
Track ID 1: audio (FLAC)
Chapters: 7 entries

Start: 11:58:59 AM
End: 11:58:59 AM
Duration: 00:00:00

----------------------- Indexing using ffmsindex -----------------------

C:\GPU\StaxRip-x64-1.7\Apps\Plugins\both\ffms2\ffmsindex.exe H:\NEW\testfile.mkv H:\NEW\testfile_temp\testfile.ffindex

Writing index... done.

Start: 11:58:59 AM
End: 11:59:03 AM
Duration: 00:00:04

--------------------------- AviSynth Script ---------------------------

LoadPlugin("C:\GPU\StaxRip-x64-1.7\Apps\Plugins\both\ffms2\ffms2.dll")
FFVideoSource("H:\NEW\testfile.mkv", colorspace = "YV12", \
cachefile = "H:\NEW\testfile_temp\testfile.ffindex")

-------------------------- Script Properties --------------------------

Source Frame Count : 81838
Source Frame Rate : 23.976024
Source Duration : 00:56:53.3270000
Target Frame Count : 81838
Target Frame Rate : 23.976024
Target Duration : 00:56:53.3270000

----------------------- MediaInfo Audio Source 1 -----------------------

General
Complete name : H:\NEW\testfile_temp\testfile ID1 English.flac
Format : FLAC
Format/Info : Free Lossless Audio Codec
File size : 293 MiB
Duration : 56 min 53 s
Overall bit rate mode : Variable
Overall bit rate : 720 kb/s

Audio
Format : FLAC
Format/Info : Free Lossless Audio Codec
Duration : 56 min 53 s
Bit rate mode : Variable
Bit rate : 720 kb/s
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 48.0 kHz
Bit depth : 24 bits
Stream size : 293 MiB (100%)
Writing library : libFLAC 1.2.1 (UTC 2007-09-17)

---------------- Error Video encoding using NVEnc 3.22 ----------------

Video encoding using NVEnc 3.22 failed with exit code: 1 (0x1)

The exit code might be a system error code: STATUS_WAIT_1

The exit code might be a system error code: Incorrect function.


------------------- Video encoding using NVEnc 3.22 -------------------

C:\GPU\StaxRip-x64-1.7\Apps\NVEnc\NVEncC64.exe --cqp 18:20:22 --codec h265 --preset quality --output-depth 10 --weightp --lookahead 16 --transfer auto -i H:\NEW\testfile_temp\testfile.avs -o H:\NEW\testfile_temp\testfile_out.h265

NVEncC (x64) 3.23 (r667) by rigaya, Sep 26 2017 20:51:36 (VC 1900/Win/avx2)
OS Version Windows 7 x64 (7601)
CPU Intel Core i5-2500K @ 3.30GHz (4C/4T)
GPU #0: GeForce GTX 1060 6GB (10 EU) @ 1708 MHz (387.92)
NVENC / CUDA NVENC API 8.0, CUDA 9.1, schedule mode: auto
Input Buffers CUDA, 36 frames
Input Info Avisynth 2.60(yv12)->p010 [AVX], 1280x720, 24000/1001 fps
Vpp Filters copyHtoD
Output Info H.265/HEVC main10 @ Level auto
1280x720p 1:1 23.976fps (24000/1001fps)
Encoder Preset quality
Rate Control CQP I:18 P:20 B:22
Lookahead on, 16 frames, Adaptive I, B Insert
GOP length 240 frames
B frames 0 frames
Ref frames 3 frames, LTR: off
AQ off
CU max / min auto / auto
Others mv:auto
Error cudaEventSynchronize: 4 (cudaErrorLaunchFailure).

------------------- Video encoding using NVEnc 3.22 -------------------

C:\GPU\StaxRip-x64-1.7\Apps\NVEnc\NVEncC64.exe --cqp 18:20:22 --codec h265 --preset quality --output-depth 10 --weightp --lookahead 16 --transfer auto -i H:\NEW\testfile_temp\testfile.avs -o H:\NEW\testfile_temp\testfile_out.h265

NVEncC (x64) 3.23 (r667) by rigaya, Sep 26 2017 20:51:36 (VC 1900/Win/avx2)
OS Version Windows 7 x64 (7601)
CPU Intel Core i5-2500K @ 3.30GHz (4C/4T)
GPU #0: GeForce GTX 1060 6GB (10 EU) @ 1708 MHz (387.92)
NVENC / CUDA NVENC API 8.0, CUDA 9.1, schedule mode: auto
Input Buffers CUDA, 36 frames
Input Info Avisynth 2.60(yv12)->p010 [AVX], 1280x720, 24000/1001 fps
Vpp Filters copyHtoD
Output Info H.265/HEVC main10 @ Level auto
1280x720p 1:1 23.976fps (24000/1001fps)
Encoder Preset quality
Rate Control CQP I:18 P:20 B:22
Lookahead on, 16 frames, Adaptive I, B Insert
GOP length 240 frames
B frames 0 frames
Ref frames 3 frames, LTR: off
AQ off
CU max / min auto / auto
Others mv:auto
Error cudaEventSynchronize: 4 (cudaErrorLaunchFailure).

Start: 11:59:30 AM
End: 12:01:01 PM
Duration: 00:01:30



hope this helps, any further information I can give please let me know.


Please note that the issue does ALSO occur with stable 1.6.0.0 - so it might be video driver related - I updated my Nvidia GPU drivers to v387.92 two days ago.

Thank you.
craigpro is offline   Reply With Quote
Old 15th October 2017, 02:11   #2668  |  Link
stax76
staxrip & mpv.net
 
Join Date: Jun 2002
Posts: 5,239
Yes I think it's related to the new driver.

https://github.com/rigaya/NVEnc/issues/15
__________________
StaxRip - use pastebin for log files and imgbox for screenshots
mpv.net player
stax76 is offline   Reply With Quote
Old 15th October 2017, 02:25   #2669  |  Link
craigpro
Registered User
 
Join Date: Feb 2003
Posts: 33
Quote:
Originally Posted by stax76 View Post
Yes I think it's related to the new driver.

https://github.com/rigaya/NVEnc/issues/15
mate, you are a legend. thank you. I had a look at that other bloke's error report and I'll try it without the weightp option (if possible) as a workaround.. otherwise guess I need to wait until the issue is identified as a driver issue or not.

thank you.

EDIT: tried a quick test by disabling the weightp option and it works but video size is hardly compressed at all.

Last edited by craigpro; 15th October 2017 at 02:38.
craigpro is offline   Reply With Quote
Old 15th October 2017, 05:07   #2670  |  Link
suprasaiyan123
Registered User
 
Join Date: Sep 2017
Posts: 8
what's the correct way to encode x265 2160p HDR video?? I tried a test vid however after encoding(x265) the HDR metadata was no longer picked up and the encode was washed out, thought the metadata would automatically pass through to the encode??? using staxrip 1.7.0.0
suprasaiyan123 is offline   Reply With Quote
Old 15th October 2017, 07:52   #2671  |  Link
LazyNcoder
Registered User
 
Join Date: Feb 2015
Posts: 14
I also need a proper way to convert HDR to SDR. I think we need a guide for HDR -> HDR, HDR -> SDR, SDR -> HDR.
I think they talked about it before on the forum but it's needed to be gathered from many posts here as we don't have any complete guide about this.
LazyNcoder is offline   Reply With Quote
Old 15th October 2017, 13:20   #2672  |  Link
Zetti
Registered User
 
Join Date: Dec 2015
Posts: 52
FFmpeg v3.3.4 is released.
and
MP4Box v0.7.2-DEV-rev292 is released.
Zetti is offline   Reply With Quote
Old 15th October 2017, 23:56   #2673  |  Link
Natty
Noob
 
Join Date: Mar 2017
Posts: 56
https://mkvtoolnix.download/doc/NEWS.md

mkvtoolnix 17.0.0
Natty 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 04:51.


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