Re: [FFmpeg-trac] #10855(undetermined:new): Huge RTSP latency achieved over long time of streaming from specific IP camera

2024-02-18 Thread FFmpeg
#10855: Huge RTSP latency achieved over long time of streaming from specific IP
camera
-+-
 Reporter:  VincasD  |Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
 |  undetermined
  Version:  6.1  |   Resolution:
 Keywords:  RTSP H264|   Blocked By:
  latency|
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Comment (by VincasD):

 I've attached `default_vs_sync_ext.png` - it seems that using `-sync ext`
 (on the right) is even worse in a sense that it shows about ~2s latency
 just from the start, without even waiting for hours for latency to grow.

 Anyway, so hypothesis is that this IP camera module provides some sort of
 wrong timing information that potentially produces growing latency?

 Again, this does not reproduce with other IP camera modules, nor with
 Live555 implementations (and mpv) with same "problematic" camera.
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10855(undetermined:new): Huge RTSP latency achieved over long time of streaming from specific IP camera

2024-02-18 Thread FFmpeg
#10855: Huge RTSP latency achieved over long time of streaming from specific IP
camera
-+-
 Reporter:  VincasD  |Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
 |  undetermined
  Version:  6.1  |   Resolution:
 Keywords:  RTSP H264|   Blocked By:
  latency|
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Changes (by VincasD):

 * Attachment "default_vs_sync_ext.png" added.

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10855(undetermined:new): Huge RTSP latency achieved over long time of streaming from specific IP camera

2024-02-16 Thread FFmpeg
#10855: Huge RTSP latency achieved over long time of streaming from specific IP
camera
-+-
 Reporter:  VincasD  |Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
 |  undetermined
  Version:  6.1  |   Resolution:
 Keywords:  RTSP H264|   Blocked By:
  latency|
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Comment (by Marton Balint):

 FFplay is not really developed to maintain a fixed latency for live
 sources, or to regenerate the clock of the input.

 Typically the clock source for playback is the playback audio clock, which
 just depends on the internal clock of your sound card. This is likely
 slighly different from the local clock of your camera, so in time the
 latency will change.

 You might try using the -sync ext mode, which does some playback clock
 adjustments to keep the buffered data (and therefore latency) constant,
 but it might cause some sudden audio pitch changes.
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10855(undetermined:new): Huge RTSP latency achieved over long time of streaming from specific IP camera

2024-02-14 Thread FFmpeg
#10855: Huge RTSP latency achieved over long time of streaming from specific IP
camera
-+-
 Reporter:  VincasD  |Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
 |  undetermined
  Version:  6.1  |   Resolution:
 Keywords:  RTSP H264|   Blocked By:
  latency|
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Comment (by VincasD):

 I've left four instances of ffplay 4.3.6 on Linux with `-vf setpts=0`
 added overnight, and they did not reproduce growing latency overnight (see
 ffplay_setpts_linux.mp4​)

 Also left four instances of ffplay 6.1.1 on Windows with `-vf setpts=0`
 added overnight too, and they DID still reproduce growing latency, and
 every instance resulted with different latency, see
 ffplay_setpts_windows.mp4​.

 So not sure if it actually helps or it's just instance for "randomly works
 ok", as some GStreamer instances also seems to work fine.
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10855(undetermined:new): Huge RTSP latency achieved over long time of streaming from specific IP camera

2024-02-14 Thread FFmpeg
#10855: Huge RTSP latency achieved over long time of streaming from specific IP
camera
-+-
 Reporter:  VincasD  |Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
 |  undetermined
  Version:  6.1  |   Resolution:
 Keywords:  RTSP H264|   Blocked By:
  latency|
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Changes (by VincasD):

 * Attachment "ffplay_setpts_windows.mp4" added.

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10855(undetermined:new): Huge RTSP latency achieved over long time of streaming from specific IP camera

2024-02-14 Thread FFmpeg
#10855: Huge RTSP latency achieved over long time of streaming from specific IP
camera
-+-
 Reporter:  VincasD  |Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
 |  undetermined
  Version:  6.1  |   Resolution:
 Keywords:  RTSP H264|   Blocked By:
  latency|
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Changes (by VincasD):

 * Attachment "ffplay_setpts_linux.mp4" added.

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10855(undetermined:new): Huge RTSP latency achieved over long time of streaming from specific IP camera

2024-02-14 Thread FFmpeg
#10855: Huge RTSP latency achieved over long time of streaming from specific IP
camera
-+-
 Reporter:  VincasD  |Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
 |  undetermined
  Version:  6.1  |   Resolution:
 Keywords:  RTSP H264|   Blocked By:
  latency|
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Comment (by VincasD):

 is `-vf setpts=0` same as `sync=false` in GStreamer?

 Most of cameras can show video overnight without disabling sycn and
 without experiencing growing latency. It seems that specific camera
 behaves "differently", yet Live555 (ODM, VLC) looks like can handle it
 fine.
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10855(undetermined:new): Huge RTSP latency achieved over long time of streaming from specific IP camera

2024-02-14 Thread FFmpeg
#10855: Huge RTSP latency achieved over long time of streaming from specific IP
camera
-+-
 Reporter:  VincasD  |Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
 |  undetermined
  Version:  6.1  |   Resolution:
 Keywords:  RTSP H264|   Blocked By:
  latency|
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Comment (by VincasD):

 Thanks for suggestion!

 I've launched couple of instances for testing, but what it actually means?

 Also, it seems with this option playback is no longer smooth, looks like
 "jittering", i.e. is this really the solution..?

 I've noticed that SOME instances of gst-launc-1.0 have this issue, rather
 randomly (not always/not all streams).

 Onvif Device Manager and VLC (both using Live555) does not reproduce it.

 mpv also seems not to reproduce it, lough it uses Lavf (i.e. ffmpeg?).
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10855(undetermined:new): Huge RTSP latency achieved over long time of streaming from specific IP camera

2024-02-14 Thread FFmpeg
#10855: Huge RTSP latency achieved over long time of streaming from specific IP
camera
-+-
 Reporter:  VincasD  |Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
 |  undetermined
  Version:  6.1  |   Resolution:
 Keywords:  RTSP H264|   Blocked By:
  latency|
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Comment (by MB SOFT):

 because you forgot -vf setpts=0 in your commandline
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-trac] #10855(undetermined:new): Huge RTSP latency achieved over long time of streaming from specific IP camera

2024-02-11 Thread FFmpeg
#10855: Huge RTSP latency achieved over long time of streaming from specific IP
camera
-+-
 Reporter:  VincasD  |Owner:  (none)
 Type:  defect   |   Status:  new
 Priority:  normal   |Component:
 |  undetermined
  Version:  6.1  |   Resolution:
 Keywords:  RTSP H264|   Blocked By:
  latency|
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Changes (by VincasD):

 * Attachment "ffplay_shrinked.mp4" added.

 Demonstration of huge latency for IP camera
-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".