-
|
Encountered this when changing configs and no tweak or workaround has been found so asking here. Current documentation says movie_codec is: "Container/Codec to be used for the video," with mkv as the default. Using with movie_passthrough on and netcam_high_url set, documentation states the stream will be "processed into the movie file without going through the decode/encode processing." Further assurance of this (with the accompanying lower CPU usage) is given in the following few lines. Before enabling passthrough and highres (the old name), mkv files were output as expected. After, it doesn't matter whether mkv is specified explicitly or left to default, the wrapper used is mp4, not mkv. Trivial, because the video part is interchangeable with either format? Well, yes, except in my case the audio stream is pcm_alaw, which comes thru fine with mkv but is not supported at all in mp4. For reference, ffmpeg does a fine (and instantaneous) job putting the rtsp stream segments into mkv containers, incl the audio as-supplied (-c copy). So does this highlight a bug? Or at least a discrepancy between the documentation and program? For now I'm batch renaming the mp4 files to mkv before playing (w/ no audio). Motion does such a great job at what it does, it'd be nice to see this fixed. TLDR:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Actually I think that there is a log message indicating that pass through mode is enabled and it is changing to MP4 To your main point. Yes, MP4 was the required container for passthrough mode in version 4.7 and prior. |
Beta Was this translation helpful? Give feedback.
-
|
Great to know it's already done, thank you. Marked your post as the answer. Then last on this: Any link to the 5.0 download? If still in beta, I'd be happy to test. (To keep from going OT, I'll submit a new question on permissions.) |
Beta Was this translation helpful? Give feedback.
In V5 pass through mode will do mov, mkv and mp4. (There are however still some remaining PTS/DTS problems that occasionally pop up that I've not resolved).
Regarding the 'ffmpeg permission denied', review your log. This is all specific to the individual setup not Motion. The log message in that issues shows the following...
[1:ml1:Facade] [ERR] [ENC] [Mar 25 13:23:16] ffmpeg_set_outputfile: Permission denied. /mnt/element/Facade_002_2024-03-25_13-23-16.mkv: Permission deniedwhich indicates the user running Motion does not have the linux permissions to write a file to
/mnt/element/so the resolution is to either change the permissions of that directory so that the user running Motion can…