[FFmpeg-user] Chunked request when using "-progress"
Вадим Лазовский
vadim.lazovskiy at gmail.com
Thu Dec 13 12:48:35 CET 2012
Hello.
I have encountered a problem when using new "-progress" option.
FFmpeg uses chunked request that is not supported by nginx web server up to
the last version 1.3.9 released on 2012-11-27 (Feature: support for chunked
transfer encoding while reading client request body).
All other versions of nginx are unable to handle chunked input and respond
with "411 Length Required".
command line:
ffmpeg -i 329635 -progress http://conv.example.com/progress.php -codec:v
libx264 -strict -2 -codec:a aac -ar 44100 -b:v 800k -f mp4 -y /tmp/123.mp4
client request headers (from tcpdump):
POST /progress.php HTTP/1.1
Transfer-Encoding: chunked
User-Agent: Lavf54.29.104
Accept: */*
Connection: close
Host: conv.example.com
server response (from tcpdump):
HTTP/1.1 411 Length Required Server: nginx/1.2.3 Date: Thu, 13 Dec 2012
10:37:09 GMT Content-Type: text/html Content-Length: 180 Connection: close
<html> <head><title>411 Length Required</title></head> <body
bgcolor="white"> <center><h1>411 Length Required</h1></center>
<hr><center>nginx/1.2.3</center> </body> </html>
web server log entry:
10.0.1.1 - - [13/Dec/2012:14:30:57 +0400] "POST /progress.php HTTP/1.1" 411
180 "-" "Lavf54.29.104"
Is it possible to make ffmpeg do requests in a "traditional" way: not
chunked, specifying Content-Length header?
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
built on Sep 28 2012 23:56:09 with gcc 4.7 (SUSE Linux)
Thank you.
More information about the ffmpeg-user
mailing list