Closed aevzp closed 3 years ago
Description I am trying to "play" sdp file
Current behavior FFmpeg.execute("-protocol_whitelist file,crypto,rtp,udp,sdp " + path);
path - it's local file like this >> /data/user/0/app_flutter/gameStream.sdp
SDP file contain: v=0 \n o=- 0 0 IN IP4 ${state.udpStreamEndpoint!.localIp} \n s=No Name \n t=0 0 \n a=tool:libavformat 58.12.100 \n c=IN IP4 ${state.udpStreamEndpoint!.localIp} \n m=audio ${state.udpStreamEndpoint!.remoteAudioPort} RTP/AVP 97 \n b=AS:96 \n a=rtpmap:97 opus/48000/2 \n a=fmtp:97 sprop-stereo=1 \n m=video ${state.udpStreamEndpoint!.remoteVideoPort} RTP/AVP 96 \n a=rtpmap:96 H264/90000 \n a=fmtp:96 packetization-mode=1;profile-level-id=4d002a;sprop-parameter-sets=Z01AKpWgHgCJ+XARAAADA+gAAdTAj0qg,aO48gA== \n a=control:streamid=0
Logs I/mobile-ffmpeg(19779): Loading mobile-ffmpeg. I/mobile-ffmpeg(19779): Loaded mobile-ffmpeg-full-arm64-v8a-4.4-20200725. D/mobile-ffmpeg(19779): Callback thread started. I/mobile-ffmpeg(19779): ffmpeg version v4.4-dev-416 I/mobile-ffmpeg(19779): Copyright (c) 2000-2020 the FFmpeg developers I/mobile-ffmpeg(19779): I/mobile-ffmpeg(19779): built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn) I/mobile-ffmpeg(19779): configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang++ --extra-libs='-L/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec I/mobile-ffmpeg(19779): libavutil 56. 55.100 / 56. 55.100 I/mobile-ffmpeg(19779): libavcodec 58. 96.100 / 58. 96.100 I/mobile-ffmpeg(19779): libavformat 58. 48.100 / 58. 48.100 I/mobile-ffmpeg(19779): libavdevice 58. 11.101 / 58. 11.101 I/mobile-ffmpeg(19779): libavfilter 7. 87.100 / 7. 87.100 I/mobile-ffmpeg(19779): libswscale 5. 8.100 / 5. 8.100 I/mobile-ffmpeg(19779): libswresample 3. 8.100 / 3. 8.100 E/mobile-ffmpeg(19779): [NULL @ 0x778ae25600] Unable to find a suitable output format for '/data/user/0/app_flutter/gameStream.sdp' E/mobile-ffmpeg(19779): /data/user/0/app_flutter/gameStream.sdp: Invalid argument
Environment Platform: Android Version (if applicable)v4.4
Description I am trying to "play" sdp file
Current behavior FFmpeg.execute("-protocol_whitelist file,crypto,rtp,udp,sdp " + path);
path - it's local file like this >> /data/user/0/app_flutter/gameStream.sdp
SDP file contain: v=0 \n o=- 0 0 IN IP4 ${state.udpStreamEndpoint!.localIp} \n s=No Name \n t=0 0 \n a=tool:libavformat 58.12.100 \n c=IN IP4 ${state.udpStreamEndpoint!.localIp} \n m=audio ${state.udpStreamEndpoint!.remoteAudioPort} RTP/AVP 97 \n b=AS:96 \n a=rtpmap:97 opus/48000/2 \n a=fmtp:97 sprop-stereo=1 \n m=video ${state.udpStreamEndpoint!.remoteVideoPort} RTP/AVP 96 \n a=rtpmap:96 H264/90000 \n a=fmtp:96 packetization-mode=1;profile-level-id=4d002a;sprop-parameter-sets=Z01AKpWgHgCJ+XARAAADA+gAAdTAj0qg,aO48gA== \n a=control:streamid=0
Logs I/mobile-ffmpeg(19779): Loading mobile-ffmpeg. I/mobile-ffmpeg(19779): Loaded mobile-ffmpeg-full-arm64-v8a-4.4-20200725. D/mobile-ffmpeg(19779): Callback thread started. I/mobile-ffmpeg(19779): ffmpeg version v4.4-dev-416 I/mobile-ffmpeg(19779): Copyright (c) 2000-2020 the FFmpeg developers I/mobile-ffmpeg(19779): I/mobile-ffmpeg(19779): built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn) I/mobile-ffmpeg(19779): configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang++ --extra-libs='-L/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec I/mobile-ffmpeg(19779): libavutil 56. 55.100 / 56. 55.100 I/mobile-ffmpeg(19779): libavcodec 58. 96.100 / 58. 96.100 I/mobile-ffmpeg(19779): libavformat 58. 48.100 / 58. 48.100 I/mobile-ffmpeg(19779): libavdevice 58. 11.101 / 58. 11.101 I/mobile-ffmpeg(19779): libavfilter 7. 87.100 / 7. 87.100 I/mobile-ffmpeg(19779): libswscale 5. 8.100 / 5. 8.100 I/mobile-ffmpeg(19779): libswresample 3. 8.100 / 3. 8.100 E/mobile-ffmpeg(19779): [NULL @ 0x778ae25600] Unable to find a suitable output format for '/data/user/0/app_flutter/gameStream.sdp' E/mobile-ffmpeg(19779): /data/user/0/app_flutter/gameStream.sdp: Invalid argument
Environment Platform: Android Version (if applicable)v4.4