Help for enyone trying to use nvenc with Motion #1845
Replies: 3 comments
-
Thanks for sharing your work. |
Beta Was this translation helpful? Give feedback.
-
Also note, that as an alternative you can switch to |
Beta Was this translation helpful? Give feedback.
-
I'll have to fix the tab vs space thing later. Classic case of "things look ok in my editor :) The backstory is I was really trying to fix MotionEye. In their web based GUI, there is the ability to select the codec to use. Both nvenc options were broken. My goal was to make those work and that's what led me to explore the Motion code. And that's the reason I set up the structure I did. MotionEye has settings for QSV which has totally different options form either the 'vanilla' h.264 and HEVC encoders as well as the nvenc encoders for those formats as well. I ran into issues that made me give up for now but I left the accommodations in my fork. And I honestly expected a Motion maintainer to create a 'proper' patch before I was informed the code has been frozen has been frozen for a little while. Feel free to make whatever changes you see fit. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/mattlazarowitz/motion
I'm putting this here so someone searching for help on this in the future will hopefully find this.
Background:
I'm using MotionEye for my camera project. I'm running on a PC with a Quadro P640 in it. I was getting stuttery video files so I wanted to try a different encoder.
I found nvenc was broken, In my logs I saw this:
[INF] [ENC] ffmpeg_avcodec_log: Undefined constant or missing '(' in 'ultrafast'
I was able to trace this down to codec parameters being supplied by Motion to FFMPEG.
I was able to update the Motion code to resolve this (at least for my system).
Motion will not see any further development so to use this fix, you will need to download and build this fork yourself. It builds the same was as he Motion code.
I don't know if there is much of an audience for this, but here is a fix in the event you are running Motion on a PC and need nvenc support.
Beta Was this translation helpful? Give feedback.
All reactions