amayra / xvid4psp

Automatically exported from code.google.com/p/xvid4psp
GNU General Public License v2.0
0 stars 0 forks source link

Disabling audio extract? #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello.

I would like to know if it was possible to get an option to disable audio 
extraction?

I'm asking this because when I try to re-encode ordered chapters mkv files that 
have aac audio into mp4, xvid4psp extracts the audio from the main file and 
re-encodes that one which is shorter.

Right now, if I wanna re-encode those files, I've to manually edit the avs 
file, which is rather annoying when you plan to re-encode multiple files.

And the directshow filters works just fine when modifying the script from this:

import("C:\Program Files (x86)\Winnydows\XviD4PSP 
5\dlls\AviSynth\functions\AudioFunctions.avs")
import("C:\Program Files (x86)\Winnydows\XviD4PSP 
5\dlls\AviSynth\functions\VideoFunctions.avs")
loadplugin("C:\Program Files (x86)\Winnydows\XviD4PSP 
5\dlls\AviSynth\plugins\bass\bassAudio.dll")

video = DirectShowSource("E:\Usenet\Hunter X Hunter (US)\03 - Hunter X Hunter - 
OAV (US)\[Yellow-Flash]_Hunter_X_Hunter_OVA_-_01_[DVD][496BADF3].mkv", 
audio=false, fps=23.976, convertfps=true)
audio = bassAudioSource("C:\Temp\1140_0.aac")
AudioDub(video, audio)

to this:

video = DirectShowSource("E:\Usenet\Hunter X Hunter (US)\03 - Hunter X Hunter - 
OAV (US)\[Yellow-Flash]_Hunter_X_Hunter_OVA_-_01_[DVD][496BADF3].mkv", 
audio=false, fps=23.976, convertfps=true)
audio = DirectShowSource("E:\Usenet\Hunter X Hunter (US)\03 - Hunter X Hunter - 
OAV (US)\[Yellow-Flash]_Hunter_X_Hunter_OVA_-_01_[DVD][496BADF3].mkv", 
video=false, fps=23.976, convertfps=true)
AudioDub(video, audio)

Thanks a lot

Original issue reported on code.google.com by Okocha1...@gmail.com on 28 Sep 2011 at 11:00

GoogleCodeExporter commented 9 years ago
Hi!

With DirectShowSource audio can be decoded also like this (i.e. in one-line 
call):

DirectShowSource("E:\Usenet\Hunter X Hunter (US)\03 - Hunter X Hunter - OAV 
(US)\[Yellow-Flash]_Hunter_X_Hunter_OVA_-_01_[DVD][496BADF3].mkv", fps=23.976, 
convertfps=true)

- and this is exactly how it should be if you didn't disable audio decoding via 
DirectShowSource. So:

1. go to "Video->Decoding" and make sure that option "Enable Audio" (in 
DirectShowSource group) is enabled.
2. audio will be extracted if DirectShowSource changing the number of the 
channels (it means that some kind of Mixing is enabled in your 
DirectShow-decoder, that mix the channels accordingly to the number of the 
speakers in your PC audio system). Disable this Mixer! Add Info() to the end of 
the script above and make sure that Audio Channels (the number) is the same as 
MediaInfo (from the Tools menu) told you.
3. audio will be extracted if the script above produces errors that starts with 
"DirectShowSource:" and contains "unable to determine the duration of the 
audio." or "Timeout waiting for audio.".

4. If steps 1-3 is OK, audio must be decoded with DirectShowSource without 
demuxing it. If demuxing still exists (but why???), instead of editing the 
script, you can add your source mkv file as external audio track in 
"Audio->Processing options" window (or press big "Configure" button). But 
before this, go to "Audio->Decoding", "Add" new line and change extension from 
"edit" to "mkv", then select DirectShowSource as decoder for this line.

Original comment by forc...@gmail.com on 29 Sep 2011 at 9:25

GoogleCodeExporter commented 9 years ago
Hello.

Step 1-3 didn't work, it still keeps demuxing it.
Loading the mkv in the "Audio->Processing options" works but still it's not 
convenient if you plan to re-encode several files, that's why I was asking a 
way to disable it.

Original comment by Okocha1...@gmail.com on 29 Sep 2011 at 11:17

GoogleCodeExporter commented 9 years ago
Also, could you please update the DirectShowLib from xvid4psp, it seems that a 
new version came out that fixes bug with windows 7 and 64 bit OS' which I'm 
using.

Original comment by Okocha1...@gmail.com on 29 Sep 2011 at 11:55

GoogleCodeExporter commented 9 years ago
It's strange, because audio will be demuxed only in those situations discribed 
above. I will give you a test-build that will pop up a message window when 
(where and why) audio will be extracted. But not right now..

About DirectShowSource. Where I can get it and where I can read about fixed 
bug(s)?

Original comment by forc...@gmail.com on 29 Sep 2011 at 1:16

GoogleCodeExporter commented 9 years ago
Thanks a lot for your reply.

You can get DirectShowLib here http://directshownet.sourceforge.net/

Original comment by Okocha1...@gmail.com on 29 Sep 2011 at 1:32

GoogleCodeExporter commented 9 years ago
Sorry, I read your previous message incorrectly (I thought we're still talking 
about DirectShowSource). There is no any reasons to update DirectShowLib, 
because it used in 32-bit mode (XviD4PSP is 32-bit application), DsROTEntry and 
all those new interfaces didn't used by XviD4PSP. So there is no changes for us.

http://ge.tt/8VQ87H8?c - here is exe for r265 + popup message window.

Original comment by forc...@gmail.com on 29 Sep 2011 at 2:00

GoogleCodeExporter commented 9 years ago
OK, thanks.

It shows me this http://i0.uyl.me/files/22571139211157345232.png
Which is strange because mediainfo tells me that all files (op + main + ed) are 
2 channel stereo.
So why does he wanna output it as 6 channel?

Original comment by Okocha1...@gmail.com on 29 Sep 2011 at 2:19

GoogleCodeExporter commented 9 years ago
Great :)

Did you see any decoders-icons (ffaudio for example) in tray when 
DirectShowSource is used for decoding audio? If yes, click on this icon and 
make sure that there is no any Mixing options enabled. In ffaudio this is on 
the Mixer tab - just uncheck it. Sorry, I don't know anything about other 
decoders. But until you not disable this mixing (wherever is placed), you will 
always get your audio demuxed.

Original comment by forc...@gmail.com on 29 Sep 2011 at 2:30

GoogleCodeExporter commented 9 years ago
I only see the FFvideo in the tray.
What's strange is that even after disabling aac decoding in FFDshow and in the 
windows merit (Preferred Directshow decoding filters), xvid4psp is still able 
to decode an play a mkv with aac audio.

Original comment by Okocha1...@gmail.com on 29 Sep 2011 at 3:13

GoogleCodeExporter commented 9 years ago
You can use GraphEdit or GraphStudio (run 32-bit versions) to determine what 
filters is used and to tweak the settings of this filers by righ-clicking on 
it. Or, assuming that you have 5.10.260.0 installed, you can open your file in 
WPF Video Player (WPF_VideoPlayer.exe or AviSynth->Play in WPF Video Player). 
By right clicking you will get a context menu, and in the "DShow filters" item 
you can see all the filters that used to render your file, theirs property 
pages also available from here - just click on the filter.

Original comment by forc...@gmail.com on 29 Sep 2011 at 3:39

GoogleCodeExporter commented 9 years ago
In WPF Video Player, I see this http://i0.uyl.me/files/78796293846071352511.png
And in FFaudio this http://i0.uyl.me/files/08481006903206260708.png

But After disabling again aac in FFDaudio, WPF Video Player showed the real 
alternative Directshow decoder for aac.

So I uninstalled real alternative lite, enabled aac again in FFDaudio, 
re-installed real alternative lite, reset (again) the video and audio decoding 
options in xvidp4psp and now it works.
It doesn't demux it anymore. And it even don't demux it with muxer enable in 
FFDaudio.

Thanks a lot, your suggestion for using WPF Video Player helped me to identify 
and correct that bug.

Original comment by Okocha1...@gmail.com on 29 Sep 2011 at 4:33

GoogleCodeExporter commented 9 years ago
Nice to see that the problem is solved :)

Original comment by forc...@gmail.com on 29 Sep 2011 at 5:28