agsh / rtsp-ffmpeg

Node.js FFMpeg wrapper for streaming RTSP into MotionJPEG
MIT License
249 stars 84 forks source link

[Windows] Unrecognized option updatefirst #24

Closed Zombitch closed 6 years ago

Zombitch commented 6 years ago

Hello,

On windows plateform, running the provided example give the following error :

Unrecognized option updatefirst

Then if I comment the line , '-updatefirst', '1' on rtsp-ffmpeg.js I get another error :

Error: Trailing options were found on the commandline.

Any chance to get a fix for this please ?

Regards, Zombitch

agsh commented 6 years ago

Hi! Please try to put '-' argument last in the array.

Zombitch commented 6 years ago

Hey agsh !

According to the following ffmpeg patch 5737, updatefirst option has been removed and "replaced" by update. So it doesn't seem to be a windows problem, I was misled because it was working on my rpi (debian) with an "old" ffmpeg version but not on windows with the latest ffmpeg version.

In other words, replacing '-updatefirst', '1' by '-updatefirst', '1' works.

As the comment on the 5737 patch point out, update option should be used instead of udpatefirst , cause updatefirst is a redundant option to update. I'll do some tests on both of my computer and pull a request if tests are successful.

Regards, Zombitch