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 > Capturing and Editing Video > VirtualDub, VDubMod & AviDemux

Reply
 
Thread Tools Search this Thread Display Modes
Old 6th May 2021, 13:35   #1101  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
Oops, my fault, I only thought about the ffmpeg command line interface...

MeGUI uses the x265.exe command line encoder; this is neither a VfW codec nor a library module (as used in VirtualDub2's separate "FFMPEG / x265" encoder).

You might use the x265 CLI encoder via the "External encoder" setup in VirtualDub2. But this has no pretty user interface.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 6th May 2021, 14:52   #1102  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,345
Quote:
Originally Posted by SeeMoreDigital View Post
I installed x265vfw v3.40 which like libx264 core 157 video encoder does offer a method of entering 'Sample Aspect Ratio' values. But sadly the entered values don't appear to make it into the video stream



By contrast, the x265 video encoder in MeGUI is able to produce encodes with aspect ratio signalling within the video stream. But I don't know when/where this SAR information is added

Your screenshot for x265vfw shows DAR width, height, not SAR . Try 16 and 9 .

If the the extra commandline box works, you can enter --sar x:y there instead
poisondeathray is offline   Reply With Quote
Old 6th May 2021, 20:08   #1103  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
Quote:
Originally Posted by poisondeathray View Post
Your screenshot for x265vfw shows DAR width, height, not SAR . Try 16 and 9 .
After entering '16' in the 'DAR width' box and '9' in the 'DAR height' box, I can confirm that no aspect ratio signalling makes its way into the video stream...
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 7th May 2021, 08:25   #1104  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
Does it work differently if you use a side channel "Output file" in x265vfw, instead of passing it through VirtualDub2?
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 7th May 2021, 12:31   #1105  |  Link
takla
Registered User
 
Join Date: May 2018
Posts: 182
Is there any way to get 10bit to the dropdown menu under external encoder settings? I can only pick between yuv 8bit, 16bit and various rgb pixel formats.
takla is offline   Reply With Quote
Old 7th May 2021, 13:18   #1106  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
Quote:
Originally Posted by LigH View Post
Does it work differently if you use a side channel "Output file" in x265vfw, instead of passing it through VirtualDub2?
Sadly your suggestion does not work either
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 8th May 2021, 05:17   #1107  |  Link
shekh
Registered User
 
Join Date: Mar 2015
Posts: 775
Quote:
Originally Posted by takla View Post
Is there any way to get 10bit to the dropdown menu under external encoder settings? I can only pick between yuv 8bit, 16bit and various rgb pixel formats.
Such option is not implemented, but I assume it is safe to roundtrip 10-bit content in 16-bit. Are you afraid of rounding error?
__________________
VirtualDub2
shekh is offline   Reply With Quote
Old 8th May 2021, 08:02   #1108  |  Link
takla
Registered User
 
Join Date: May 2018
Posts: 182
Quote:
Originally Posted by shekh View Post
Such option is not implemented, but I assume it is safe to roundtrip 10-bit content in 16-bit. Are you afraid of rounding error?
I wanted to encode in 10bit (lossy) for better precision from the encoder. I'd like to do this with vdub2 since it is nice for cutting the video frame accurately. I'd then send the stream to ffmpeg.

Not sure what you mean with "roundtrip 10-bit content in 16-bit". But when I select 16bit, and set 10bit as an ffmpeg command, I get the following 2 errors:

with -pix_fmt yuv420p10le and 4:2:0 8bit yuv
https://i.imgur.com/8p3rCq1.png

with -pix_fmt yuv420p10le and 4:2:0 16bit yuv
https://i.imgur.com/ZZlw6pE.png

Last edited by takla; 8th May 2021 at 10:30.
takla is offline   Reply With Quote
Old 8th May 2021, 22:22   #1109  |  Link
shekh
Registered User
 
Join Date: Mar 2015
Posts: 775
Quote:
Originally Posted by takla View Post
I wanted to encode in 10bit (lossy) for better precision from the encoder. I'd like to do this with vdub2 since it is nice for cutting the video frame accurately. I'd then send the stream to ffmpeg.

Not sure what you mean with "roundtrip 10-bit content in 16-bit". But when I select 16bit, and set 10bit as an ffmpeg command, I get the following 2 errors:

with -pix_fmt yuv420p10le and 4:2:0 8bit yuv
https://i.imgur.com/8p3rCq1.png

with -pix_fmt yuv420p10le and 4:2:0 16bit yuv
https://i.imgur.com/ZZlw6pE.png

the ffmpeg command line must include pix_fmt twice: one for raw input and another for your desired output

like this:
Code:
-f rawvideo -pix_fmt %(pix_fmt) -s %(width)x%(height) -r %(fpsnum)/%(fpsden) -i - -c:v libx264 -pix_fmt yuv420p10le %(tempvideofile)
%(pix_fmt) macro always matches the format selected in dropdown in ffmpeg syntax.
__________________
VirtualDub2
shekh is offline   Reply With Quote
Old 9th May 2021, 06:04   #1110  |  Link
takla
Registered User
 
Join Date: May 2018
Posts: 182
Quote:
Originally Posted by shekh View Post
-
Ohh I see. Thanks. It's working now.
takla is offline   Reply With Quote
Old 12th May 2021, 17:21   #1111  |  Link
GAP
Registered User
 
Join Date: Sep 2020
Posts: 135
I have two questions:
  1. What is the difference the x264 8 bit and x264 10 bit codecs respectively? And is it similar to x264vfw codec?
  2. Can anyone explain what those FFMPEG encoders are?
GAP is offline   Reply With Quote
Old 12th May 2021, 18:31   #1112  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
1. x264 8 bit encodes video in the MPEG-4 AVC Main/High Profile with internal quantized components of 8 bit resolution; x264 10 bit encodes video in the MPEG-4 AVC High 10 Profile with internal quantized components of 10 bit resolution. The latter is specifically known to be useful for cartoon video content. — NOTE: Not every player is capable of playing High 10 Profile AVC video.

2. They are not VfW codecs, but provided by a separate collection of encoders based on ffmpeg's libavcodec library, so they are independent of any codecs installed into your Windows system. Similar to the decoders in VLC. VDub2 contains ffmpeg based decoders, too
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 12th May 2021 at 18:45.
LigH is offline   Reply With Quote
Old 17th May 2021, 08:07   #1113  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
I got a report that VirtualDub2 doesn't handle audio conversions when processing a clip with 24 bit PCM audio. Using FFmpeg Lame MP3 produces loud static noise (I can confirm). FFmpeg AAC "crashes" (in my case the dub process gets stuck after 650 audio samples, then "Integer division by zero" crash).

When I try to convert the audio to 16 bit internally in VirtualDub2 before compression, it fails with an error message in the Audio group of the "Save video" dialog, Sample Layout: [Cannot convert audio: the source audio form{...}].
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 26th May 2021, 08:17   #1114  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
Any idea about the reason, shekh? 24 bit integer not supported in the audio pipeline?

And again, the ffmpeg library ages on and on...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 26th May 2021, 18:08   #1115  |  Link
richardpl
Registered User
 
Join Date: Jan 2012
Posts: 272
What ages on and on?
richardpl is offline   Reply With Quote
Old 27th May 2021, 13:22   #1116  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
VirtualDub2 still uses an ffmpeg plugin version with an older API because adapting VirtualDub2 to the requirements of the most recent ffmpeg API version seems to be a heavy challenge for shekh...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 7th June 2021, 21:06   #1117  |  Link
shekh
Registered User
 
Join Date: Mar 2015
Posts: 775
Quote:
Originally Posted by LigH View Post
Any idea about the reason, shekh? 24 bit integer not supported in the audio pipeline?

And again, the ffmpeg library ages on and on...
Sorry for late reply, do you still have the sample? I tried it and it works for me (converted test file to pcm_s24le with ffmpeg).
Anyway, VD2 can internally work with u8, s16le, f32le. Other formats get converted by the input driver.
__________________
VirtualDub2
shekh is offline   Reply With Quote
Old 15th June 2021, 00:18   #1118  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,531
x264 with CRF <17 might be what you're searching for.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 19th June 2021, 08:55   #1119  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
@shekh: 24 bit example. AviSynth script just as dummy video track. Important part is the WAV file to be used as external audio track (Audio - Audio from other file...), in Audio "Full processing mode" and with a Compressor. Archive contains an MKV with Ut Video and PCM audio track, and to compare, another with MP3 audio track compressed via the FFmpeg Lame MP3 encoder. The result with AAC is broken, did not add this.

Audio driver is an "NVIDIA High Definition Audio" device, general Windows 10 64b.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 19th June 2021, 15:24   #1120  |  Link
GAP
Registered User
 
Join Date: Sep 2020
Posts: 135
How do you convert AVISynth scripts to Virtualdub processing scripts?
GAP 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 13:35.


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