[FFmpeg-user] problem using http input

jhseo sjh431 at gmail.com
Fri Aug 16 04:14:01 CEST 2013


Thank for an interest.

I use ffmpeg dll files, but under ffmpeg command requests same way(HTTP
GET).

-. ffmpeg command
 ffmpeg -i http://xxx.xxx.xxx.xxx/test.MOV -pass 1 -y -vcodec libx264
-vprofile baseline -b:v 512k -s 320x240 out.mp4


-. output
ffmpeg version N-55393-g3b2e99f Copyright (c) 2000-2013 the FFmpeg
developers  built on Aug  8 2013 21:37:55 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib
--enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray
--enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc
--enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-librtmp
--enable-libschroedinger --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libx264
--enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 41.100 / 52. 41.100
  libavcodec     55. 24.100 / 55. 24.100
  libavformat    55. 13.102 / 55. 13.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.100 /  3. 82.100
  libswscale      2.  4.100 /  2.  4.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://xxx.xxx.xxx.xxx/test.MOV':
  Metadata:
    major_brand     : qt
    minor_version   : 0
    compatible_brands: qt
    model           : iPhone 5
    model-kor       : iPhone 5
    encoder         : 6.1.4
    encoder-kor     : 6.1.4
    make            : Apple
    make-kor        : Apple
  Duration: 00:01:37.65, start: 0.000000, bitrate: 17292 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1920x1080, 17220 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 1200 tbc
    Metadata:
      handler_name    : Core Media Data Handler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp,
62 kb/s
    Metadata:
      handler_name    : Core Media Data Handler
[libx264 @ 00000000002d7cc0] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX
[libx264 @ 00000000002d7cc0] profile Constrained Baseline, level 2.0
[libx264 @ 00000000002d7cc0] 264 - core 135 r2345 f0c1c53 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2
013 - http://www.videolan.org/x264.html - options: cabac=0 ref=1
deblock=1:0:0 analyse=0x1:0 me=dia
subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0
8x8dct=0 cqm=0 deadzone
=21,11 fast_pskip=1 chroma_qp_offset=0 threads=18 lookahead_threads=1
sliced_threads=0 nr=0 decimate
=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0
keyint=250 keyint_min=25 sce
necut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=512
ratetol=1.0 qcomp=0.60 qpmin=0
qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'out.mp4':
  Metadata:
    major_brand     : qt
    minor_version   : 0
    compatible_brands: qt
    make-kor        : Apple
    model           : iPhone 5
    model-kor       : iPhone 5
    make            : Apple
    encoder-kor     : 6.1.4
    encoder         : Lavf55.13.102
    Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021),
yuv420p, 320x240, q=-1--1, pass 1, 512 kb/s, 30k tbn, 29.97 tbc
    Metadata:
      handler_name    : Core Media Data Handler
    Stream #0:1(und): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040),
44100 Hz, mono, s16, 128 kb/s
    Metadata:
      handler_name    : Core Media Data Handler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (aac -> libvo_aacenc)
Press [q] to stop, [?] for help
frame= 2927 fps= 34 q=-1.0 Lsize=    7669kB time=00:01:37.69 bitrate=
643.1kbits/s
video:6060kB audio:1527kB subtitle:0 global headers:0kB muxing overhead
1.081423%
[libx264 @ 00000000002d7cc0] frame I:15    Avg QP:21.27  size:  7174
[libx264 @ 00000000002d7cc0] frame P:2912  Avg QP:24.67  size:  2094
[libx264 @ 00000000002d7cc0] mb I  I16..4: 35.5%  0.0% 64.5%
[libx264 @ 00000000002d7cc0] mb P  I16..4: 10.0%  0.0%  0.0%  P16..4: 67.2%
0.0%  0.0%  0.0%  0.0%   skip:22.8%
[libx264 @ 00000000002d7cc0] final ratefactor: 21.90
[libx264 @ 00000000002d7cc0] coded y,uvDC,uvAC intra: 38.4% 36.8% 11.5%
inter: 33.4% 18.0% 1.3%
[libx264 @ 00000000002d7cc0] i16 v,h,dc,p: 50% 21% 21%  9%
[libx264 @ 00000000002d7cc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 22% 14%  6%
6%  8%  7%  7%  7%
[libx264 @ 00000000002d7cc0] i8c dc,h,v,p: 64% 16% 16%  4%
[libx264 @ 00000000002d7cc0] kb/s:508.26


-. http dump:
  v. the problem is "Range" field does not specify end of range.. my storage
is ready to send every request until end of file.
  v. follow request occur 20~30 time per second.
  v. start values of "Range" field are..
     1.mdat position 2.moov position 3.start position of a/v packet
      (this position info get from mp4 container)

(time: 8.465443 sec)
GET /test.MOV HTTP/1.1
User-Agent: Lavf54.1.100
Accept: */*
Range: bytes=0-
Connection: close
Host: xxx.xxx.xxx.xxx

(time: 8.468504 sec)
GET /test.MOV HTTP/1.1
User-Agent: Lavf54.1.100
Accept: */*
Range: bytes=211028448-
Connection: close
Host: xxx.xxx.xxx.xxx

(time: 8.478031 sec)
GET /test.MOV HTTP/1.1
User-Agent: Lavf54.1.100
Accept: */*
Range: bytes=36-
Connection: close
Host: xxx.xxx.xxx.xxx

(time: 8.486259 sec)
GET /test.MOV HTTP/1.1
User-Agent: Lavf54.1.100
Accept: */*
Range: bytes=17479-
Connection: close
Host: xxx.xxx.xxx.xxx

(time: 8.548716 sec)
GET /test.MOV HTTP/1.1
User-Agent: Lavf54.1.100
Accept: */*
Range: bytes=7390-
Connection: close
Host: xxx.xxx.xxx.xxx

(time: 8.564293 sec)
GET /test.MOV HTTP/1.1
User-Agent: Lavf54.1.100
Accept: */*
Range: bytes=275875-
Connection: close
Host: xxx.xxx.xxx.xxx

(time: 8.595498 sec)
GET /test.MOV HTTP/1.1
User-Agent: Lavf54.1.100
Accept: */*
Range: bytes=7573-
Connection: close
Host: xxx.xxx.xxx.xxx

.
.
.
.
.

-----Original Message-----
From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org]
On Behalf Of Andrey Utkin
Sent: Thursday, August 15, 2013 7:10 PM
To: FFmpeg user questions
Subject: Re: [FFmpeg-user] problem using http input

Please give a full ffmpeg command and its output, and dump of HTTP traffic
sniff.

--
Andrey Utkin
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user



More information about the ffmpeg-user mailing list