[FFmpeg-trac] #6859(undetermined:new): 2pass moov not written and block ffmpeg if input live stream stops before

FFmpeg trac at avcodec.org
Thu Nov 23 12:00:37 EET 2017


#6859: 2pass moov not written and block ffmpeg if input live stream stops before
-------------------------------------+-------------------------------------
             Reporter:  zermok       |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 there is no way to get a valid MP4 file if the input rtmp live stream
 stops before ffmpeg, resulting 100% cpu and no way other than Ctr+C to
 exit ffmpeg but with a corrupted file as result since moov portion is not
 written as the second pass

 How to reproduce:
 {{{
 % /usr/local/bin/ffmpeg -fflags +genpts -analyzeduration 0 -r 10 -threads
 0 -rtmp_conn 'S:pass Z: Z: Z: S:ffmpeg Z: Z: Z: Z: Z:' -i
 'rtmp://xxxx:1935/app/instance/mp4:livestreamm live=1 swfVfy=1
 swfUrl=https://xxx/swf flashVer=11,2,0,0 buffer=9 timeout=30' -map 0 -c:a
 libfdk_aac -ar 16000 -c:v libopenh264 -g 10 -allow_skip_frames 1
 -profile:v baseline -q:v 1 -pix_fmt yuv420p -async 1 -vsync 1 -vf
 'scale=w=1920:h=1200:force_original_aspect_ratio=decrease' -movflags
 +faststart -y '/out.mp4'

 ffmpeg version N-89190-g6db511a

 built on Linux 4.13.13-rt5 #1 SMP PREEMPT x86_64 GNU/Linux Fedora 25
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6859>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list