python-ffmpeg-video-streaming icon indicating copy to clipboard operation
python-ffmpeg-video-streaming copied to clipboard

rtsp to file mp4 not work

Open sugizo opened this issue 1 year ago • 0 comments

Describe the bug rtsp url link to file mp4 not work

To Reproduce code

url = 'http://honjin1.miemasu.net/nphMotionJpeg?Resolution=320x240&Quality=Standard'
rtsp = ffmpeg_streaming.input(url)
output = 'rtsp_mp4.mp4'
rtsp_mp4 = rtsp.stream2file(Formats.h264() )
rtsp_mp4.output(output, async_run = False)

Expected behavior output file can be play either in IPython or media player, e.g. vlc

Screenshots executed in google colab can not play using ipython image

after download to local machine, it can't be play using vlc image

Local machine (please complete the following information):

  • OS : ubuntu jammy
  • FFMpeg : ffmpeg version 4.4.2-0ubuntu0.22.04.1
  • environment : google colab
  • python : 3.10.12
  • python-ffmpeg-video-streaming : 0.1.15

best regards

sugizo avatar Apr 05 '24 09:04 sugizo