Ошибка the byte stream type of the given url is unsupported

Jake1425

New Here

,

/t5/audition-discussions/byte-stream-type-on-audition/td-p/11705658
Dec 25, 2020
Dec 25, 2020

Copy link to clipboard

Copied

I saved a file that I was working on last night in Adobe Audition, but when I went to open it this morning (going to File -> Open Recent) an error message popped up saying «Error: Media Foundation reported an error when opening the file. The byte stream type of the given URL is unsupported.» It doesn’t seem like it should be due to an older version of Adobe, because I was just working on the file yesterday. I’d appreciate any help/suggestions people would give. Thanks — Jake 

TOPICS

User interface or workspaces

  • Follow
  • Report

Community guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

community guidelines

replies
7
Replies
7

SteveG_AudioMasters_

Community Expert

Community Expert

,

/t5/audition-discussions/byte-stream-type-on-audition/m-p/11705777#M26561
Dec 25, 2020
Dec 25, 2020

Copy link to clipboard

Copied

It might help just a little bit if we knew what file type it was… because at present we have absolutely nothing to go on at all!

  • Follow
  • Report

Community guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

community guidelines

Jake1425

New Here

,

/t5/audition-discussions/byte-stream-type-on-audition/m-p/11705823#M26562
Dec 25, 2020
Dec 25, 2020

Copy link to clipboard

Copied

In Response To SteveG_AudioMasters_

Ah, thank you! It was a .sesx file. Happy to provide any other information that might be helpful!

  • Follow
  • Report

Community guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

community guidelines

SuiteSpot

Mentor

,

/t5/audition-discussions/byte-stream-type-on-audition/m-p/11706484#M26572
Dec 26, 2020
Dec 26, 2020

Copy link to clipboard

Copied

In Response To Jake1425

email me the sesx file and I will check it for you

info at aatranslator dot com dot au

  • Follow
  • Report

Community guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

community guidelines

Jake1425

New Here

,

/t5/audition-discussions/byte-stream-type-on-audition/m-p/11714820#M26614
Dec 29, 2020
Dec 29, 2020

Copy link to clipboard

Copied

In Response To SuiteSpot

Just sent it, thank you so much! 

  • Follow
  • Report

Community guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

community guidelines

SuiteSpot

Mentor

,

/t5/audition-discussions/byte-stream-type-on-audition/m-p/11715562#M26626
Dec 30, 2020
Dec 30, 2020

Copy link to clipboard

Copied

In Response To Jake1425

Unfortunately, that sesx file is completely trashed.  You will need to roll back to a current backup.

  • Follow
  • Report

Community guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

community guidelines

dougwylde

New Here

,

/t5/audition-discussions/byte-stream-type-on-audition/m-p/13010604#M32873
Jun 16, 2022
Jun 16, 2022

Copy link to clipboard

Copied

In Response To SuiteSpot

I’m having the same issue. But none of the backups work. Getting tired of losing sessions…..

  • Follow
  • Report

Community guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

community guidelines

SuiteSpot

Mentor

,

/t5/audition-discussions/byte-stream-type-on-audition/m-p/13011232#M32876
Jun 16, 2022
Jun 16, 2022

Copy link to clipboard

Copied

LATEST

In Response To dougwylde

email me the sesx
info at aatranslator dot com dot au

  • Follow
  • Report

Community guidelines

Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

community guidelines

I am new to UWP. I am recording voice input (with MediaCapture) and then I trying to play it back.

And I am getting the following error

The byte stream type of the given URL is unsupported. (Exception from HRESULT: 0xC00D36C4)

I create is an MP3 file that can be play by double click with player. So the file is ‘ok’.

When I try to play it with MediaPlayer I get that error. I tried installing a new codec package and pointed .mp3 at it. Same error. I tried streams, StorageFile and URL methods for defining the input file but always the same error. I have microphone and webcam enabled. (my microphone is in the webcam) I am deploying to ‘Local Machine’.
Anyone know a possible reason? Here is the code. I would be interested to see if it works on another PC.

    private async void RecordAndPlay()
    {
        string mediaFilename = "audioPRC.mp3";
        StorageFile mediaFile;
        StorageFolder tempFolder;
        MediaCapture mediaCapture;
        MediaPlayer mediaPlayer = null;
        LowLagMediaRecording lowLagMediaRecording;
        MediaSource mediaSource;
        mediaCapture = new MediaCapture();
        await mediaCapture.InitializeAsync();
        mediaCapture.Failed += OnMediaCaptureFailed;
        tempFolder = Windows.Storage.ApplicationData.Current.TemporaryFolder;
        mediaFile = await tempFolder.CreateFileAsync(mediaFilename, CreationCollisionOption.ReplaceExisting);
        MediaEncodingProfile mediaEncodingProfile = MediaEncodingProfile.CreateMp3(AudioEncodingQuality.Medium);
        lowLagMediaRecording = await mediaCapture.PrepareLowLagRecordToStorageFileAsync(
                mediaEncodingProfile, mediaFile);
        await lowLagMediaRecording.StartAsync();
        // Talk into your microphone during the 10 second wait...
        await Task.Delay(10000);
        await lowLagMediaRecording.StopAsync();
        await lowLagMediaRecording.FinishAsync();
        lowLagMediaRecording = null;
        mediaPlayer = new MediaPlayer { AutoPlay = false, AudioCategory = MediaPlayerAudioCategory.Media };
        mediaPlayer.MediaFailed += OnMediaPlayerFailed;
        mediaPlayer.AudioCategory = Windows.Media.Playback.MediaPlayerAudioCategory.Media;
        mediaSource = MediaSource.CreateFromStorageFile(mediaFile);
        var mediaPlaybackItem = new MediaPlaybackItem(mediaSource);
        mediaPlayer.Source = mediaPlaybackItem;
        mediaPlayer.Play();
    }
    private void OnMediaPlayerFailed(object sender, MediaPlayerFailedEventArgs e)
    { Debug.WriteLine(e.ExtendedErrorCode.Message); }
    private void OnMediaCaptureFailed(MediaCapture sender, MediaCaptureFailedEventArgs e)
    { Debug.WriteLine("Capture failed: " + e.Message); }

Unity Discussions

Loading

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

I need to create a reader from buffer(that is wav bytes) in order to do it I am using such approach:

void co_AudioEncoderMF::load_from_memory(unsigned char const * data, long data_size)
{
    unsigned char * buf = new unsigned char[data_size]; //JUST FOR TEST IN ORDER TO BE SURE THAT I HAVE THIS DATA
    memcpy(buf, data, data_size);

    IMFMediaType *input_type = nullptr;
    IMFSourceReader *source_reader = nullptr;
    IMFMediaType *ouput_media_type = nullptr;
    IMFSinkWriter *sink_writer = nullptr;
    IStream * stream = nullptr;
    IMFByteStream * byte_stream = nullptr;

    HRESULT hr = InitAndStartCOMLib();

    if (SUCCEEDED(hr))
    {
        hr = create_stream(buf, data_size, &stream);  <---- HERE I CREATE A STREAM
    }

    if (SUCCEEDED(hr))
    {
        hr = MFCreateMFByteStreamOnStream(stream, &byte_stream);
    }

    HGLOBAL hGlobal = nullptr;
    //IMFSourceReader *pReader = nullptr;

    if (SUCCEEDED(hr))
    {
        GetHGlobalFromStream(stream, &hGlobal);
        hr = create_source_reader(byte_stream, &source_reader);   <----- HERE I CREATE A READER
    }
...
}
HRESULT co_AudioEncoderMF::InitAndStartCOMLib()
{
    HRESULT hr = S_OK;
    HeapSetInformation(nullptr, HeapEnableTerminationOnCorruption, nullptr, 0);

    // Initialize the COM library.
    hr = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);

    // Initialize the Media Foundation platform.
    if (SUCCEEDED(hr))
    {
        hr = MFStartup(MF_VERSION);
    }

    return hr;
}
HRESULT co_AudioEncoderMF::create_stream(unsigned char const * pData, long dataLen, IStream ** out_stream)
{
    HGLOBAL m_phMem = ::GlobalAlloc(GMEM_MOVEABLE, dataLen);

    if (!m_phMem)
    {
        printf("Error AfxThrowMemoryException");
    }

    LPVOID dest = ::GlobalLock(m_phMem);

    memcpy(dest, pData, dataLen);
    ::GlobalUnlock(m_phMem);

    return CreateStreamOnHGlobal(m_phMem, FALSE /*fDeleteOnRelease*/, out_stream);// NOTE :: in order to get more flexablity need to consider such an approach https://gist.github.com/alekseytimoshchenko/e8f52604fdeb50c8ad7873aeb8281bfa
}
HRESULT co_AudioEncoderMF::create_source_reader(IMFByteStream * in_byte_stream, IMFSourceReader **source_reader)
{
    HRESULT hr = S_OK;

    IMFAttributes * attr = nullptr;
    hr = MFCreateAttributes(&attr, 10);

    if (SUCCEEDED(hr))
    {
        hr = attr->SetUINT32(MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS, true);
    }
    else
    {
        printf("Error MFCreateAttributes");
    }

    if (SUCCEEDED(hr))
    {
        hr = MFCreateSourceReaderFromByteStream(in_byte_stream, attr, source_reader); <----- AND HERE I GOT MY ERROR ABOUT UNSUPPORTED FORMAT
    }
    else
    {
        printf("Error Atrr->SetUINT32(MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS, true)");
    }

    if (FAILED(hr))
    {
        printf("Error MFCreateSourceReaderFromByteStream");
    }

    return hr;
}

I am using the same approach but with mp3 bytes and it is works, I assume that it has a difference, but I don’t know how to approve it and solve.

  • Ошибка the boot configuration data for your pc is missing or contains errors
  • Ошибка the following component s are required to run this program directx runtime
  • Ошибка the bios in this system is not fully acpi compliant
  • Ошибка the filename directory name or volume label syntax is incorrect
  • Ошибка the bat приветствие tls не завершено