Open rantoniello opened 7 years ago
@rantoniello what is the exact error output? I've been working on getting this to compile easier in all environments and would like to take a look in a bit but would like to see the error beforehand if possible. I've updated the live555 and libSDL stuff on Windows in my build but haven't touched ffmpeg yet.
Is the segfault related to any CUDA ko by any chance?
Hi, thank you very much for your answer.
The traces from the client side are:
$ LD_LIBRARY_PATH=../deps.posix/lib ./ga-client ./config/client.rel.conf rtsp://127.0.0.1:8554/desktop [12196] 1495127689.866230 # include: ./config/common/controller.conf [12196] 1495127689.866368 # include: ./config/common/video-x264.conf [12196] 1495127689.866407 # include: ./config/common/audio-lame.conf Relative mouse mode enabled. [12196] 1495127689.866542 # RTSP[config]: using 'udp' for RTP flows. [12196] 1495127689.866552 # RTSP[config]: controller port = 8555 [12196] 1495127689.866561 # RTSP[config]: controller via 'udp' protocol. [12196] 1495127689.866676 # RTSP[config]: video-encoder = libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10) [12196] 1495127689.866702 # RTSP[config]: audio-encoder = libmp3lame (libmp3lame MP3 (MPEG audio layer 3)) [12196] 1495127689.866780 # RTSP[config]: video specific option: threads = auto Remote server @ 127.0.0.1[127.0.0.1]:8554 [12196] 1495127689.942493 SDL: prefer opengl hardware renderer. [12196] 1495127689.942511 controller queue: initialized size=32708 (481 units) [12196] 1495127689.942691 controller socket: socket address [127.0.0.1:8555] [12196] 1495127689.942700 controller client-thread started: tid=12199. watchdog: launched, waiting for audio/video frames ... [12196] 1495127689.942758 rtspclient: max tolerable video delay disabled. SAVEFILE: YUV image saved to 'NULL'; timestamp saved to 'NULL'. RTP reordering threshold = 300000 [12196] 1495127689.942788 qos-measurement: initialized. Opening connection to 127.0.0.1, port 8554... ...remote connection opened Sending request: DESCRIBE rtsp://127.0.0.1:8554/desktop RTSP/1.0 CSeq: 2 User-Agent: RTSP Client (LIVE555 Streaming Media v2015.09.24) Accept: application/sdp
[URL:"rtsp://127.0.0.1:8554/desktop"]: Failed to get a SDP description: liveMedia0 Connect to rtsp://127.0.0.1:8554/desktop failed. [12196] 1495127690.052939 qos-measurement: deinitialized. [URL:"rtsp://127.0.0.1:8554/desktop"]: Closing the stream. rtsp thread: no more rtsp clients rtsp thread: terminated.
On the server side:
$ LD_LIBRARY_PATH=../deps.posix/lib/ ./ga-server-periodic ./config/server.desktop.conf [12168] 1495127641.810233 # include: ./config/common/server-common.conf [12168] 1495127641.810374 # include: ./config/common/controller.conf [12168] 1495127641.810415 # include: ./config/common/video-x264.conf [12168] 1495127641.810449 # include: ./config/common/video-x264-param.conf [12168] 1495127641.810533 # include: ./config/common/audio-lame.conf [12168] 1495127641.810614 # RTSP[config]: using 'udp' for RTP flows. [12168] 1495127641.810630 # RTSP[config]: controller port = 8555 [12168] 1495127641.810638 # RTSP[config]: controller via 'udp' protocol. [12168] 1495127641.810775 # RTSP[config]: video-encoder = libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10) [12168] 1495127641.810810 # RTSP[config]: audio-encoder = libmp3lame (libmp3lame MP3 (MPEG audio layer 3)) [12168] 1495127641.810921 # RTSP[config]: video specific option: b = 3000000 [12168] 1495127641.810947 # RTSP[config]: video specific option: g = 48 [12168] 1495127641.810963 # RTSP[config]: video specific option: intra-refresh = 1 [12168] 1495127641.810977 # RTSP[config]: video specific option: me_method = dia [12168] 1495127641.810992 # RTSP[config]: video specific option: me_range = 16 [12168] 1495127641.811005 # RTSP[config]: video specific option: preset = faster [12168] 1495127641.811018 # RTSP[config]: video specific option: profile = main [12168] 1495127641.811031 # RTSP[config]: video specific option: refs = 1 [12168] 1495127641.811048 # RTSP[config]: video specific option: slices = 4 [12168] 1495127641.811057 # RTSP[config]: video specific option: threads = 4 [12168] 1495127641.811066 # RTSP[config]: video specific option: tune = zerolatency [12168] 1495127641.811082 *** Crop disabled. [12168] 1495127641.813338 sink server: ffmpeg-rtsp-server registered [12168] 1495127641.813366 key-blocking initialized: 0+0 keys blocked. [12168] 1495127641.813445 sdl_replayer: sizeof(sdlmsg) = 64 [12168] 1495127641.814674 sdl replayer: Replay using XTest (version 2.2) for display :0 screen 0, size=1920x1080. [12168] 1495127641.815659 XShm extention version 1.2 with shared pixmaps [12168] 1495127641.815680 X-Window-init: dimension: 1920x1080x24 @ 0/1 [12168] 1495127641.815804 dpipe: 'video-0' initialized, 8 frames, framesize = 16384120 [12168] 1495127641.863649 video-source: video-0 initialized max-curr-out = (2560x1600)-(1920x1080)-(1920x1080) [12168] 1495127641.865600 Frame converter created: from (1920,1080)[30] -> (1920,1080)[0] [12168] 1495127641.865655 dpipe: 'filter-0' initialized, 8 frames, framesize = 16384120 [12168] 1495127641.895819 video encoder: video source #0 from 'filter-0' (1920x1080). [12168] 1495127641.896214 vencoder-init: option b = 3000000 [12168] 1495127641.896220 vencoder-init: option g = 48 [12168] 1495127641.896223 vencoder-init: option intra-refresh = 1 [12168] 1495127641.896225 vencoder-init: option me_method = dia [12168] 1495127641.896227 vencoder-init: option me_range = 16 [12168] 1495127641.896230 vencoder-init: option preset = faster [12168] 1495127641.896232 vencoder-init: option profile = main [12168] 1495127641.896234 vencoder-init: option refs = 1 [12168] 1495127641.896236 vencoder-init: option slices = 4 [12168] 1495127641.896241 vencoder-init: option threads = 4 [12168] 1495127641.896246 vencoder-init: option tune = zerolatency [libx264 @ 0x11f3a60] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0x11f3a60] profile Main, level 4.0 [libx264 @ 0x11f3a60] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=dia subme=4 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=4 lookahead_threads=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=48 keyint_min=4 scenecut=40 intra_refresh=1 rc=abr mbtree=0 bitrate=3000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [12168] 1495127641.902266 video encoder: initialized. 1495127641.902282 [12168] 1495127641.908401 ALSA init: unable to retrieve pcm delay [12168] 1495127641.908411 audio source: setup chunk=5512, samplerate=44100, bps=16, channels=2 [12168] 1495127641.911100 audio encoder: encoder_size=4608, frame_size=1152, dstlines[0] = 2304 [12168] 1495127641.911303 audio encoder: on-the-fly audio format conversion enabled. [12168] 1495127641.911307 audio encoder: convert from 2ch(3)@44100Hz (s16) to 2ch(3)@44100Hz (s16p). [12168] 1495127641.911324 audio encoder: initialized. [12168] 1495127641.911550 video encoder: ffmpeg-video-encoder registered [12168] 1495127641.911589 controller socket: socket address [0.0.0.0:8555] [12168] 1495127641.911670 audio encoder: ffmpeg-audio-encoder registered [12168] 1495127641.911611 video source thread started: tid=12179 [12168] 1495127641.911785 audio source thread started: tid=12181 [12168] 1495127641.911805 controller server started: tid=12178. [12168] 1495127641.911647 RGB2YUV filter[12180]: pipe#0 from 'video-0' to 'filter-0' (output-resolution=1920x1080) [12168] 1495127641.912261 reconfigure thread started ... [12168] 1495127689.942930 ffmpeg-server: set TCP sending buffer success. [12168] 1495127689.943273 vencoder-init: option b = 3000000 [12168] 1495127689.943283 vencoder-init: option g = 48 [12168] 1495127689.943286 vencoder-init: option intra-refresh = 1 [12168] 1495127689.943290 vencoder-init: option me_method = dia [12168] 1495127689.943294 vencoder-init: option me_range = 16 [12168] 1495127689.943298 vencoder-init: option preset = faster [12168] 1495127689.943301 vencoder-init: option profile = main [12168] 1495127689.943304 vencoder-init: option refs = 1 [12168] 1495127689.943308 vencoder-init: option slices = 4 [12168] 1495127689.943312 vencoder-init: option threads = 4 [12168] 1495127689.943316 vencoder-init: option tune = zerolatency [libx264 @ 0x7fcc00001440] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0x7fcc00001440] profile Main, level 4.0 [libx264 @ 0x7fcc00001440] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=dia subme=4 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=4 lookahead_threads=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=1 keyint=48 keyint_min=4 scenecut=40 intra_refresh=1 rc=abr mbtree=0 bitrate=3000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [12168] 1495127689.948754 [tid 12202] client connected from 127.0.0.1:42620 [12168] 1495127689.948778 DESCRIBE rtsp://127.0.0.1:8554/desktop RTSP/1.0 Segmentation fault (core dumped)
I am trying to find the differences in the FFmpeg-RTSP related code, but without success by the moment...
Is it possible that header files at
module/server-ffmpeg/ffmpeg-1.1/*.h are burned?
There are few differences between some of those files when comparing current FFmpeg version and 2.8.8
I just had a chance to have a quick look and I think you're right. The ffmpeg-1.1 in ga/modules/server-ffmpeg/ header files are quite different from the ones I see in ffmpeg 3.0.8 I just downloaded.
... probably I am wrong, but it seems to me this library is currently very tied to the specific version of FFmpeg, both at the codec an server sides. FFmpeg has a higher level API that does not change so drastically from one version to another, I feel it is not necessary to go so deep inside public methods available in the RTSP module (e.g. ff_rtsp_read_reply()) or to implement very specific functions (parsing H.264 syntax "Sequence Parameter Set" (SPS), "Picture Parameter Set" (PPS), etc). I don't see an easy way for upgrading FFmpeg.
Yeah. I've taken a look at it and tried to compile using newer ffmpeg includes/libraries but it appears that the server-ffmpeg module may just need a write to get past this.
Compiling with ffmpeg 3.0.x and leaving the server-ffmpeg ones ends up with this on the client when I try to connect:
watchdog: initialized, but no frames received ... # [35278] 1495169275.930856 qos-measurement: source #0 added, prefix=-294428208 video decoder: use decoder h264 video decoder(0): sprop configured with 'Z01AM7aANIBCfnhAAAADAEAAAAwjxgyo,aO88gA==', decoded-size=36 SPROP = [ 00 00 00 01 67 4d 40 33 b6 80 34 80 42 7e 78 40 00 00 03 00 40 00 00 0c 23 c6 0c a8 00 00 00 01 68 ef 3c 80 ] [h264 @ 0x7ff2ef87ea00] The encoder timebase is not set. video decoder(0): cannot open decoder cannot initialize video decoder(0) # [35278] 1495169275.933015 qos-measurement: deinitialized. [URL:"rtsp://127.0.0.1:8554/desktop/"]: Closing the stream. rtsp thread: no more rtsp clients rtsp thread: terminated.
@rantoniello -- check this out... I think it may be related: https://trac.ffmpeg.org/ticket/5844 and the commit it refers to as resolution: http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=f8a13c72132a65e34e05b878dc780ad330dd7371;hp=96cd6f672e5d8c5d49b06de4f24376f36880fea8
@bglopez Thanks very much for the link. Sounds related. I will take a look and give you feedback. I will also check with last FFmpeg version, 3.3, instead of 3.0. Later, probably, I will go through all the server-ffmpeg code to get it running.
hey hi can you please help me how to install gaminganywhere in server i am following this steps:------------------------ HOW TO BUILD on supported POSIX platforms (Linux and Mac OS X) Prerequisites:
GNU C++ compiler
pkg-config
libX11, libXext, libXtst, libfreetype6, libgl1-mesa, libglu1-mesa, libpulse, libasound2 (both binaries and development files)
Steps:
Edit the 'env-setup' script to ensure that GADEPS points to a correct directory. It should be an absolute path to gaminganywhere/deps.posix directory. Merge environment variables from 'env-setup' by using '.' or 'source' command. Build dependencies by running 'make' in the 'deps.src' directory. Build GA by running 'make all' command in the 'ga' directory. Install GA by running 'make install' command in the 'ga' directory. All the generated files will be installed into 'bin' directory.
Hi all, I am trying to install the gaming anywhere and i am not stuck at deploying the game server. Please find the below trace and help me to resolve my error.
manoj@manoj-VirtualBox:~/Downloads/gaminganywhere-0.8.0/bin$ ./ga-server-periodic config/server.desktop.conf
[libx264 @ 0x561f105433e0] The encoder timebase is not set.
Hello Manoj,
First you need to install x264 And run it again
On Sun, Nov 10, 2019 at 1:37 AM CloudMaster-Manoj notifications@github.com wrote:
Hi all, I am trying to install the gaming anywhere and i am not stuck at deploying the game server. Please find the below trace and help me to resolve my error.
manoj@manoj-VirtualBox:~/Downloads/gaminganywhere-0.8.0/bin$ ./ga-server-periodic config/server.desktop.conf [3093] 1573329600.643410 # include: config/common/server-common.conf [3093] 1573329600.643725 # include: config/common/controller.conf [3093] 1573329600.643926 # include: config/common/video-x264.conf [3093] 1573329600.644134 # include: config/common/video-x264-param.conf [3093] 1573329600.644383 # include: config/common/audio-lame.conf [3093] 1573329600.644623 # RTSP[config]: using 'udp' for RTP flows. [3093] 1573329600.644829 # RTSP[config]: controller port = 8555 [3093] 1573329600.645019 # RTSP[config]: controller via 'udp' protocol. [3093] 1573329600.645261 # RTSP[config]: video-encoder = libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10) [3093] 1573329600.645503 # RTSP[config]: audio-encoder = libmp3lame (libmp3lame MP3 (MPEG audio layer 3)) [3093] 1573329600.645750 # RTSP[config]: video specific option: b = 3000000 [3093] 1573329600.645947 # RTSP[config]: video specific option: g = 48 [3093] 1573329600.646140 # RTSP[config]: video specific option: intra-refresh = 1 [3093] 1573329600.646322 # RTSP[config]: video specific option: me_method = dia [3093] 1573329600.646519 # RTSP[config]: video specific option: me_range = 16 [3093] 1573329600.646728 # RTSP[config]: video specific option: preset = faster [3093] 1573329600.646923 # RTSP[config]: video specific option: profile = main [3093] 1573329600.647097 # RTSP[config]: video specific option: refs = 1 [3093] 1573329600.647302 # RTSP[config]: video specific option: slices = 4 [3093] 1573329600.647471 # RTSP[config]: video specific option: threads = 4 [3093] 1573329600.647679 # RTSP[config]: video specific option: tune = zerolatency [3093] 1573329600.647923 *** Crop disabled. [3093] 1573329600.653275 sink server: live555-rtsp-server registered [3093] 1573329600.653445 key-blocking initialized: 0+0 keys blocked. [3093] 1573329600.653806 sdl_replayer: sizeof(sdlmsg) = 64 [3093] 1573329600.654421 sdl replayer: Replay using XTest (version 2.2) for display :0 screen 0, size=1920x1200. [3093] 1573329600.654885 XShm extention version 1.2 with shared pixmaps [3093] 1573329600.655011 X-Window-init: dimension: 1920x1200x24 @ 0/1 [3093] 1573329600.655304 dpipe: 'video-0' initialized, 8 frames, framesize = 16384120 [3093] 1573329600.733340 video-source: video-0 initialized max-curr-out = (2560x1600)-(1920x1200)-(1920x1200) [3093] 1573329600.735686 Frame converter created: from (1920,1200)[30] -> (1920,1200)[0] [3093] 1573329600.736157 dpipe: 'filter-0' initialized, 8 frames, framesize = 16384120 [3093] 1573329600.815038 video encoder: video source #0 from 'filter-0' (1920x1200). [3093] 1573329600.816490 vencoder-init: option b = 3000000 [3093] 1573329600.816765 vencoder-init: option g = 48 [3093] 1573329600.817106 vencoder-init: option intra-refresh = 1 [3093] 1573329600.817449 vencoder-init: option me_method = dia [3093] 1573329600.817889 vencoder-init: option me_range = 16 [3093] 1573329600.818255 vencoder-init: option preset = faster [3093] 1573329600.818556 vencoder-init: option profile = main [3093] 1573329600.818863 vencoder-init: option refs = 1 [3093] 1573329600.819236 vencoder-init: option slices = 4 [3093] 1573329600.819526 vencoder-init: option threads = 4 [3093] 1573329600.819819 vencoder-init: option tune = zerolatency
[libx264 @ 0x561f105433e0] The encoder timebase is not set.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chunying/gaminganywhere/issues/45?email_source=notifications&email_token=AHWP74NKYH6NLEIZEFHE5SDQS4J67A5CNFSM4DL6KG22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDUOBYY#issuecomment-552132835, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWP74JHAN7HKHLH4DSJFPDQS4J67ANCNFSM4DL6KG2Q .
-- Geethanjali
Hi,
FFMpeg version 2.8.8 works well with module server-ffmpeg, I tsted with periodic server @desktop configuration. Upgrading FFmpeg to 3.0 version or newer crashes the client at the method:
in the following method code:
The consequence is a segmentation fault while managing this error. This can be verified using FFmpeg 3.0.8 "Einstein" release, for example. This is the only change, just upgrade library.
Any help with this issue will be very appreciated; I am interested in upgrading FFmpeg version. Thanks very much in advance.