Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

Pages: (23) « First ... 18 19 [20] 21 22 ... Last » ( Go to first unread post )
New FLV and Matroska plugins for VirtualDub, (works in progress)
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
L.H.V.F.
Posted: Jul 14 2011, 04:07 AM


Advanced Member


Group: Members
Posts: 49
Member No.: 28822
Joined: 19-October 10



Hi, fccHandler

I have done download your latest version of the Matroska Input Plugin, 3.0, and I have a video ".ogg" then I have decided testing with a video Theora (Vorbis Codec), included in ubuntu Linux distribution. The video mentioned is:

http://www.4shared.com/audio/mTthig5x/How_fast.html (original video)

With a tutorial that I have saw in Doom9.org Forum, I have used ffmpeg-18639 win32, and I have forced direct stream copy for both audio and video, and demux for .mkv:
Adresses mentioned:

http://forum.doom9.org/archive/index.php/t-134350.html

http://www.4shared.com/video/XD9VlmJ4/Output.html (video demuxed for Matroska)

I want to know if the video has really "0x566F" in audio part?:

http://s13.postimage.org/5842bl26v/problem_decompressor.png

MediaInfo says:

General
Unique ID : 188800917440159401000820085881975912419 (0x8E09BBEA36E4A8B9A8B5F212781CB7E3
Complete name : C:\Unzipped\ffmpeg-18639\Output.mkv
Format : Matroska
Format version : Version 2
File size : 1.81 MiB
Duration : 30s 168ms
Overall bit rate : 502 Kbps
Writing application : Lavf52.32.0
Writing library : Lavf52.32.0

Video
ID : 1
Format : Theora
Codec ID : V_THEORA
Duration : 30s 163ms
Bit rate : 364 Kbps
Nominal bit rate : 800 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.013
Stream size : 1.31 MiB (73%)
Writing library : Xiph.Org libtheora 1.1 20090822 (Thusnelda)
Language : English

Audio
ID : 2
Format : Vorbis
Format settings, Floor : 1
Codec ID : A_VORBIS
Duration : 30s 168ms
Bit rate mode : Variable
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Compression mode : Lossy
Delay relative to video : -2s 169ms
Stream size : 471 KiB (25%)
Writing library : libVorbis (Everywhere) (20100325 (Everywhere))
Language : English
Writing application : VLC media player

The syntax utilized in ffmpeg win32 CLI was:

ffmpeg -i How_fast.ogg -vcodec copy -acodec copy Output.mkv

I wait your return.
 
     Top
Placio74
Posted: Jul 14 2011, 07:02 AM


VideoAudio


Group: Members
Posts: 1216
Member No.: 21485
Joined: 24-May 07



Problem is... Ogg Vorbis CODEC for MSACM supports only own audio tags (0x674F, 0x676F, 0x6750, 0x6751, 0x6771) and does not support 0x566F.

On the other hand... Matroska rather does not support audio tags from this specific codec (but just 0x566F - WAVE_FORMAT_VORBIS).
Also FFmpeg refuses to use those audio tags (from Ogg Vorbis CODEC for MSACM) in Matroska container (as incompatible) - only 0x566F is acceptable.

So... audio with 0x566F id it's Vorbis, however it seems that there is no 'compatible' ACM codec.

--------------------
VideoAudio.pl - Serwis o technologii wideo & audio
 
     Top
ale5000
Posted: Jul 14 2011, 02:09 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



@L.H.V.F.: Look at my reply here => http://forums.virtualdub.org/index.php?act...9488#entry86326

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
fccHandler
Posted: Jul 16 2011, 08:42 PM


Administrator n00b


Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02



QUOTE (katz @ Jul 3 2011, 10:52 AM)
While the 32-bit works fine, on the 64-bit version when I play a file with an AC3 audio track I only get a loud pop when it starts/stops and no audio playback.

I spent this morning trying to combine the separate 32-bit and 64-bit assembly code sources into a single source. I had to use a lot of conditional assembly and the result is horrible to look at, but it definitely helps to have all of the code in one place. I was able to spot another subtle bug specific to the 64-bit build and stereo audio, so definitely try out the new version 1.9:

http://fcchandler.home.comcast.net/AC3ACM


--------------------
May the FOURCC be with you...
 
     Top
pureocean
Posted: Jul 17 2011, 07:09 AM


Advanced Member


Group: Members
Posts: 53
Member No.: 27197
Joined: 13-March 10



fccHandler:

Again a issue. smile.gif About FLV input plugin.
Below the FLV's audio is saved only PCM, although selected in Audio > Direct Stream Copy.
Therefore, output AVI file size=274mb. Because audio is convert to pcm.

Audio Info from MediaInfo: ADPCM

Video file: http://www.yirmidort.tv/dosya/24video/2011...2/863/video.flv


 
     Top
fccHandler
Posted: Jul 17 2011, 03:57 PM


Administrator n00b


Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02



QUOTE (pureocean @ Jul 17 2011, 03:09 AM)
Below the FLV's audio is saved only PCM, although selected in Audio > Direct Stream Copy.

That is intentional, because the type of ADPCM used in .flv files is not compatible with any of the Windows ADPCM codecs. Therefore the plugin always decompresses it before delivering it to VirtualDub.


--------------------
May the FOURCC be with you...
 
     Top
pureocean
Posted: Jul 18 2011, 03:21 AM


Advanced Member


Group: Members
Posts: 53
Member No.: 27197
Joined: 13-March 10



fccHandler,

I did not know it. Thank you for infos.
 
     Top
ale5000
Posted: Dec 4 2011, 04:35 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



Sample files (MPEG-4+AAC.zip - 1.77 MB): http://www.multiupload.com/WKNV379DIQ

Both files contain the same mono audio, but in the mkv it is detected as stereo.

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
fccHandler
Posted: Dec 4 2011, 07:10 PM


Administrator n00b


Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02



This is a tricky one, because both could be considered correct depending on your point of view...

The Matroska stream has no channel count, so I initially assume mono. However I do detect implicit SBR (indicating HE-AAC v2), therefore implicit PS may be present as well. I can't be certain at this stage, but I go ahead and change the channel count to stereo just in case there is implicit PS.

Although not ideal, this behavior could be considered correct based on the spec:
QUOTE
1.6.6.3 HE AAC v2 Profile Decoder Behavior in Case of Implicit Signaling

If the presence of PS data is backward compatible implicitly signaled (signaling 1, in the list above) the first AudioObjectType signaled is not the PS AOT, and the psPresentFlag is not read from the AudioSpecificConfig(). Hence, the psPresentFlag is set to –1, indicating that implicit signaling of parametric stereo may occur.

Since a received mono stream will result in a stereo output if Parametric Stereo data is present in the stream, the HE AAC v2 Profile decoder shall assume that PS data is available and decide the number of output channels to be two for a single channel element containing SBR data, and thus also possibly PS data. If no PS data is found the mono output shall be mapped to the two opened channels for every single channel element.

And in fact that is what happens in the case of this .mkv.

The QuickTime plugin doesn't attempt to detect SBR or PS (yet). Currently it just uses the channel count and samplerate specified for the track.


--------------------
May the FOURCC be with you...
 
     Top
ale5000
Posted: Dec 4 2011, 08:33 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



To my opinion this is another case where specs aren't updated for real world.
Libavcodec, for example, is able to detect when PS is really present.

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
fccHandler
Posted: Dec 4 2011, 08:44 PM


Administrator n00b


Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02



Well, he is a codec so he would know. smile.gif

I can detect it too when it is explicit (i.e., specified in the AudioSpecificConfig header). It is the implicit case that I cannot know ahead of time, since the plugin does not decode.

--------------------
May the FOURCC be with you...
 
     Top
ale5000
Posted: Dec 4 2011, 08:54 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



Well, I think that a minimal decoding (like as MediaInfo is doing) may be useful in the plugin but it is just my opinion biggrin.gif

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
ale5000
Posted: Dec 11 2011, 09:55 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



Sample file (AMR-NB.mkv - 405.33 KB): http://www.multiupload.com/XKM4S4AAH4

When exporting raw audio it say "AudioStreamSource error: buffer too small (80044074)".

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
fccHandler
Posted: Dec 17 2011, 09:06 PM


Administrator n00b


Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02



I would say the audio is badly muxed. The audio format is "A_MS/ACM" which means that it provides its own WAVEFORMATEX structure, therefore the plugin does not build a custom one. The problem is the nBlockAlign member of its structure, which is supposed to be the minimum atomic size of an audio block. In your file it is set to 2 bytes, which is not correct for this audio. (The correct value is 32 bytes.)

But I am going to have to work around it anyway, because even if the value was correct it still wouldn't work. The plugin wants the nBlockAlign field to contain the maximum size of an audio block which is 320 bytes in this case.

VirtualDub uses the nBlockAlign value to fetch blocks of audio from the plugin. The error occurs because VirtualDub is asking me for 2 bytes of audio, but that is too small to hold even one block. I will implement a workaround in the next release.


--------------------
May the FOURCC be with you...
 
     Top
ale5000
Posted: Dec 19 2011, 11:49 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



Sample file (706D - 6 channels.mkv - 7.59 MB): http://www.multiupload.com/UDD8PB5OU7

It is FAAD AAC with GUID => {0000706d-0000-0010-8000-00aa00389b71}.

In File => File Information it say "ACM codec (tag): Aud-X PCM (0xFFFE)".

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
337 replies since Sep 26 2010, 04:58 AM Track this topic | Email this topic | Print this topic
Pages: (23) « First ... 18 19 [20] 21 22 ... Last »
<< Back to VirtualDub Filters and Filter Development