-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No recordings found m3u8 file not being saved/generated. #737
Comments
Do you have any files in the /segments folder? |
No. the /segments folder has empty sub-folders like /segments/camera_X for the configured camera. |
And you have no errors in the log when starting up Viseron? |
Here are some more debug logs [2024-05-01 14:39:45] [DEBUG ] [viseron.domains.camera.fragmenter.camera_2] - Checking for new segments to fragment The errors at [2024-05-01 14:39:50] [ERROR ] [viseron.watchdog.thread_watchdog] - Thread viseron.camera.camera_2 is dead, restarting - (Restarted camera to create a fresh batch of latest logs) Hope this helps. |
Your |
No, camera stream does not work without the raw command. Do I need to add additional parameters to the ffmpeg comm,and? |
Do you get any errors with the default command? |
No errors. The cursor just keeps spinning on the screen. I changed the raw command as below and sending you the latest debug info: ##The raw command used is: raw_command: ffmpeg -hide_banner -loglevel error -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts -use_wallclock_as_timestamps 1 -vsync 0 -timeout 5000000 -c:v h264_cuvid -rtsp_transport tcp -i rtsp://:@192.168.1.168:554/h264.mp4 -f segment -segment_time 5 -reset_timestamps 1 -strftime 1 -c:v copy /tmp/viseron/segments/camera_2/%s.mp4 -vf fps=1.0 -f rawvideo -pix_fmt nv12 pipe:1 ##DEBUG LOG: [2024-05-02 13:34:27] [DEBUG ] [viseron.states] - Setting state of binary_sensor.camera_2_motion_detected to state: on, attributes {'name': 'Kitchen Motion Detected', 'domain': 'binary_sensor'} There are no files in the segment/camera folder I am running docker as sudo. Does that impact anything? Is it a folder permissions issue? I tried to chmod the permissions to everyone, yet the problem persists. |
Update; root@37075a18c594:/segments/camera_2# Here below is the web developer console url calll response output The problem is that the clip is not being displayed in the player. The screen just has a spinning wheel in the center of the video js player. There are no errors reported in the browser console. Not sure yet of browser / video js issue? Yet, there no files in the /recordings folder. Once this is resolved and recordings appear intend to integrate mjpeg camera and go from there. |
Strange that it just keeps spinning. |
Where would create_event_clip: true go in the configuration? I went through all the docs and can't find that mentioned. |
You put it under ffmpeg:
camera:
camera_one:
name: Camera One
host: ...
port: ...
path: ...
recorder:
create_event_clip: true # <-- Here |
Thanks for this repository. Please review the following issue and your help to troubleshoot will be greatly appreciated.
Viseron 3.0.0.b3 docker image for linux_amd_64_gpu/cuda om Ubuntu + Nvidia GPU
Configured and can view the camera stream. Motion detection is working. Object detection not yet tested.
Issue arising when accessing the recordings. Clicking on splash/image returns error: The media could not be loaded.
debug info (truncated) follows:
[2024-04-30 15:39:54] [DEBUG ] [viseron.states] - Setting state of binary_sensor.camera_2_recorder to state: off, attributes {'name': 'Kitchen Recorder', 'domain': 'binary_sensor', 'id': 2285, 'start_time': datetime.datetime(2024, 4, 30, 20, 39, 45, 957117, tzinfo=datetime.timezone.utc), 'start_timestamp': 1714509585.957117, 'end_time': datetime.datetime(2024, 4, 30, 20, 39, 54, 473720, tzinfo=datetime.timezone.utc), 'end_timestamp': 1714509594.47372, 'date': '2024-04-30', 'path': '/recordings/camera_2/2024-04-30/20:39:45.mp4', 'filename': '20:39:45.mp4', 'thumbnail_path': '/thumbnails/camera_2/2285.jpg', 'objects': []}
[2024-04-30 15:39:54] [DEBUG ] [viseron.states] - Setting state of sensor.camera_2_operation_state to state: scanning_for_motion, attributes {'name': 'Kitchen Operation State', 'domain': 'sensor'}
Web debug:
[2024-04-30 15:40:05] [DEBUG ] [viseron.components.webserver.api.handlers] - Routing to HlsAPIHandler.get_recording_hls_playlist(*args=[], **kwargs={'camera_identifier': 'camera_2', 'recording_id': '2285'}, request_arguments={})
[2024-04-30 15:40:05] [ERROR ] [viseron.components.webserver.api.v1.hls] - Could not find init.mp4 file for camera camera_2
[2024-04-30 15:40:05] [WARNING ] [tornado.access] - 404 GET /api/v1/hls/camera_2/2285/index.m3u8 (64.135.196.78) 93.58ms
There are no mp4 file in the recordings/camera_2 folder
There is no index.m3u8 file to access as reflected in the logs.
thumbnail jpg files are being generated and show up in events page. But when clicked results in error mentioned above
##Camera configuration:
camera_2: # This value has to be unique across all cameras
name: Kitchen
host: <000.000.000.000>
port: 554
path: /h264.mp4
username:
password:
codec: h264_cuvid
audio_codec: aac
height: 1080
width: 1920
fps: 5
raw_command: ffmpeg -hide_banner -loglevel error -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts -use_wallclock_as_timestamps 1 -vsync 0 -c:v h264_cuvid -rtsp_transport tcp -i rtsp://user:pass@192.168.1.000:554/h264.mp4 -f rawvideo -pix_fmt nv12 pipe:1
Thanks for your help in advance.
The text was updated successfully, but these errors were encountered: