[FFmpeg-trac] #5288(ffmpeg:closed): FFmpeg -progress url Isn't working
FFmpeg
trac at avcodec.org
Thu Aug 22 18:21:20 EEST 2024
#5288: FFmpeg -progress url Isn't working
------------------------------------+-----------------------------------
Reporter: BlackDream | Owner: (none)
Type: defect | Status: closed
Priority: normal | Component: ffmpeg
Version: git-master | Resolution: invalid
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 1 |
------------------------------------+-----------------------------------
Changes (by Jay Caines-Gooby):
* status: new => closed
* resolution: => invalid
Comment:
This is actually an issue with the way the web server receiving the
`-progress` URL is configured.
ffmpeg is sending the progress data as it happens, using a chunked `POST`
body.
You can test this with netcat; use the netcat url as the destination for
the `-progress` option:
{{{
# start "server"
nc -l 7000 > ffmpeg.http.log &
# render 30 seconds of blank h264 sending progress to the server
ffmpeg -y -progress http://127.0.0.1:7000 -t 30 -f lavfi -i
color=c=black:s=640x480 -c:v libx264 -tune stillimage -pix_fmt yuv420p
black.mp4
# cat the "server" log
cat ffmpeg.http.log
}}}
You'll see the chunked POST headers, followed by the data:
{{{
POST / HTTP/1.1
Transfer-Encoding: chunked
User-Agent: Lavf/58.29.100
Accept: */*
Connection: close
Host: 127.0.0.1:7000
Icy-MetaData: 1
c5
frame=346
fps=0.00
stream_0_0_q=28.0
bitrate= 0.0kbits/s
total_size=48
out_time_us=11840078
out_time_ms=11840078
out_time=00:00:11.840078
dup_frames=0
drop_frames=0
speed=23.7x
progress=continue
c7
frame=708
fps=704.69
stream_0_0_q=28.0
bitrate= 0.0kbits/s
total_size=48
out_time_us=26320078
out_time_ms=26320078
out_time=00:00:26.320078
dup_frames=0
drop_frames=0
speed=26.2x
progress=continue
c5
frame=750
fps=680.10
stream_0_0_q=-1.0
bitrate= 7.7kbits/s
total_size=28599
out_time_us=29880078
out_time_ms=29880078
out_time=00:00:29.880078
dup_frames=0
drop_frames=0
speed=27.1x
progress=end
0
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5288#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list