x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Bug] Switching between videos of different resolution in MediaFramework

I am using UMediaPlayer::OpenUrl(url) to load videos in a video Player I created but switching between video of varying resolution say one video is 1280x720 other is 1280x600 the application crashes

 //Code use to create media player and add its video as a texture to a dynamci material
 m_mediaPlayer = static_cast(StaticConstructObject(UMediaPlayer::StaticClass()));
     m_mediaPlayer->SetLooping(true);
     
     //add mediaplayer to the media texture
     m_mediaTexture = static_cast<UMediaTexture*>(StaticConstructObject(UMediaTexture::StaticClass()));
     m_mediaTexture->SetMediaPlayer(m_mediaPlayer);
 
 
     //add the media texture to the mesh
     UStaticMeshComponent * mesh = m_videoFrame->StaticMeshComponent;
     UMaterialInstanceDynamic  * material = mesh->CreateDynamicMaterialInstance(0);
     material->SetTextureParameterValue("Video", m_mediaTexture);
     mesh->SetMaterial(0, material);
 
     //I call this whenever I need the video to be changed
     m_mediaPlayer->OpenUrl(url);
     m_mediaPlayer->Rewind();
     m_mediaPlayer->Play();
Product Version: Not Selected
Tags:
more ▼

asked Nov 24 '14 at 06:54 AM in Bug Reports

avatar image

TensaiSumo
66 8 7 18

avatar image gmpreussner STAFF Nov 25 '14 at 10:42 PM

Do you have a callstack for the crash?

avatar image TensaiSumo Dec 08 '14 at 05:23 AM

sorry for the delayed reply.

  msvcr120.dll!00007ffaaf49c3f9()    Unknown
  0000004f2e7dabf8()    Unknown
  000000000118c300()    Unknown
 JewellerySC_client.exe!FMediaTextureResource::UpdateDeferredResource(FRHICommandListImmediate & RHICmdList, bool bClearRenderTarget) Line 102    C++
  JewellerySC_client.exe!FDeferredUpdateResource::UpdateResources(FRHICommandListImmediate & RHICmdList) Line 127    C++
  JewellerySC_client.exe!RenderViewFamily_RenderThread(FRHICommandListImmediate & RHICmdList, FSceneRenderer * SceneRenderer) Line 983    C++
  JewellerySC_client.exe!TGraphTask<`FRendererModule::BeginRenderingViewFamily'::`11'::EURCMacro_FDrawSceneCommand>::ExecuteTask(TArray<FBaseGraphTask *,FDefaultAllocator> & NewTasks, ENamedThreads::Type CurrentThread) Line 665    C++
  JewellerySC_client.exe!FTaskThread::ProcessTasks(int QueueIndex, bool bAllowStall) Line 338    C++
  JewellerySC_client.exe!FTaskThread::ProcessTasksUntilQuit(int QueueIndex) Line 177    C++
  JewellerySC_client.exe!RenderingThreadMain(FEvent * TaskGraphBoundSyncEvent) Line 268    C++
  JewellerySC_client.exe!FRenderingThread::Run() Line 387    C++
  JewellerySC_client.exe!FRunnableThreadWin::Run() Line 73    C++
  JewellerySC_client.exe!FRunnableThreadWin::GuardedRun() Line 48    C++
  [External Code]    

avatar image Doug E ♦♦ STAFF Feb 10 '15 at 04:29 PM

Hey TensaiSumo-

Are you still experiencing this crash? If so could you include the log files from the crash as well? Looking at them will give an idea of where in the code the crash is occurring. The Logs folder is inside Project Folder -> Saved folder.

avatar image gmpreussner STAFF Feb 10 '15 at 07:28 PM

TensaiSumo,

Sorry, this one fell through the cracks. Are you still having this issue? Could you make the affected videos available, so we can test locally? Thanks!

avatar image TensaiSumo Apr 17 '15 at 06:59 AM

hi gmpreussner,

Sorry for such a late reply. We didn't have the problem afterwards.But I went back to check with the video I was using to test this issue and it seems to be a problem with that particular format or something. I have attached to videos if you want to test it. The crash happens when switching from the .wmv to .mp4 then back to .wmv . [1]: /storage/temp/39085-movies.zip

movies.zip (3.7 MB)
avatar image Kafumanto May 03 '15 at 08:04 PM

We are experiencing it too.

UE 4.7.6; the stack trace from a shipping build is:

 Access violation - code c0000005 (first/second chance not available)
 
 msvcr120 + 61964 bytes
 VRPlayer_Win32_Shipping!FMediaTextureResource::UpdateDeferredResource() + 186 bytes
 ntdll + 529875 bytes
 VRPlayer_Win32_Shipping!FRelevancePacket::RenderThreadFinalize() + 635 bytes
 VRPlayer_Win32_Shipping!TGraphTask<`FRendererModule::BeginRenderingViewFamily'::`8'::EURCMacro_FDrawSceneCommand>::ExecuteTask() + 18 bytes
 VRPlayer_Win32_Shipping!FTaskThread::ProcessTasks() + 1682 bytes
 VRPlayer_Win32_Shipping!FTaskThread::ProcessTasksUntilQuit() + 42 bytes
 VRPlayer_Win32_Shipping!RenderingThreadMain() + 74 bytes
 VRPlayer_Win32_Shipping!FRenderingThread::Run() + 66 bytes
 VRPlayer_Win32_Shipping!FRunnableThreadWin::Run() + 33 bytes
 VRPlayer_Win32_Shipping!FRunnableThreadWin::GuardedRun() + 97 bytes
 VRPlayer_Win32_Shipping!FRunnableThreadWin::_ThreadProc() + 9 bytes
 kernel32 + 97284 bytes
 ntdll + 371999 bytes
 ntdll + 371946 bytes 
avatar image Ben Halliday STAFF Jun 09 '15 at 06:42 PM

Hi Kafu,

Are you still experiencing this issue? If so, could you provide the affected videos so we can test here? Thanks!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey Kafu-

We've not heard from you in a few days. If you're still having any issues related to this post then feel free to post a comment responding to Ben Halliday's question.

Cheers

Doug Wilson

more ▼

answered Jun 24 '15 at 05:40 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question