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 > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th March 2013, 17:44   #14481  |  Link
XPC
Registered User
 
Join Date: Oct 2009
Posts: 41
May be you could take a look to the debug output I attached to the issue. It could give us an idea on what is happening.

If you want, I can do the debugging, but I would need some support.
XPC is offline   Reply With Quote
Old 19th March 2013, 20:30   #14482  |  Link
doskabouter
Registered User
 
Join Date: Dec 2009
Posts: 4
Hi,

I was just experimenting a bit (seems that I still have some SAF parts installed) with LAV and h264 video, and I get a lot of framedrops using LAV.

When I choose ffdshow, the video is playing smoothly, so hardware is definitely capable of displaying it.

Screenshots of different config/movie in mediaportal here:
ftp://dump@88.159.164.124/LAV/LAV Experiments.zip

Os is vista32, AMD Athlon 4850e with onboard Radeon HD 3200.

Video:
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Muxing mode : Container profile=Unknown@4.0
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 48mn
Bit rate : 8 515 Kbps
Nominal bit rate : 8 968 Kbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16/9
Frame rate : 23.976 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.171
Writing library : x264 core 94 r1583 7608d73
Encoding settings : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=7 / psy=1 / psy_rd=1.00:0.20 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=8968 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : English


Can you take a look at it, or do you need more info?
doskabouter is offline   Reply With Quote
Old 20th March 2013, 20:15   #14483  |  Link
itsonlyjustincase
Registered User
 
Join Date: Nov 2009
Posts: 152
Weird Lav Behaviour with Serato Video Software

Hi guys,

I have worked a lot and understood a lot. But that i don't manage to get it :

Left part of the screen is the 2 videos playing at the sametime and being mixed (that is why there is only 1 output windows)

I had enabled the lav tray icon. As you can see the DXVA2 native is choosen. You can see that it is not in use. It is written "avcodec".

But on the right part is the same video launched with MPC-HC forced with lav (same configuration with DXVA2 native). And that time it's being used well and i can confirm it with GPU-Z graph which shows that the video engine load increases only when i start the video with MPC-HC

My goal would be to ensure my application is using DXVA2

File used is 720p H264 AAC (taken from youtube)


Last edited by itsonlyjustincase; 20th March 2013 at 23:25.
itsonlyjustincase is offline   Reply With Quote
Old 20th March 2013, 20:21   #14484  |  Link
itsonlyjustincase
Registered User
 
Join Date: Nov 2009
Posts: 152
My Serato Video app is OpenGL perhaps it's the reason ? Is there any LAV Filters OpenGL version ?
itsonlyjustincase is offline   Reply With Quote
Old 20th March 2013, 21:25   #14485  |  Link
Konrad Klar
Registered User
 
Konrad Klar's Avatar
 
Join Date: Nov 2005
Location: Wałbrzych, Poland
Posts: 108
@itsonlyjustincase
Try DXVA2 (copy-back). Native requires a compatible renderer (not sure what Serato Video app is exactly doing).
Konrad Klar is offline   Reply With Quote
Old 20th March 2013, 23:36   #14486  |  Link
itsonlyjustincase
Registered User
 
Join Date: Nov 2009
Posts: 152
Quote:
Originally Posted by Konrad Klar View Post
@itsonlyjustincase
Try DXVA2 (copy-back). Native requires a compatible renderer (not sure what Serato Video app is exactly doing).
The thing i don't understand is why it's not the lav video decoder that manages the hardware acceleration :s.

I want to use DXVA2 native because i have the best video engine load with it and my GPU is the most used with that setting so my CPU is relaxed the most and allow me to mix in better condition and as well record my mix with 3rd part soft like msi after burner.

Here is a kind of stress test with 6 H264 720p videos loaded at the same time with MPC-HC using LAV and the different settings :




Last edited by itsonlyjustincase; 20th March 2013 at 23:39.
itsonlyjustincase is offline   Reply With Quote
Old 20th March 2013, 23:55   #14487  |  Link
itsonlyjustincase
Registered User
 
Join Date: Nov 2009
Posts: 152
Same test with 12 videos loaded at the same time (still H264 720p)
In the order of the screeshot :
-CUVID
-DXVA2CB
-DXVA2N



itsonlyjustincase is offline   Reply With Quote
Old 21st March 2013, 00:07   #14488  |  Link
itsonlyjustincase
Registered User
 
Join Date: Nov 2009
Posts: 152
In case of some would be curious i also did the test with Intel Quicksync as my asus UX32VD has also intel HD 4000. In that case i forced MPC-HC to use the intel GPU. I couldn't do anything more as the CPU was 100% :

itsonlyjustincase is offline   Reply With Quote
Old 21st March 2013, 00:10   #14489  |  Link
Konrad Klar
Registered User
 
Konrad Klar's Avatar
 
Join Date: Nov 2005
Location: Wałbrzych, Poland
Posts: 108
If the codec is used for playback (i.e. video is not decoded faster than in its supposed FPS) what a virtue in higher GPU load?

Native decodes frames to the graphics card memory and passes them directly to the renderer.
Copy-back and CUVID use more CPU time just because they copy frames from GPU to main memory and back, but they do not require compatible renderer and allow for processing a frames before sending them to renderer.
Konrad Klar is offline   Reply With Quote
Old 21st March 2013, 00:21   #14490  |  Link
itsonlyjustincase
Registered User
 
Join Date: Nov 2009
Posts: 152
Quote:
Originally Posted by Konrad Klar View Post
If the codec is used for playback (i.e. video is not decoded faster than in its supposed FPS) what a virtue in higher GPU load?

Native decodes frames to the graphics card memory and passes them directly to the renderer.
Copy-back and CUVID use more CPU time just because they copy frames from GPU to main memory and back, but they do not require compatible renderer and allow for processing a frames before sending them to renderer.
Yes I understand but it is just that visually with the 6 vids for example and dxva2 native, it was playing fluid. It was not the case with CUVID. And the major point is that my my Serato Video software, when I play 1 video the fps is around 40 (the pipe fps) then drops to 20fps with two videos loaded at the same time so it's not fluid anymore (less than 25-30 fps). If i had msi after burner recording with vfw x264 recording optimized to its best performance settings (fast decode, zero latency, etc...) it drops to something like 10 fps and this even if the CPU and GPU are OK :s (yes so freaking weird :s). That is why i thought perhaps using dxva2 native it would stress the GPU a bit more cause i don't understand why it's slow regarding the fact the CPU is around 60% of load, the GPU around 40%, the video engine around 30%, the RAM around 50%, I have a samsung 830 SSD on which the msi afterburner output file is being copied and the output don't manage to stay at a reasonnable 30 fps :s. I thought of a bottleneck in a first time but everything seems normal
itsonlyjustincase is offline   Reply With Quote
Old 21st March 2013, 01:34   #14491  |  Link
itsonlyjustincase
Registered User
 
Join Date: Nov 2009
Posts: 152
It would be awesome to have lav using CUVID+QUICKSYNC at the same time to decode
itsonlyjustincase is offline   Reply With Quote
Old 21st March 2013, 02:13   #14492  |  Link
itsonlyjustincase
Registered User
 
Join Date: Nov 2009
Posts: 152
Or option to force framerate
itsonlyjustincase is offline   Reply With Quote
Old 21st March 2013, 03:09   #14493  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,461
Please! smaller screen shots.

Quote:
Originally Posted by itsonlyjustincase View Post
The thing i don't understand is why it's not the lav video decoder that manages the hardware acceleration :s.
LAV does manage the hardware acceleration but to leave the video frame in the GPU's memory you need a renderer that knows how to deal with it. If your renderer doesn't you need copy back.

Quote:
Originally Posted by itsonlyjustincase View Post
It would be awesome to have lav using CUVID+QUICKSYNC at the same time to decode
HUH? no it wouldn't, that doesn't even make sense. Or do you mean for different videos? Mulitple instances of LAV running at the same time some using CUVID and some using Quicksync?

This is about trying to play multiple videos all at the same time? None of the hardware acceleration options have good support for multiple streams at once as far as I understand it. This is why you start getting dropped frames even with both the GPU and CPU at less than 100%. It isn't something LAV can influence.
Asmodian is offline   Reply With Quote
Old 21st March 2013, 08:35   #14494  |  Link
itsonlyjustincase
Registered User
 
Join Date: Nov 2009
Posts: 152
Quote:
Originally Posted by Asmodian View Post
Please! smaller screen shots.



LAV does manage the hardware acceleration but to leave the video frame in the GPU's memory you need a renderer that knows how to deal with it. If your renderer doesn't you need copy back.



HUH? no it wouldn't, that doesn't even make sense. Or do you mean for different videos? Mulitple instances of LAV running at the same time some using CUVID and some using Quicksync?

This is about trying to play multiple videos all at the same time? None of the hardware acceleration options have good support for multiple streams at once as far as I understand it. This is why you start getting dropped frames even with both the GPU and CPU at less than 100%. It isn't something LAV can influence.
Sorry for the XL screenshots.

Do you agree that using CPU+GPU to encode or decode videos does make sense to have better performance ? That's what the good video application do nowadays to have better conversion times etc...

So why using CPU+GPU+GPU wouldn't make sense ? It's just about being able to take power from everywhere to avoid bottleneck of one of the elements. It's like an application which uses all the cores of your CPU will work with better performance than one using only a single core.

But analyzing all of this just make me realize that i should just admin that it's the Serato Video software (www.serato.com) which was developped like shit. I can open 6 videos using 6 lav instance at the same time and playing fluid, but 2 with the Serato app can't well :s. The rendering from what i understand is crappy.

I just hopped i could be able to find a solution thanks to a kind of magical video codec
itsonlyjustincase is offline   Reply With Quote
Old 21st March 2013, 15:40   #14495  |  Link
Mercury_22
Registered User
 
Join Date: Dec 2007
Posts: 1,138
Latest versions of LAV DXVA2 (native) are crashing when trying to play Blu-ray menus with MediaPortal and DSLibBluray there are also black screens instead of video for some menu videos too (this one tested only in DSLibBluray)

Everything it's playing fine with LAV DXVA2 (native) "official" version (from the first page)

P.S. With CB the only problem in all version are the black screens in the menu
__________________
Intel UHD Graphics 750; Win 10 22H2

Last edited by Mercury_22; 21st March 2013 at 15:50.
Mercury_22 is offline   Reply With Quote
Old 21st March 2013, 16:04   #14496  |  Link
moliko
Registered User
 
Join Date: Apr 2011
Location: Germany
Posts: 8
I have a issue with the Dolby Pro Logic II.
Enable Mixing is set to 5.1.
Matrix Encoding: Dolby Pro Logic II
Setttings: Donīt mix Stereo sources unchecked
The Output shows 6 Channels but its plays only Stereo.

Is it possible in future version to get LFE Crossover (Bass Redirection) and a Profil Manager for Lav Audio ?

Thanks for your work
moliko is offline   Reply With Quote
Old 21st March 2013, 16:08   #14497  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,378
Quote:
Originally Posted by moliko View Post
I have a issue with the Dolby Pro Logic II.
Enable Mixing is set to 5.1.
Matrix Encoding: Dolby Pro Logic II
Setttings: Donīt mix Stereo sources unchecked
The Output shows 6 Channels but its plays only Stereo.
DPLII is only for downmixing, so that a DPLII-compatible receiver can reconstruct a 5.1 signal (useful in case you only have a stereo SPDIF link to your receiver, for example)
LAV does not do any upmixing right now, because proper upmixing requires a lot of filtering, and simple upmixing sounds terrible for movies.

Quote:
Originally Posted by moliko View Post
Is it possible in future version to get LFE Crossover (Bass Redirection) and a Profil Manager for Lav Audio ?
LFE crossover will most likely not happen, and its doubtful a profile manager will ever be added, because it goes against my design goal of simple configuration, and focusing the effort on perfect playback instead, not post-processing.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 21st March 2013, 16:17   #14498  |  Link
wanezhiling
Registered User
 
Join Date: Apr 2011
Posts: 1,184
http://www.sendspace.com/file/h18xmn
jitter in sw/dxva mode, cuvid is fine.

latest lav s + lav v
wanezhiling is offline   Reply With Quote
Old 21st March 2013, 16:36   #14499  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,378
Quote:
Originally Posted by wanezhiling View Post
http://www.sendspace.com/file/h18xmn
jitter in sw/dxva mode, cuvid is fine.

latest lav s + lav v
Ah fun another ffmpeg bug from the recent changes. Its fixed locally, will push when i'm back home.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 21st March 2013, 17:19   #14500  |  Link
wanezhiling
Registered User
 
Join Date: Apr 2011
Posts: 1,184


a question: sw and 2 dxva modes are based on ffmpeg? cuvid and qs are independent? am i right?
wanezhiling is offline   Reply With Quote
Reply

Tags
decoders, directshow, filters, splitter

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 16:51.


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