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 Carl Eugen Hoyos, 5 years ago

Component: ffmpegundetermined
Resolution: needs_more_info
Status: newclosed

Please reopen this ticket if you can explain how to reproduce.

comment:2 by Aliaksandr, 5 years ago

Component: undeterminedffmpeg
Resolution: needs_more_info
Status: closedreopened

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
Last edited 5 years ago by Aliaksandr (previous) (diff)

comment:3 by Carl Eugen Hoyos, 5 years ago

Component: ffmpegundetermined

Please provide the command line together with the complete, uncut console output for the hanging ffmpeg command to make this a valid ticket.

in reply to:  3 comment:4 by Aliaksandr, 5 years ago

Component: undeterminedffmpeg

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

Version 13, edited 5 years ago by Aliaksandr (previous) (next) (diff)

comment:5 by Aliaksandr, 5 years ago

Version: unspecified4.2

comment:6 by Carl Eugen Hoyos, 5 years ago

Component: ffmpegundetermined
Version: 4.2git-master

comment:7 by Aliaksandr, 5 years ago

Status: reopenedopen

comment:8 by Aliaksandr, 5 years ago

Priority: normalimportant

comment:9 by Aliaksandr, 5 years ago

Priority: importantcritical

comment:10 by Carl Eugen Hoyos, 5 years ago

Priority: criticalnormal
Note: See TracTickets for help on using tickets.