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

FFmpeg trac at avcodec.org
Tue Sep 19 13:21:30 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):

 Replying to [comment:3 thecodeassassin]:
 > hi stevenliu, thanks for the quick reponse. It seems that it does not
 upload the init.mp4 to the remote endpoint. As in i'm not getting PUT
 request here for that file.

 https://patchwork.ffmpeg.org/patch/5191/

 Try this patch please.



 {{{
 liuqideMBP:hlsdemux liuqi$ ls -hl /usr/local/nginx/html/
 total 48
 -rwxrwxrwx  1 root    admin   537B  5 17  2016 50x.html
 -rw-r--r--  1 liuqi   admin   1.0K  1 28  2017 a.html
 -rw-r--r--  1 liuqi   admin   1.1K  7  1 08:17 aaa.mpd
 -rw-r--r--  1 liuqi   admin   1.1K  6 30 23:20 aaa_bbb.mpd
 drwxrwxrwx  2 root    admin    68B 10 12  2016 flowstream
 -rwxrwxrwx  1 root    admin   612B  5 17  2016 index.html
 drwxrwxrwx  7 liuqi   admin   238B  7 18 19:59 test
 -rwxrwxrwx  1 nobody  admin   239B  5 18  2016 upload.hls
 liuqideMBP:hlsdemux liuqi$ ./ffmpeg -i ~/Movies/objectC/facebook.mp4
 -loglevel warning      -hls_fmp4_init_filename
 http://192.168.0.157/init.mp4 -c:a aac -b:a 128k -ar 44100 -c:v libx264
 -max_muxing_queue_size 400 -x264opts no-scenecut -force_key_frames
 "expr:gte(t,n_forced*2)" -crf 23 -start_number 0 -hls_time 4
 -hls_list_size 3 -use_localtime 1 -hls_segment_type fmp4
 -hls_segment_filename "http://192.168.0.157/segment_%s.m4s" -preset
 ultrafast -profile:v main -level 3.1 -r 30 -threads 0 -vf "scale=-2:720"
 -bufsize 2000k -maxrate 2000k -b:v 2000k -f hls -method PUT -t 20
 "http://192.168.0.157/playlist.m3u8"
 [libx264 @ 0x7f9198030e00] frame MB size (81x45) > level limit (3600)
 [libx264 @ 0x7f9198030e00] MB rate (109350) > level limit (108000)
 [hls @ 0x7f91980a4c00] Cannot use rename on non file protocol, this may
 lead to races and temporary partial files
 [mp4 @ 0x7f9198000600] Track 0 starts with a nonzero dts 357, while the
 moov already has been written. Set the delay_moov flag to handle this
 case.
 [hls muxer @ 0x7f91980a5200] Duplicated segment filename detected:
 segment_1505815744.m4s
 [hls muxer @ 0x7f91980a5200] Duplicated segment filename detected:
 segment_1505815745.m4s
 liuqideMBP:hlsdemux liuqi$ ls -hl /usr/local/nginx/html/
 total 8800
 -rwxrwxrwx  1 root    admin   537B  5 17  2016 50x.html
 -rw-r--r--  1 liuqi   admin   1.0K  1 28  2017 a.html
 -rw-r--r--  1 liuqi   admin   1.1K  7  1 08:17 aaa.mpd
 -rw-r--r--  1 liuqi   admin   1.1K  6 30 23:20 aaa_bbb.mpd
 drwxrwxrwx  2 root    admin    68B 10 12  2016 flowstream
 -rwxrwxrwx  1 root    admin   612B  5 17  2016 index.html
 -rw-rw-rw-  1 nobody  admin   1.2K  9 19 18:09 init.mp4
 -rw-rw-rw-  1 nobody  admin   217B  9 19 18:09 playlist.m3u8
 -rw-rw-rw-  1 nobody  admin   1.2M  9 19 18:09 segment_1505815744.m4s
 -rw-rw-rw-  1 nobody  admin   1.0M  9 19 18:09 segment_1505815745.m4s
 -rw-rw-rw-  1 nobody  admin   1.0M  9 19 18:09 segment_1505815746.m4s
 -rw-rw-rw-  1 nobody  admin   1.0M  9 19 18:09 segment_1505815747.m4s
 drwxrwxrwx  7 liuqi   admin   238B  7 18 19:59 test
 -rwxrwxrwx  1 nobody  admin   239B  5 18  2016 upload.hls
 }}}

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


More information about the FFmpeg-trac mailing list