tanersener/flutter-ffmpeg

flutter ffmpeg stops automatically in 2-3 minutes

adarshsinggh opened this issue · 0 comments

I am trying to send rtsp stream to rtmp server by this command
_ffmpeg.execute("-rtsp_transport tcp -i rtsp://admins:admins@192.168.1.12:554/stream1 -tune zerolatency -vcodec libx264 -pix_fmt + -c:v copy -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/$streamName").then((value) => _toast(value.toString()));
I am expecting it to run flawless but it is in cmd but flutter ffmpeg not working

The error i am getting

I/mobile-ffmpeg(19898): frame= 3060 fps= 14 q=-1.0 size=   21351kB time=00:03:45.19 bitrate= 776.7kbits/s speed=1.02x    
W/mobile-ffmpeg(19898): [flv @ 0x6ed3439e00] Failed to update header with correct duration.
W/mobile-ffmpeg(19898): [flv @ 0x6ed3439e00] Failed to update header with correct filesize.
I/mobile-ffmpeg(19898): frame= 3066 fps= 14 q=-1.0 Lsize=   21385kB time=00:03:45.82 bitrate= 775.8kbits/s speed=1.02x    
I/mobile-ffmpeg(19898): video:20252kB audio:1045kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 
I/mobile-ffmpeg(19898): 0.414138%
I/mobile-ffmpeg(19898): 
I/mobile-ffmpeg(19898): [aac @ 0x6ed3473c00] Qavg: 63990.980
D/flutter-ffmpeg(19898): FFmpeg exited with rc: 0
D/ViewRootImpl[Toast](19898): hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
I/InputTransport(19898): Create ARC handle: 0x6f49120c60
I/Choreographer(19898): Skipped 1 frames!  The application may be doing too much work on its main thread.
D/Surface (19898): Surface::connect(this=0x6eaa80e000,api=1)
D/mali_winsys(19898): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
D/Surface (19898): Surface::setBufferCount(this=0x6eaa80e000,bufferCount=3)
D/Surface (19898): Surface::allocateBuffers(this=0x6eaa80e000)
D/Surface (19898): Surface::disconnect(this=0x6eaa80e000,api=1)
D/View    (19898): [Warning] assignParent to null: this = android.widget.FrameLayout{f21fed0 V.E...... ......ID 0,0-100,95}
I/InputTransport(19898): Destroy ARC handle: 0x6f49120c60