[FFmpeg-trac] #8089(ffmpeg:reopened): Hangs process ffmpeg.exe

FFmpeg trac at avcodec.org
Tue Aug 20 12:59:21 EEST 2019


#8089: Hangs process ffmpeg.exe
-------------------------------------+------------------------------------
             Reporter:  AirVolf      |                    Owner:
                 Type:  defect       |                   Status:  reopened
             Priority:  normal       |                Component:  ffmpeg
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------
Changes (by AirVolf):

 * status:  closed => reopened
 * resolution:  needs_more_info =>
 * component:  undetermined => ffmpeg


Comment:

 I need to collect "JPEG" from each working stream.

 In the file "'''in.txt'''" have the following streams:
 ''http://31.148.16.31:8080/udp/224.0.90.65:1234
 http://31.148.16.31:8080/udp/224.0.90.2:1234
 http://31.148.16.31:8080/udp/224.0.90.224:1234''

 Of these three multicast, work only 224.0.90.2:1234 , the rest are not
 working.
 Process ffmpeg.exe hangs on multicast 224.0.90.65:1234 and
 224.0.90.224:1234
 Team "rw_timeout" does not help to close the hung processes ffmpeg.exe and
 is not unloaded from memory.
 Please add to the "rw_timeout" command the forced closure of the
 ffmpeg.exe process after processing.

 Sample code to reproduce the hang of the process ffmpeg.exe :
 {{{
 SetLocal EnableExtensions EnableDelayedExpansion

 set sSourceFile=in.txt
 set sDestFile=out.txt

 if "%~1"=="" (
     2>NUL del "%sDestFile%"
 ) else (
     set host=%~2
     set /a COUNT+=1
     ffmpeg.exe -rw_timeout 7000000 -ss 00:00:01 -i !host! -f image2 -vf
 scale=720:576 -vframes 1 "!COUNT!.jpeg"
     exit /b
 )

 if defined sSourceFile (
     if exist "%sSourceFile%" (
         for /f "usebackq delims=" %%i in ("%sSourceFile%") do (
             set /a n+=1
             nircmd.exe exec hide cmd.exe /c ""%~fs0" %%n%% "%%~i""
             call echo Launched process # %%n%%
             pathping -h 1 -p 500 -q 1 -w 1 127.0.0.1>nul
         )
     ) else (
         echo Can't find source file [%sSourceFile%].
         exit /b 2
     )
 ) else (
     echo Usage: %~nx0 ^<Source file^>
     exit /b 1
 )
 exit
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8089#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list