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 16th October 2024, 16:39   #1461  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,130
Quote:
Originally Posted by Hushpower View Post
@Volt, FYI, the file in this post:

https://forum.videohelp.com/threads/...on#post2753941

won't open in your Vdub 2.1. It throws an error:

"FFMPEG: Unsupported Channel Layout"
FFmpeg 7.1 reports that the audio track has no information about the audio channel layout.
Quote:
AV_CHANNEL_ORDER_UNSPEC
Only the channel count is specified, without any further information about the channel order
Accordingly, the plugin cannot automatically assign channels (left, right, subwoofer, etc.). If there were 2 channels, then we could assume that this is stereo, but you have 16.

Last edited by v0lt; 16th October 2024 at 16:44.
v0lt is offline   Reply With Quote
Old 16th October 2024, 18:50   #1462  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,130
remove std::allocator

Question for C++ experts.
Can anyone remove (replace) the obsolete std::allocator from the VirtualDub2 source code?

Last edited by v0lt; 17th October 2024 at 19:26.
v0lt is offline   Reply With Quote
Old 18th October 2024, 04:20   #1463  |  Link
Hushpower
Registered User
 
Join Date: Sep 2023
Posts: 12
@Volt
Quote:
FFmpeg 7.1 reports that the audio track has no information about the audio channel layout.
Quote:
Accordingly, the plugin cannot automatically assign channels (left, right, subwoofer, etc.). If there were 2 channels, then we could assume that this is stereo, but you have 16.
So it must be a bug or recent "shortcoming" in FF 7.1, because the previous avlib plugin opened that file with no issues.

Where would I report this?
Hushpower is offline   Reply With Quote
Old 18th October 2024, 04:56   #1464  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,130
Quote:
Originally Posted by Hushpower View Post
So it must be a bug or recent "shortcoming" in FF 7.1, because the previous avlib plugin opened that file with no issues.
Older versions of FFmpeg and the avlib plugin opened this file incorrectly.

For regular audio tracks, there is a one-to-one mapping of the audio channel to the audio speaker.
This mapping is done either through a specific channel order and channel mask, or it is described in standards (see Dolby Digital, DTS). You can read more in the article "Surround sound" in Wikipedia.

There is nothing like that in your file. Perhaps all these tracks are obtained from special software for working with sound. Someone made a full export without proper mixing to standard channel layouts (stereo, 5.1, 7.1, etc.).
v0lt is offline   Reply With Quote
Old 19th October 2024, 00:58   #1465  |  Link
Hushpower
Registered User
 
Join Date: Sep 2023
Posts: 12
Quote:
Originally Posted by Volt
Older versions of FFmpeg and the avlib plugin opened this file incorrectly.
As I said in my first post, VDub2.0 44282 opens that file without issue, and it can be exported as two-channel after setting up the audio conversion. How it does it, I don't know. Certainly, with the "original" 40,071kb avlib plugin (without all those DLLs), VDub2 opens it without issue.

The original avlib plugin in VDub2.0 obviously uses a different process to both the new avlib plugin, and the avlib plugin in VDub 2.1.

The old avlib opens it OK, the new one (with it's new DLLs) doesn't. That's all I'm pointing out.

Quote:
Perhaps all these tracks are obtained from special software for working with sound. Someone made a full export without proper mixing to standard channel layouts (stereo, 5.1, 7.1, etc.).
It came from Latreche/Dellsam:

Quote:
In an effort to ditch the computer for capturing (a thread is coming) I use the BM HyperDeck Shuttle 2 to record from SDI out of the analog capture device, The files are recorded in lossless quicktime because it's the only format the Hyperdeck 2 accepts, I have trouble working with this format, for one MPC-HC doesn't play it albeit VLC does, It writes 16 audio ch even when there is only two active
Hushpower is offline   Reply With Quote
Old 19th October 2024, 07:24   #1466  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,130
Quote:
Originally Posted by Hushpower View Post
It came from Latreche/Dellsam:
Quote:
In an effort to ditch the computer for capturing (a thread is coming) I use the BM HyperDeck Shuttle 2 to record from SDI out of the analog capture device, The files are recorded in lossless quicktime because it's the only format the Hyperdeck 2 accepts, I have trouble working with this format, for one MPC-HC doesn't play it albeit VLC does, It writes 16 audio ch even when there is only two active
Obviously you need to reconfigure your capture device or fix the resulting file.
Code:
ffmpeg -i "HyperDeckS2.mov" -af "channelmap=0|1:stereo" -c:v copy -c:a pcm_s24le "HyperDeckS2_fix.mov"
v0lt is offline   Reply With Quote
Old 19th October 2024, 13:01   #1467  |  Link
Hushpower
Registered User
 
Join Date: Sep 2023
Posts: 12
No need, I'll just use VDub 2.0.
Hushpower is offline   Reply With Quote
Old 19th October 2024, 13:44   #1468  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,130
VirtualDub2_v2.1.2.655 (test build)
various code reworks
added experimental Win32 support
v0lt is offline   Reply With Quote
Old 23rd October 2024, 09:16   #1469  |  Link
rgr
Registered User
 
Join Date: Jun 2022
Posts: 109
VDub crashes if we put propset("_Matrix") with invalid values ​​(e.g. a string) in AviSynth code.
rgr is offline   Reply With Quote
Old 23rd October 2024, 17:33   #1470  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,130
Quote:
Originally Posted by rgr View Post
VDub crashes if we put propset("_Matrix") with invalid values ​​(e.g. a string) in AviSynth code.
There's a lot you haven't said. But I doubt there are people here who would want to guess all the nuances of your problem.
v0lt is offline   Reply With Quote
Old 25th October 2024, 12:18   #1471  |  Link
rgr
Registered User
 
Join Date: Jun 2022
Posts: 109
Quote:
Originally Posted by v0lt View Post
There's a lot you haven't said. But I doubt there are people here who would want to guess all the nuances of your problem.
Now I see that VDub doesn't want to crash. I'll check it again.
rgr is offline   Reply With Quote
Old 28th October 2024, 16:21   #1472  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,130
VirtualDub2_v2.1.2.661 (test build)
Fixed a crash when capturing video and saving to ProRes and other similar formats.
avlib-1.vdplugin: Fixed freezing after early interruption of writing to a file when using some codecs.
scripted.vdplugin: The list of keywords, internal functions and internal filters for AviSynth+ has been updated.

Last edited by v0lt; 29th October 2024 at 16:14.
v0lt is offline   Reply With Quote
Old 29th October 2024, 18:40   #1473  |  Link
SupermanTV
Registered User
 
Join Date: Jul 2019
Posts: 8
v0lt, thanks for this test build with the ProRes (avi) capture fix.

Played around with it and seems to be working ok, at least the way that last vDub2 v44015 did. (yuv4:2:2 working).
Good to have this available again!!

Also, as I mentioned in my original post about this issue,
do you know why these Prores (avi) files trigger 'COM Surrogate' error and crash on Win 10?
I'm thinking it could be related to 'metadata' handling/implementation, thumbnails maybe...?

Another question: I would think you're applying the 'generic' prores implementation..!? (prores, prores_aw, prores_ks)

Keep up the good work!!

PS... For reference, this is my original issue with ProRes avi:
https://forum.doom9.org/showthread.php?t=185848

Last edited by SupermanTV; 29th October 2024 at 18:51.
SupermanTV is offline   Reply With Quote
Old 30th October 2024, 04:39   #1474  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,130
Quote:
Originally Posted by SupermanTV View Post
Another question: I would think you're applying the 'generic' prores implementation..!? (prores, prores_aw, prores_ks)
FFmpeg 7.1.

Last edited by v0lt; 30th October 2024 at 17:11.
v0lt is offline   Reply With Quote
Old 30th October 2024, 10:50   #1475  |  Link
nji
Registered User
 
Join Date: Mar 2018
Location: Germany
Posts: 237
Possible bug at orig pane view of non-labeled bt.709 (HD) movies?

I recently noticed that (some?) HD movies (1920x1080p, YUV4:2:0)
which are not explicitely labeled as bt.709
are shown in VD2 orig pane as if VD2 takes them as bt.609
(esp. this typical small shift red/yellow to green/blue).

If I use alias format filter as first filter and choose bt.609
both panes (orig and result) are the same.
If choosing bt.709 in the filter the result pane is more red/yellow than the orig pane.
==> Conclusion: orig movie is colorspace bt.609.

BUT:
The orig movie actually is the red/yellow one!
At least MPC-HC shows it that way...

So VD2's orig pane view is misleading...

Or is it about the default handling of the case that movie dimensions are HD,
but no color entry (which usually means bt.609)?
nji is offline   Reply With Quote
Old 30th October 2024, 11:33   #1476  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,147
It's 601 vs. 709.

And it might indeed be a matter of default values. Some renderers may assume that any resolution larger than SD (e.g. DVD Video resolutions as threshold) is BT.709; other renderers may be set up to assume BT.601 if not explicitly flagged otherwise. Hard to tell, there are different places where that default could be set up (e.g. another YUV - RGB conversion in front of the renderer), there are different renderers which could be used by different methods of playback ...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 30th October 2024, 11:48   #1477  |  Link
nji
Registered User
 
Join Date: Mar 2018
Location: Germany
Posts: 237
Still it's not just a "cosmetic issue", but an important one:

If the views of the don't show the real thing,
I will be mislead and probably use (incorrectly) a color filter...
nji is offline   Reply With Quote
Old 30th October 2024, 12:01   #1478  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,147
So how is your VirtualDub2 set up? Which kind of display does it use: DirectX at all? DirectX 9 or 11? Or OpenGL? Or Hardware Overlay? And how is your graphic driver set up in case of Hardware Overlay?

And which does the media player use you compare VirtualDub2 to? It will probably be a different renderer.

You cannot blame the VirtualDub2 author for things you did (not) set up or VirtualDub2 cannot control from itself. But we can both wait for a reply from a more competent person than me ...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 30th October 2024, 12:17   #1479  |  Link
nji
Registered User
 
Join Date: Mar 2018
Location: Germany
Posts: 237
Quote:
Originally Posted by LigH View Post
...
You cannot blame the VirtualDub2 authors ...
No, I do not blame anyone.

I just want to point out that there is a pitfall,
that might result in systematic downgraded movies.
(At least this was the case for me).

And that this pitfall might be avoided...
nji is offline   Reply With Quote
Old 30th October 2024, 15:00   #1480  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,130
In the new avlib-1.vdplugin the logic is as follows:
Code:
if (colorspace == AVCOL_SPC_UNSPECIFIED) {
  if (width <= 1024 && height <= 576)
    cs = BT601;
  else
    cs = BT709;
}
v0lt 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 17:52.


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