srs icon indicating copy to clipboard operation
srs copied to clipboard

Cygwin: FFMPEG ERROR

Open Jason-JP-Yang opened this issue 7 months ago • 0 comments

Describe the bug FFMPEG is completely unavailable on the Cygwin compiled SRS, config file has nothing change, using ffmpeg.transcode.conf compile follow the steps at https://ossrs.net/lts/zh-cn/docs/v6/doc/windows correctly The ./objs/ffmpeg/bin/ffmpeg is presence.

Version SRS V6.0.2a FFMPEG version 7.0-full_build-www.gyan.dev

To Reproduce Steps to reproduce the behavior:

  1. Enter Cygwin Terminal
  2. RUN the command:
$ git checkout develop
$ ./configure
$ make
$ ./objs/srs -c ./conf/ffmpeg.transcode.conf
  1. Error is produce after OBS stream to rtmp 1935 port
[2025-05-14 00:46:57.211][INFO][1276][9m1e818r] got metadata, width=3840, height=2160, vcodec=7, acodec=10
[2025-05-14 00:46:57.211][INFO][1276][9m1e818r] 7B audio sh, codec(10, profile=LC, 2channels, 0kbps, 48000HZ), flv(16bits, 2channels, 44100HZ)
[2025-05-14 00:46:57.211][INFO][1276][9m1e818r] 59B video sh, codec(7, profile=High, level=Other, 3840x2160, 0kbps, 0.0fps, 0.0s)
      0 [main] srs 1278 D:\xxxxxxxxxxxxxxxxx\livestream_server\trunk\objs\srs.exe: *** fatal error in forked process - can't commit memory for stack 0x6FFFFEEAF000(0xFFFF900801151000), Win32 error 87
2768344 [main] srs 1276 dofork: child -1 - forked process 1992 died unexpectedly, retry 0, exit code 0x100, errno 11
[2025-05-14 00:46:59.977][WARN][1276][9m1e818r][11] Encoder: Ignore error, code=3028(FFmpegFork)(Failed to fork FFmpeg trancoder process) : ffmpeg start : vfork process failed, cli=./objs/ffmpeg/bin/ffmpeg -f flv -i rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__/stream -vcodec libx264 -threads 4 -profile:v main -preset medium -acodec libfdk_aac -f flv -y rtmp://127.0.0.1:1935/live/stream_ff?vhost=__defaultVhost__ 1 > ./objs/ffmpeg-encoder-__defaultVhost__-live-stream-ff.log 2 > ./objs/ffmpeg-encoder-__defaultVhost__-live-stream-ff.log
thread [1276][9m1e818r]: do_cycle() [./src/app/srs_app_encoder.cpp:117][errno=11]
thread [1276][9m1e818r]: start() [./src/app/srs_app_process.cpp:197][errno=11]

Expected behavior A stream with lower resolution transcoded and stream to srs server

Additional context There even have no ./objs/ffmpeg-encoder-defaultVhost-live-stream-ff.log generated, i can do nothing on debugging I have send these information to LLM Deepseek for help, it provides meaningless solution. I have enough memory and cpu cores on my computer surely. If i try to run command ./objs/ffmpeg/bin/ffmpeg, it is work. Therefore, I think the problem is occured during compiling or just a important BUG

Jason-JP-Yang avatar May 13 '25 16:05 Jason-JP-Yang