bakjos / FFMPEGMedia

Unreal FFMPEG Plugin to support more video formats and alpha videos
215 stars 59 forks source link

Can't open RMTP stream in 4.27 #37

Open dwaynarang opened 3 years ago

dwaynarang commented 3 years ago

Tested and working in 4.26, but in 4.27 it "successfully" opens the stream but doesn't display any incoming data. Had someone else reproduce it on a clean install of 4.27.

zxpSC commented 3 years ago

In 4.27 it can play the rtmp stream and .mp4 file by http, when i try to open rtsp, it seems the same behavior like your's. But if i use wmf to open an other stream which is supported by wmf, then change back to this plugin to play rtsp, it works.

dwaynarang commented 3 years ago

Hmm. that's helpful but confusing! haha. I realize now that I used said RMTP instead of "RTMP" but you probably got what I meant. So you just need to load another, for instance .mp4 file, first, and then load the RTMP stream aftwards? I will test things in blueprint to see if I can get things running in game.

Thank you for the help so far! I'm trying to use this for a dj experience where people can log in to a club or festival scene with live feed from my hosted video stream. Would you ever consider adding support for SRT? I've heard its newer and faster. haha.

many thanks

Dwayne

On Thu, Nov 11, 2021 at 4:19 AM zxpSC @.***> wrote:

In 4.27 it can play the rtmp stream and .mp4 file by http, when i try to open rtsp, it seems the same behavior like your's. But if i use wmf to open an other stream which is support by wmf, then change back to this plugin to play rtsp, it works.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bakjos/FFMPEGMedia/issues/37#issuecomment-966181144, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJPBJCBVNWC4P7HI36VXYMTULOKE5ANCNFSM5HRVIYMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

zxpSC commented 3 years ago

Yes, but it may not work in packaged game, I should do more test about it. Unfortunately, I have no experience using SRT, I'm working on rtsp/rtmp mostly. Cool idea, hope your work goes well.

HogwartsRico commented 2 years ago

i have the same problem as you 。 Neither RTSP nor RTMP

ibrews commented 2 years ago

Also not working for me in 4.27, but yes in 4.26. Here's the errors I get:

LogFFMPEGMedia: Error: FFMPEG - Invalid frame dimensions 0x0.
LogFFMPEGMedia: Display: AVFormat configuration: --toolchain=msvc --arch=x86_64 --disable-static --enable-shared --enable-gpl --enable-libmp3lame --enable-libvpx --enable-w32threads --disable-yasm --enable-nvenc --enable-cuda --enable-cuvid --enable-openal --enable-opencl --enable-d3d11va --extra-cflags=-I../lame-3.99.5/include --extra-cflags=-I../libvpx --e
xtra-cflags='-IC:/PROGRA~1/NVIDIA~2/CUDA/v9.1/include' --extra-cflags='-IH:/Pixelarama/MainCode/ExternalLibs/openal/include' --extra-cflags=-I../zlib-1.2.11/build64/install/include --extra-cflags=-I../nv-codec-headers/include --extra-ldflags='-LIBPATH:../lame-3.99.5/output/Release/x64' --extra-ldflags='-LIBPATH:../libvpx/build64/x64/Release' --extra-ldflags=
'-LIBPATH:C:/PROGRA~1/NVIDIA~2/CUDA/v9.1/lib/x64' --extra-ldflags='-LIBPATH:H:/Pixelarama/MainCode/ExternalLibs/openal/lib64' --extra-ldflags='-LIBPATH:../zlib-1.2.11/build64/install/lib'
LogFFMPEGMedia: Display: Format Name: mpegts
LogFFMPEGMedia: Display:   Duration: N/A, start: 348.926644, bitrate: N/A
  Program 1
LogFFMPEGMedia: Display: Audio Codec: mp2
LogFFMPEGMedia: Display: Using codec: mp2 - 86016
LogFFMPEGMedia: Display: Video Codec: mpeg2video
LogFFMPEGMedia: Warning: FFMPEG - Invalid pkt_timebase, passing timestamps as-is.
LogFFMPEGMedia: Display: Using hardware context type: cuda
LogFFMPEGMedia: Display: Using codec: mpeg2_cuvid - 2
LogFFMPEGMedia: Warning: FFMPEG - PES packet size mismatch
LogFFMPEGMedia: Warning: FFMPEG - PES packet size mismatch
LogFFMPEGMedia: Warning: FFMPEG - PES packet size mismatch
LogFFMPEGMedia: Error: FFMPEG - Header missing