Opened 5 years ago
Last modified 5 years ago
#8089 open defect
Hangs process ffmpeg.exe
Reported by: | Aliaksandr | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | git-master | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
From the documentation:
rw_timeout
"Maximum time to wait for (network) read/write operations to complete, in microseconds."
I use ffmpeg in a batch file with multi-process launch. In fact, it happens that after work, the ffmpeg.exe process freezes and is not unloaded from memory. Please add to the "rw_timeout" command the forced closure of the ffmpeg.exe process after processing.
Change History (10)
comment:1 by , 5 years ago
Component: | ffmpeg → undetermined |
---|---|
Resolution: | → needs_more_info |
Status: | new → closed |
comment:2 by , 5 years ago
Component: | undetermined → ffmpeg |
---|---|
Resolution: | needs_more_info |
Status: | closed → reopened |
I need to collect "JPEG" from each working stream.
In the file "in.txt" have the following streams:
http://91.231.233.161:8080/udp/239.195.33.155:1234
http://91.231.233.161:8080/udp/239.195.32.32:1234
http://91.231.233.161:8080/udp/239.195.33.163: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 timeout (in microseconds).
Sample CMD 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 call start "" /min 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
follow-up: 4 comment:3 by , 5 years ago
Component: | ffmpeg → undetermined |
---|
Please provide the command line together with the complete, uncut console output for the hanging ffmpeg command to make this a valid ticket.
comment:4 by , 5 years ago
Component: | undetermined → ffmpeg |
---|
Replying to cehoyos:
Please provide the command line together with the complete, uncut console output for the hanging ffmpeg command to make this a valid ticket.
Ok, designed everything in the first message
comment:5 by , 5 years ago
Version: | unspecified → 4.2 |
---|
comment:6 by , 5 years ago
Component: | ffmpeg → undetermined |
---|---|
Version: | 4.2 → git-master |
comment:7 by , 5 years ago
Status: | reopened → open |
---|
comment:8 by , 5 years ago
Priority: | normal → important |
---|
comment:9 by , 5 years ago
Priority: | important → critical |
---|
comment:10 by , 5 years ago
Priority: | critical → normal |
---|
Please reopen this ticket if you can explain how to reproduce.