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 August 2024, 12:05   #1341  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 51
Quote:
Originally Posted by v0lt View Post
Many SDR rips do not have colorimetry data. This is a problem because players and video editors have to guess from the frame size, which can be wrong.
It's a 1080p Blu-Ray remux, so what do I do to fix it?
jay123210599 is offline   Reply With Quote
Old 6th August 2024, 13:15   #1342  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,011
Depends on your goal and your methods...

Avisynth has functions to convert between YUV and RGB with different matrices. So at least you could use that to test which conversion matrix fits your needs. And then ... well, maybe a special tool can patch the video stream to add colorimetry metadata.

But that is already way beyond the purpose of VirtualDub2.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 6th August 2024, 14:33   #1343  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,064
Quote:
Originally Posted by jay123210599 View Post
It's a 1080p Blu-Ray remux, so what do I do to fix it?
I don't have your file (or a small sample), so I can't say anything.

I have a BD with this information:
Code:
General
ID                             : 0 (0x0)
Complete name                  : ...\BDMV\STREAM\00011.m2ts
Format                         : BDAV
Format/Info                    : Blu-ray Video
File size                      : 606 MiB
Duration                       : 2 min 42 s
Overall bit rate mode          : Variable
Overall bit rate               : 31.3 Mb/s
Maximum Overall bit rate       : 48.0 Mb/s
Frame rate                     : 29.970 FPS

Video
ID                             : 4113 (0x1011)
Menu ID                        : 1 (0x1)
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L4.1
Format settings                : CABAC / 4 Ref Frames
Format settings, CABAC         : Yes
Format settings, Reference fra : 4 frames
Format settings, Slice count   : 4 slices per frame
Codec ID                       : 27
Bit rate mode                  : Variable
Maximum bit rate               : 36.0 Mb/s
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate                     : 29.970 (30000/1001) FPS
Standard                       : NTSC
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : MBAFF
Scan type, store method        : Interleaved fields
Scan order                     : Top Field First
Color range                    : Limited
Color primaries                : BT.709
Transfer characteristics       : BT.709
Matrix coefficients            : BT.709

Audio
...
All the necessary data is present: Color range, Color primaries, Transfer characteristics, Matrix coefficients.

Last edited by v0lt; 6th August 2024 at 14:35.
v0lt is offline   Reply With Quote
Old 6th August 2024, 14:48   #1344  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 51
Quote:
Originally Posted by v0lt View Post
I don't have your file (or a small sample), so I can't say anything.

I have a BD with this information:
Code:
General
ID                             : 0 (0x0)
Complete name                  : ...\BDMV\STREAM\00011.m2ts
Format                         : BDAV
Format/Info                    : Blu-ray Video
File size                      : 606 MiB
Duration                       : 2 min 42 s
Overall bit rate mode          : Variable
Overall bit rate               : 31.3 Mb/s
Maximum Overall bit rate       : 48.0 Mb/s
Frame rate                     : 29.970 FPS

Video
ID                             : 4113 (0x1011)
Menu ID                        : 1 (0x1)
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L4.1
Format settings                : CABAC / 4 Ref Frames
Format settings, CABAC         : Yes
Format settings, Reference fra : 4 frames
Format settings, Slice count   : 4 slices per frame
Codec ID                       : 27
Bit rate mode                  : Variable
Maximum bit rate               : 36.0 Mb/s
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate                     : 29.970 (30000/1001) FPS
Standard                       : NTSC
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : MBAFF
Scan type, store method        : Interleaved fields
Scan order                     : Top Field First
Color range                    : Limited
Color primaries                : BT.709
Transfer characteristics       : BT.709
Matrix coefficients            : BT.709

Audio
...
All the necessary data is present: Color range, Color primaries, Transfer characteristics, Matrix coefficients.
Here's a sample.

https://mega.nz/file/cFZUUBqA#W5zPah...2NRObIy3nIqlLM
jay123210599 is offline   Reply With Quote
Old 6th August 2024, 15:33   #1345  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,064
Method of correcting parameters for BT.709:
Code:
ffmpeg -i "Blu-Ray Remux Sample.mkv" -map 0 -c copy -bsf:v h264_metadata=colour_primaries=1:transfer_characteristics=1:matrix_coefficients=1 "Blu-Ray Remux Sample_fix.mkv"
v0lt is offline   Reply With Quote
Old 6th August 2024, 16:49   #1346  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 51
Quote:
Originally Posted by v0lt View Post
Method of correcting parameters for BT.709:
Code:
ffmpeg -i "Blu-Ray Remux Sample.mkv" -map 0 -c copy -bsf:v h264_metadata=colour_primaries=1:transfer_characteristics=1:matrix_coefficients=1 "Blu-Ray Remux Sample_fix.mkv"
It worked! Now how do I do this in VirtualDub2?

Also, another problem that the both and new samples produced this glitched image. How do I fix that?

https://imgur.com/a/7YJsTUX
jay123210599 is offline   Reply With Quote
Old 6th August 2024, 17:56   #1347  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,064
Quote:
Originally Posted by jay123210599 View Post
It worked! Now how do I do this in VirtualDub2?
There is no such functionality. You want too much from VirtualDub and do not understand for what purposes it was made.
v0lt is offline   Reply With Quote
Old 6th August 2024, 18:01   #1348  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,424
When video is unflagged, vdub2 assumes Rec 601 for the RGB conversion. Usually this will be wrong for most HD video

A workaround in vdub2 would be, video => filters => alias format => color space Rec.709
poisondeathray is offline   Reply With Quote
Old 6th August 2024, 18:03   #1349  |  Link
rgr
Registered User
 
Join Date: Jun 2022
Posts: 82
Quote:
Originally Posted by poisondeathray View Post
When video is unflagged, vdub2 assumes Rec 601 for the RGB conversion. Usually this will be wrong for most HD video

A workaround in vdub2 would be, video => filters => alias format => color space Rec.709
Why so? In VDub in Video->Decode Format you can change from 601 to 709. Even set 709 as default.
rgr is offline   Reply With Quote
Old 6th August 2024, 18:16   #1350  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 51
Both solutions worked, but what about my other problem with the faulty image?
jay123210599 is offline   Reply With Quote
Old 6th August 2024, 18:17   #1351  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,424
Quote:
Originally Posted by rgr View Post
Why so? In VDub in Video->Decode Format you can change from 601 to 709. Even set 709 as default.
Yes decode format works and is a better workaround
poisondeathray is offline   Reply With Quote
Old 6th August 2024, 18:23   #1352  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,424
Quote:
Originally Posted by jay123210599 View Post
Both solutions worked, but what about my other problem with the faulty image?
I don't see the faulty image in vdub2 with your sample video. How did you produce the problem ?
poisondeathray is offline   Reply With Quote
Old 6th August 2024, 21:56   #1353  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 51
Quote:
Originally Posted by poisondeathray View Post
I don't see the faulty image in vdub2 with your sample video. How did you produce the problem ?
Never mind, I went the program again and it didn't show up, must have had to restart the tool.

Last edited by jay123210599; 6th August 2024 at 21:58.
jay123210599 is offline   Reply With Quote
Old 7th August 2024, 16:11   #1354  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 51
Is there a filter for VirtualDub2 that allows you to burn in PGS (.sup) subtitles?
jay123210599 is offline   Reply With Quote
Old 7th August 2024, 16:14   #1355  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,011
There is one for AviSynth: SupTitle
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 7th August 2024, 18:03   #1356  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 51
Quote:
Originally Posted by poisondeathray View Post
When video is unflagged, vdub2 assumes Rec 601 for the RGB conversion. Usually this will be wrong for most HD video

A workaround in vdub2 would be, video => filters => alias format => color space Rec.709
Unflagged video? What does that mean?
jay123210599 is offline   Reply With Quote
Old 7th August 2024, 18:29   #1357  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,011
"Unflagged" = The video stream contains no set of bits (= bitflag) describing some of its attributes, here its colorimetry.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 7th August 2024, 22:07   #1358  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 51
I want to use ffmpeg as an external encoder to extract frames and make image sequences, and also burn in subtitles. How do I do that while replacing it with the default encoder?
jay123210599 is offline   Reply With Quote
Old 8th August 2024, 04:22   #1359  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,064
Quote:
Originally Posted by jay123210599 View Post
I want to use ffmpeg as an external encoder...
Options > External encoders...

after you have everything set up

File > Export > Use external encoder...
v0lt is offline   Reply With Quote
Old 8th August 2024, 05:23   #1360  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 51
Quote:
Originally Posted by v0lt View Post
Options > External encoders...

after you have everything set up

File > Export > Use external encoder...
and the rest of the my question? to extract frames and make image sequences, and also burn in subtitles?

Last edited by jay123210599; 8th August 2024 at 21:47.
jay123210599 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 23:33.


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