Forum Replies Created

  • Hi again,

    I have used following commands to record the video in order

    ffmpeg -f mjpeg -r 8 -i https://c-cam.uchicago.edu/mjpg/video.mjpg -vcodec mpeg4 -b 1000000 -r 8 video_file.avi

    Then I omitted the most of the flags and tried like this

    ffmpeg -f mjpeg -i https://c-cam.uchicago.edu/mjpg/video.mjpg video_file.avi

    But the problem is that the duration of recorded file is 9 seconds where as the actual recording time is around 2 minutes. I finally tried setpts filter that is supposed to insert the timestamps. The command is as follows

    ffmpeg -f mjpeg -i https://c-cam.uchicago.edu/mjpg/video.mjpg -vf "setpts=1*PTS" video_file.avi
    But result was still the same. Recording time was way more than video duration.

  • He Reuben,
    Thanks a lot for your interest. When i trid

    ffmpeg -rtsp_transport http -i rtsp://149.5.42.8:554/axis-media/media.amp?videocodec=h264

    it gave me following error

    rtsp://149.5.42.8:554/axis-media/media.amp?videocodec=h264: Input/output error

    I thought, I should first check “Rtsp over HTTP” for camera with direct link then i can step forward to include proxy but it failed at first step. I am attaching the wireshark trace for this command https://f1.creativecow.net/4392/ffmpegrequesttrace

  • Hi Reuben

    I have read https://sebsauvage.net/punching/ which is a tutorial to show how httptunnel works. It makes me feel that i’ll have to setup http tunnel and ssh server on each of our cameras that are behind proxy. Only then I would be able to tunnel the rtsp traffic through http from client computers (of course i’ll have to setup ssh and httptunnel client on client machines). This is not desirable. The axis cameras support Tunneled rtsp out of the box and we are able to run this on Windows media player with proxy enabled in IE. But, we would want to read the stream in ffmpeg so it could be stored and later showed to the user on demand. To see the detailed description of our problem please visit https://docs.google.com/document/d/1BU2qfcnazlDbu6q09-iurWhymzQlwd4-UckUrSb8tVE/edit

    thanks

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy