Replies: 5 comments 6 replies
-
|
I ran this probe: The json part of the output: "streams": [
{
"index": 0,
"codec_name": "h264",
"codec_long_name": "unknown",
"profile": "77",
"codec_type": "video",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"width": 1920,
"height": 1080,
"coded_width": 1920,
"coded_height": 1080,
"closed_captions": 0,
"film_grain": 0,
"has_b_frames": 0,
"sample_aspect_ratio": "1:1",
"display_aspect_ratio": "16:9",
"pix_fmt": "yuvj420p",
"level": 41,
"color_range": "pc",
"color_space": "bt709",
"color_transfer": "bt709",
"color_primaries": "bt709",
"chroma_location": "center",
"field_order": "progressive",
"refs": 1,
"is_avc": "false",
"nal_length_size": "0",
"r_frame_rate": "30/1",
"avg_frame_rate": "30/1",
"time_base": "1/90000",
"start_pts": 3000,
"start_time": "0.033333",
"bits_per_raw_sample": "8",
"extradata_size": 40,
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0,
"captions": 0,
"descriptions": 0,
"metadata": 0,
"dependent": 0,
"still_image": 0
}
}So I looked at where in the probe 1920x1088 was coming from as the json showed 1080: Note: I removed a bunch of what look like control characters so hopefully did not screw anything up. And later: So I figured maybe it is an issue with how my camera responds to a probe. So based on docs I tried to specify what I could of these values: However, the issue still occurs: Any ideas? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the information on ffprobe. Also, I did try forcing width/height but that does not seem to be the issue. I do see that there is difference in vainfo inside and outside the container. Inside Viserion container: On the host: The I am still investigating. Maybe it is a driver issue but not sure yet. |
Beta Was this translation helpful? Give feedback.
-
|
For debugging I modified my running container by installed more recent video drivers (kisak ppa). That seems to address the issue: If I kill ffmpeg it restarts without the error. Also, processor utilization is decreased. I am pretty sure the issue is the version of mesa gallium driver that is in the Viseron docker image. |
Beta Was this translation helpful? Give feedback.
-
|
I did these steps to debug what the issue might be. From this page I generally followed the steps "Method 2: Install Kisak-Mesa Stable PPA (Ubuntu 22.04 and 24.04 LTS)". I expect (but not confirmed) that more recent versions of Ubuntu include updated mesa libraries. If Viseron has plans to move to more recent Ubuntu than that may also address this issue. Also note that the issue may be specific to the driver version and my make/model of graphics card or something else equally esoteric. No one else seems to be complaining about this. I did these steps after getting a shell in the running Viseron docker container. For example, with After this Vierson restarts the ffmpeg process and appears to work as normal. I did not do any testing beyond looking at live view and generating a recording. Events seem to be captured as expected. I don't see the steps I took as the solution to the problem but more done trying to assess root cause. I can live with the (much) higher processor utilization. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for that option but I am thinking that since it is just me impacted it makes more sense to wait until a future switch to 24.04. I am not in a hurry and if performance starts to concern me I can do the update as needed on my side. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to get vaapi enabled in Viseron. Things looks good initially:
However, at end of Viseron initialization I get these errors:
Things are working (e.g. object detection and recording of events) however based on error it is without vaapi.
The video stream is 1920x1080 and not 1920x1088. I am basing this on output of
mediainfowith streams recorded directly off the camera. Also, all the captured screen shots from Viseron are 1920x1080.So it seems like maybe there is something going wrong with ffmpeg probing? To bypass the probe here is the current ffmpeg section of my config:
Per the documentation it should be possible to supply the information gathered by the probe. However, I have not been able to provide a value for codec that results in the camera working in Viseron. It shows offline and there is nothing obvious in the logs.
What is the next step to diagnose this? I can provide my full config if that is relevant.
Beta Was this translation helpful? Give feedback.
All reactions