Re: [FFmpeg-trac] #5824(avformat:closed): FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET

2016-09-11 Thread FFmpeg
#5824: FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET
+--
 Reporter:  Hapie   |Owner:
 Type:  defect  |   Status:  closed
 Priority:  normal  |Component:  avformat
  Version:  git-master  |   Resolution:  worksforme
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+--

Comment (by Hapie):

 After a week long debugging finally I figured out the bug by digging into
 FFMPEG code base. Thanks for no help.

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #5824(avformat:closed): FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET

2016-09-07 Thread FFmpeg
#5824: FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET
+--
 Reporter:  Hapie   |Owner:
 Type:  defect  |   Status:  closed
 Priority:  normal  |Component:  avformat
  Version:  git-master  |   Resolution:  worksforme
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+--

Comment (by Hapie):

 I have attached the sample c code which is replicating the 104 behaviour.
 What is found out is if we call `shutdown(socket, 2)` without
 `close(socket)` function afterwards then recv throws 104.

 Maybe these points will help. Tested code on Linux machine.

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #5824(avformat:closed): FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET

2016-09-07 Thread FFmpeg
#5824: FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET
+--
 Reporter:  Hapie   |Owner:
 Type:  defect  |   Status:  closed
 Priority:  normal  |Component:  avformat
  Version:  git-master  |   Resolution:  worksforme
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+--

Comment (by Hapie):

 FFmpeg switch over to http and tcp protocols while streaming. I figured
 out that `tcp_read` function in `tcp.c` of `avformat` containing `recv`
 function is returning -1 with errno is 104 which is ECONNRESET.

 I wrote simple c code to build a socket and connected to the stream and it
 works well. But on device `recv` function return non-zero values for
 sometime and then suddenly returns -1.

 Any idea what's going on with socket connections. Is it the server closing
 the connection or client `Android app with ffmpeg code` closing the
 connection?

 Strange thing is it works fine for other audio streams but disconnects if
 I pause `av_read_pause` for more than 2 minutes (which is default timeout
 120 seconds).

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #5824(avformat:closed): FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET

2016-09-06 Thread FFmpeg
#5824: FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET
+--
 Reporter:  Hapie   |Owner:
 Type:  defect  |   Status:  closed
 Priority:  normal  |Component:  avformat
  Version:  git-master  |   Resolution:  worksforme
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+--

Comment (by Hapie):

 Thanks for quick reply. I will test with current NDK and revert back. :)

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #5824(avformat:closed): FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET

2016-09-06 Thread FFmpeg
#5824: FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET
+--
 Reporter:  Hapie   |Owner:
 Type:  defect  |   Status:  closed
 Priority:  normal  |Component:  avformat
  Version:  git-master  |   Resolution:  worksforme
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+--

Comment (by cehoyos):

 Please test current NDK and report back.

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #5824(avformat:closed): FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET

2016-09-06 Thread FFmpeg
#5824: FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET
+--
 Reporter:  Hapie   |Owner:
 Type:  defect  |   Status:  closed
 Priority:  normal  |Component:  avformat
  Version:  git-master  |   Resolution:  worksforme
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+--

Comment (by Hapie):

 It doesn't work on Android. Could this be due to old NDK version?
 With which NDK version I should compile latest FFmpeg head? Currently I am
 using NDK 9.


 Thanks

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #5824(avformat:closed): FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET

2016-09-06 Thread FFmpeg
#5824: FFmpeg 3.1.3 av_read_frame returning -104 ECONNRESET
+--
 Reporter:  Hapie   |Owner:
 Type:  defect  |   Status:  closed
 Priority:  normal  |Component:  avformat
  Version:  git-master  |   Resolution:  worksforme
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+--
Changes (by cehoyos):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 {{{
 $ time ffplay -i http://anhadgurbani.com:/fatehtv.mp3
 ffplay version N-81555-g496d97f Copyright (c) 2003-2016 the FFmpeg
 developers
   built with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --enable-gnutls
   libavutil  55. 29.100 / 55. 29.100
   libavcodec 57. 54.102 / 57. 54.102
   libavformat57. 48.102 / 57. 48.102
   libavdevice57.  0.102 / 57.  0.102
   libavfilter 6. 60.100 /  6. 60.100
   libswscale  4.  1.100 /  4.  1.100
   libswresample   2.  1.100 /  2.  1.100
   libpostproc54.  0.100 / 54.  0.100
 Input #0, mp3, from 'http://anhadgurbani.com:/fatehtv.mp3':
   Metadata:
 encoder : Lavf57.31.100
   Duration: N/A, start: 0.00, bitrate: 64 kb/s
 Stream #0:0: Audio: mp3, 44100 Hz, mono, s16p, 64 kb/s
   60.36 M-A:  0.000 fd=   0 aq=   11KB vq=0KB sq=0B f=0/0

 real2m2.452s
 user0m1.622s
 sys 0m0.923s
 }}}

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac