ECToo / lavfilters

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

Buffer repeatedat the end when playing online mp3 with LAV Splitte #444

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When using Lav Splitetr in combination with async file source for playing URL, 
than at the and of the track, it seems like the content of the buffer is 
repeated, which is quiet annoying (as the last couple of seconds of the track 
is replayed at the end)

It does not happen with standard MPEG-I Stream Splitter.

Here is the XML of graph which shows this behavior:

<?xml version="1.0" encoding="utf-8"?>
<graph name="Unnamed Graph">
    <filter name="http://goo.gl/DGEq2V" clsid="{E436EBB6-524F-11CE-9F53-0020AF0BA770}">
        <ifilesourcefilter source="https://archive.org/download/testmp3testfile/mpthreetest.mp3"/>
    </filter>
    <filter name="LAV Splitter" clsid="{171252A0-8820-4AFE-9DF8-5C92B2D66B04}"/>
    <filter name="MP3 Decoder DMO" clsid="{94297043-BD82-4DFD-B0DE-8177739C6D20}"/>
    <filter name="Default DirectSound Device" clsid="{79376820-07D0-11CF-A24D-0020AFD79767}"/>
</graph>

Original issue reported on code.google.com by sor...@gmail.com on 10 Apr 2014 at 4:16

GoogleCodeExporter commented 9 years ago
Try using a better mp3 decoder, like LAV Audio, its more than likely caused by 
the decoder, the splitter would never repeat a packet.

Also, I cannot load the specified file in the async source, it appears always 
as missing.

Original comment by h.lepp...@gmail.com on 11 Apr 2014 at 8:12

GoogleCodeExporter commented 9 years ago
Hi, sorry for delay, was busy with other things for a while 

Here is working example demonstating same problem, using lav audio decoder (it 
makes no difference, happens the same with default decoder and LAV)

<?xml version="1.0" encoding="utf-8"?>
<graph name="Unnamed Graph">
    <filter name="Default DirectSound Device" index="0" clsid="{79376820-07D0-11CF-A24D-0020AFD79767}">
        <ipersiststream encoding="base64" data="MAAwADAAMAAwADAAMAAwADAAMAAwACAAAAAAAAAAAAAAAAAAAAAAAA=="/>
    </filter>
    <filter name="LAV Audio Decoder" index="1" clsid="{E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}"/>
    <filter name="LAV Splitter" index="2" clsid="{171252A0-8820-4AFE-9DF8-5C92B2D66B04}"/>
    <filter name="https://archive.org/download/Test_Audio_MP3_File/test1.mp3" index="3" clsid="{E436EBB6-524F-11CE-9F53-0020AF0BA770}">
        <ifilesourcefilter source="https://archive.org/download/Test_Audio_MP3_File/test1.mp3"/>
    </filter>
    <connect out="https://archive.org/download/Test_Audio_MP3_File/test1.mp3/Output" in="LAV Splitter/Input" outFilterIndex="3" outPinId="Output" outPinName="Output" outPinIndex="0" inFilterIndex="2" inPinId="Input" inPinName="Input" inPinIndex="0" direct="true">
        <mediaType type="MEDIATYPE_Stream / MEDIASUBTYPE_MPEG1Audio" sampleSize="1" fixedSizeSamples="true" temporalCompression="false" majorType="{E436EB83-524F-11CE-9F53-0020AF0BA770}" subType="{E436EB87-524F-11CE-9F53-0020AF0BA770}"/>
    </connect>
    <connect out="LAV Splitter/Audio" in="LAV Audio Decoder/Input" outFilterIndex="2" outPinId="Audio" outPinName="Audio" outPinIndex="0" inFilterIndex="1" inPinId="In" inPinName="Input" inPinIndex="0" direct="true">
        <mediaType type="MEDIATYPE_Audio / MEDIASUBTYPE_MP3" sampleSize="256000" fixedSizeSamples="true" temporalCompression="false" majorType="{73647561-0000-0010-8000-00AA00389B71}" subType="{00000055-0000-0010-8000-00AA00389B71}"/>
        <format type="FORMAT_WaveFormatEx" formatType="{05589F81-C356-11CE-BF01-00AA0055595A}" encoding="base64" data="VQACAIC7AABAnAAABAAQAAAA"/>
    </connect>
    <connect out="LAV Audio Decoder/Output" in="Default DirectSound Device/Audio Input pin (rendered)" outFilterIndex="1" outPinId="Out" outPinName="Output" outPinIndex="0" inFilterIndex="0" inPinId="Audio Input pin (rendered)" inPinName="Audio Input pin (rendered)" inPinIndex="0" direct="true">
        <mediaType type="MEDIATYPE_Audio / MEDIASUBTYPE_IEEE_FLOAT" sampleSize="8" fixedSizeSamples="true" temporalCompression="false" majorType="{73647561-0000-0010-8000-00AA00389B71}" subType="{00000003-0000-0010-8000-00AA00389B71}"/>
        <format type="FORMAT_WaveFormatEx" formatType="{05589F81-C356-11CE-BF01-00AA0055595A}" encoding="base64" data="AwACAIC7AAAA3AUACAAgAAAA"/>
    </connect>
</graph>

also it works when the file is played from disk (downloaded)

this graph is OK

<?xml version="1.0" encoding="utf-8"?>
<graph name="Unnamed Graph">
    <filter name="Default DirectSound Device" index="0" clsid="{79376820-07D0-11CF-A24D-0020AFD79767}">
        <ipersiststream encoding="base64" data="MAAwADAAMAAwADAAMAAwADAAMAAwACAAAAAAAAAAAAAAAAAAAAAAAA=="/>
    </filter>
    <filter name="LAV Audio Decoder" index="1" clsid="{E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}"/>
    <filter name="LAV Splitter" index="2" clsid="{171252A0-8820-4AFE-9DF8-5C92B2D66B04}"/>
    <filter name="File Source (Async.)" index="3" class="CLSID_AsyncReader" clsid="{E436EBB5-524F-11CE-9F53-0020AF0BA770}">
        <ifilesourcefilter source="C:\projects\test1.mp3"/>
    </filter>
    <connect out="File Source (Async.)/Output" in="LAV Splitter/Input" outFilterIndex="3" outPinId="Output" outPinName="Output" outPinIndex="0" inFilterIndex="2" inPinId="Input" inPinName="Input" inPinIndex="0" direct="true">
        <mediaType type="MEDIATYPE_Stream / MEDIASUBTYPE_MPEG1Audio" sampleSize="1" fixedSizeSamples="true" temporalCompression="false" majorType="{E436EB83-524F-11CE-9F53-0020AF0BA770}" subType="{E436EB87-524F-11CE-9F53-0020AF0BA770}"/>
    </connect>
    <connect out="LAV Splitter/Audio" in="LAV Audio Decoder/Input" outFilterIndex="2" outPinId="Audio" outPinName="Audio" outPinIndex="0" inFilterIndex="1" inPinId="In" inPinName="Input" inPinIndex="0" direct="true">
        <mediaType type="MEDIATYPE_Audio / MEDIASUBTYPE_MP3" sampleSize="256000" fixedSizeSamples="true" temporalCompression="false" majorType="{73647561-0000-0010-8000-00AA00389B71}" subType="{00000055-0000-0010-8000-00AA00389B71}"/>
        <format type="FORMAT_WaveFormatEx" formatType="{05589F81-C356-11CE-BF01-00AA0055595A}" encoding="base64" data="VQACAIC7AABAnAAABAAQAAAA"/>
    </connect>
    <connect out="LAV Audio Decoder/Output" in="Default DirectSound Device/Audio Input pin (rendered)" outFilterIndex="1" outPinId="Out" outPinName="Output" outPinIndex="0" inFilterIndex="0" inPinId="Audio Input pin (rendered)" inPinName="Audio Input pin (rendered)" inPinIndex="0" direct="true">
        <mediaType type="MEDIATYPE_Audio / MEDIASUBTYPE_IEEE_FLOAT" sampleSize="8" fixedSizeSamples="true" temporalCompression="false" majorType="{73647561-0000-0010-8000-00AA00389B71}" subType="{00000003-0000-0010-8000-00AA00389B71}"/>
        <format type="FORMAT_WaveFormatEx" formatType="{05589F81-C356-11CE-BF01-00AA0055595A}" encoding="base64" data="AwACAIC7AAAA3AUACAAgAAAA"/>
    </connect>
</graph>

Original comment by sor...@gmail.com on 19 May 2014 at 10:22