[FFmpeg-trac] #6673(avformat:reopened): fmp4/hls not working with remote paths

FFmpeg trac at avcodec.org
Tue Sep 19 19:34:32 EEST 2017


#6673: fmp4/hls not working with remote paths
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  thecodeassassin                    |                   Status:  reopened
                 Type:  defect       |                Component:  avformat
             Priority:  normal       |               Resolution:
              Version:  git-master   |               Blocked By:
             Keywords:  fmp4 hls     |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by stevenliu):

 maybe need support http play fmp4 format at hls.c, now you can test the
 link with quicktime or safari
 and i will make it right at hls, so this ticket can be closed.



 {{{
 localhost:dash StevenLiu$ ./ffmpeg -re -i ~/Movies/objectC/facebook.mp4 -g
 30 -c:a aac -b:a 128k -ar 44100 -c:v libx264 -f hls -method PUT
 -hls_fmp4_init_filename http://192.168.3.2/init.mp4 -hls_time 4
 -hls_list_size 0 -hls_segment_type fmp4 -preset ultrafast -profile:v main
 -level 3.1 -r 30 -t 20 "http://192.168.3.2/playlist.m3u8"
 ffmpeg version N-87328-gb4ecf2b582 Copyright (c) 2000-2017 the FFmpeg
 developers
   built with Apple LLVM version 8.1.0 (clang-802.0.42)
   configuration: --enable-htmlpages --enable-libass --enable-opengl
 --enable-libx264 --enable-libmp3lame --enable-gpl --enable-nonfree
 --prefix=/usr/local --enable-libopencv --enable-libtesseract --enable-
 libspeex --enable-libfreetype --enable-libfontconfig --enable-libfdk-aac
 --enable-videotoolbox --enable-libxml2
   libavutil      55. 75.100 / 55. 75.100
   libavcodec     57.106.101 / 57.106.101
   libavformat    57. 82.100 / 57. 82.100
   libavdevice    57.  8.101 / 57.  8.101
   libavfilter     6.105.100 /  6.105.100
   libswscale      4.  7.103 /  4.  7.103
   libswresample   2.  8.100 /  2.  8.100
   libpostproc    54.  6.100 / 54.  6.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
 '/Users/StevenLiu/Movies/objectC/facebook.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf55.22.102
     description     : This File is Created by Easy RealMedia Tools@!
   Duration: 02:00:27.85, start: 0.000000, bitrate: 893 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 640x480, 797 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
 stereo, fltp, 87 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
   Stream #0:1 -> #0:1 (aac (native) -> aac (native))
 Press [q] to stop, [?] for help
 [libx264 @ 0x7fa12b803200] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
 [libx264 @ 0x7fa12b803200] profile Constrained Baseline, level 3.1
 [libx264 @ 0x7fa12b803200] 264 - core 133 r2334M a3ac64b - H.264/MPEG-4
 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html -
 options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 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=6
 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=30
 keyint_min=3 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
 [hls @ 0x7fa12b801200] Opening 'http://192.168.3.2/init.mp4' for writing
 Output #0, hls, to 'http://192.168.3.2/playlist.m3u8':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     description     : This File is Created by Easy RealMedia Tools@!
     encoder         : Lavf57.82.100
     Stream #0:0(und): Video: h264 (libx264), yuv420p, 640x480, q=-1--1, 30
 fps, 15360 tbn, 30 tbc (default)
     Metadata:
       handler_name    : VideoHandler
       encoder         : Lavc57.106.101 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
     Stream #0:1(und): Audio: aac (LC), 44100 Hz, stereo, fltp, 128 kb/s
 (default)
     Metadata:
       handler_name    : SoundHandler
       encoder         : Lavc57.106.101 aac
 [hls @ 0x7fa12b801200] Opening 'http://192.168.3.2/playlist0.m4s' for
 writing
 [hls @ 0x7fa12b801200] Cannot use rename on non file protocol, this may
 lead to races and temporary partial files
 [mp4 @ 0x7fa12bc2b200] Track 1 starts with a nonzero dts 1764, while the
 moov already has been written. Set the delay_moov flag to handle this
 case.
 [hls @ 0x7fa12b801200] Opening 'http://192.168.3.2/playlist1.m4s' for
 writing speed=0.952x
 [mp4 @ 0x7fa12bc2b200] Application provided duration: -10 / timestamp:
 44397 is out of range for mov/mp4 format
 [hls @ 0x7fa12b801200] Opening 'http://192.168.3.2/playlist2.m4s' for
 writing0 speed=0.984x
 [mp4 @ 0x7fa12bc2b200] Application provided duration: -10 / timestamp:
 177006 is out of range for mov/mp4 format
 [hls @ 0x7fa12b801200] Opening 'http://192.168.3.2/playlist3.m4s' for
 writing0 speed=0.993x
 [mp4 @ 0x7fa12bc2b200] Application provided duration: -10 / timestamp:
 353009 is out of range for mov/mp4 format
 [hls @ 0x7fa12b801200] Opening 'http://192.168.3.2/playlist4.m4s' for
 writing0 speed=0.994x
 [mp4 @ 0x7fa12bc2b200] Application provided duration: -9 / timestamp:
 530071 is out of range for mov/mp4 format
 [hls @ 0x7fa12b801200] Opening 'http://192.168.3.2/playlist5.m4s' for
 writing0 speed=0.996x
 [mp4 @ 0x7fa12bc2b200] Application provided duration: -9 / timestamp:
 706074 is out of range for mov/mp4 format
 frame=  600 fps= 30 q=-1.0 Lsize=N/A time=00:00:20.00 bitrate=N/A dup=100
 drop=0 speed=0.991x
 video:2803kB audio:316kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 [libx264 @ 0x7fa12b803200] frame I:20    Avg QP:15.95  size: 41923
 [libx264 @ 0x7fa12b803200] frame P:580   Avg QP:18.95  size:  3503
 [libx264 @ 0x7fa12b803200] mb I  I16..4: 100.0%  0.0%  0.0%
 [libx264 @ 0x7fa12b803200] mb P  I16..4:  2.5%  0.0%  0.0%  P16..4: 38.0%
 0.0%  0.0%  0.0%  0.0%    skip:59.5%
 [libx264 @ 0x7fa12b803200] coded y,uvDC,uvAC intra: 46.4% 53.7% 30.4%
 inter: 15.5% 15.3% 0.9%
 [libx264 @ 0x7fa12b803200] i16 v,h,dc,p: 42% 32% 10% 16%
 [libx264 @ 0x7fa12b803200] i8c dc,h,v,p: 44% 30% 14% 11%
 [libx264 @ 0x7fa12b803200] kb/s:1147.99
 [aac @ 0x7fa12b804a00] Qavg: 528.571
 localhost:dash StevenLiu$
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6673#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list