-
-
Notifications
You must be signed in to change notification settings - Fork 457
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 audio processing in H.265 or H.264 stream creates error in player #864
Comments
Try to set the camera to a constant framerate (not adaptive) and a keyframe interval of 2 seconds. The audio with AAC will be played by the browser. |
After changing the settings in the camera you should re-run the wizard (or use the advanced setup). For the "I Frame Interval" I couldn't find any documentation what the number means in the EZVIZ Studio software. The "2" could be either 2 seconds or 2 frames. If this value represents the number of frames then it should be 40, i.e. double of the framerate. Please also provide the "Prozess Details" (the values of "Befehl" and "Banner") and the "Prozess Bericht" for further analysis. |
I have deleted all cams to clean off config of restreamer. A new cam was added using the assistant. Before that cam setup was modified to: I Frame Interval: 40 Video still does not play. In below reports I have replaced my public IP with: mysecret ########## ffmpeg -loglevel level+info -err_detect ignore_err -y -fflags +genpts -thread_queue_size 512 -probesize 5000000 -analyzeduration 5000000 -timeout 5000000 -rtsp_transport tcp -i rtsp://admin:[email protected]:554/Streaming/Channels/101 -dn -sn -map 0:0 -codec:v libx264 -preset:v ultrafast -b:v 4096k -maxrate:v 4096k -bufsize:v 4096k -r 25 -sc_threshold 0 -pix_fmt yuv420p -g 50 -keyint_min 50 -fps_mode auto -tune:v zerolatency -map 0:1 -codec:a copy -metadata title=http://mysecret:8080/465691a2-b3e2-4d2e-84f4-612bdaedf179/oembed.json -metadata service_provider=datarhei-Restreamer -f hls -start_number 0 -hls_time 2 -hls_list_size 6 -hls_flags append_list+delete_segments+program_date_time+temp_file -hls_delete_threshold 4 -hls_segment_filename http://admin:6ydrse06JXO3IG3TW4@localhost:8080/memfs/465691a2-b3e2-4d2e-84f4-612bdaedf179_output_0_%04d.ts -master_pl_name 465691a2-b3e2-4d2e-84f4-612bdaedf179.m3u8 -master_pl_publish_rate 2 -method PUT http://admin:6ydrse06JXO3IG3TW4@localhost:8080/memfs/465691a2-b3e2-4d2e-84f4-612bdaedf179_output_0.m3u8 ######### [info] ffmpeg version 6.1.1-datarhei Copyright (c) 2000-2023 the FFmpeg developers ########### 2025-01-08T13:08:12.000Z [info] Metadata: ################### { |
Upon adding a new network cam (video and audio) in restreamer player does not play HLS encoded video stream. Player throws message "The media could not be loaded, either because the server or network failed or because the format is not supported."
Cam was set up using the assistant. Assistant claims video source is compatible.
Removing the audio part in the cam configuration (No audio) makes the player play the HLS encoded video.
Steps to reproduce the behavior:
Expected behavior
I expect restreamer to encode video and audio correctly so the player does not stop on error
Screenshots
Additional context
######################################
Error
######################################
The media could not be loaded, either because the server or network failed or because the format is not supported.
######################################
Network cam make and model
#####################################
EZVIZ Smart Home Camera
Model: CS-C1C (1080p,H.265)
Max. Resolution: 1920 × 1080
Frame Rate Max: 25 fps; Self-Adaptive during network transmission
Video Compression: H.265
H.265 Type: Main Profile
Video Bit Rate: Ultra-HD; Hi-Def; Fluent. Adaptive bit rate.
Audio Bit Rate: Self-Adaptive
Max. Bitrate: 1 Mbps
##############################
Restreamer System Information
##############################
System:
Host: raspberrypi1 Kernel: 6.6.62+rpt-rpi-v8 arch: aarch64 bits: 64
Desktop: LabWC Distro: Debian GNU/Linux 12 (bookworm)
Machine:
Type: ARM System: Raspberry Pi 4 Model B Rev 1.5 details: N/A rev: c03115
serial: 10000000ce588361
CPU:
Info: quad core model: N/A variant: cortex-a72 bits: 64 type: MCP cache:
L2: 1024 KiB
Speed (MHz): avg: 1800 min/max: 600/1800 cores: 1: 1800 2: 1800 3: 1800
4: 1800
Graphics:
Device-1: bcm2711-hdmi0 driver: vc4_hdmi v: N/A
Device-2: bcm2711-hdmi1 driver: vc4_hdmi v: N/A
Device-3: bcm2711-vc5 driver: vc4_drm v: N/A
Display: wayland server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.9
compositor: LabWC driver: N/A
API: OpenGL v: 4.5 Mesa 23.2.1-1~bpo12+rpt3 renderer: llvmpipe (LLVM
15.0.6 128 bits)
Audio:
Device-1: bcm2711-hdmi0 driver: vc4_hdmi
Device-2: bcm2711-hdmi1 driver: vc4_hdmi
API: ALSA v: k6.6.62+rpt-rpi-v8 status: kernel-api
Server-1: PulseAudio v: 16.1 status: active
Network:
Device-1: bcm2835-mmc driver: mmc_bcm2835
IF: wlan0 state: up mac: d8:3a:dd:51:31:1f
Device-2: bcm2711-genet-v5 driver: bcmgenet
IF: eth0 state: up speed: 1000 Mbps duplex: full mac: d8:3a:dd:51:31:1e
IF-ID-1: docker0 state: up speed: 10000 Mbps duplex: unknown
mac: 02:42:77:b5:0c:48
IF-ID-2: vethd9176b3 state: up speed: 10000 Mbps duplex: full
mac: 1e:56:76:1f:67:cb
Bluetooth:
Device-1: pl011 driver: uart_pl011
Report: hciconfig ID: hci0 state: up address: D8:3A:DD:51:31:20 bt-v: 3.0
Device-2: pl011 driver: N/A
Drives:
Local Storage: total: 29.94 GiB used: 5.66 GiB (18.9%)
ID-1: /dev/mmcblk0 type: Removable model: SDCIT size: 29.94 GiB
Partition:
ID-1: / size: 28.9 GiB used: 5.59 GiB (19.3%) fs: ext4 dev: /dev/mmcblk0p2
Swap:
ID-1: swap-1 type: file size: 512 MiB used: 0 KiB (0.0%) file: /var/swap
Sensors:
System Temperatures: cpu: 46.3 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 212 Uptime: 28m Memory: 3.78 GiB used: 708.1 MiB (18.3%)
gpu: 76 MiB Shell: Bash inxi: 3.3.26
####################################
Docker version 27.4.1, build b9d17ea
####################################
###################################
ffmpeg version 5.1.6-0+deb12u1+rpt1 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
###################################
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e4de36cbcf2d datarhei/restreamer:rpi-latest "/core/bin/run.sh" 22 hours ago Up 32 minutes 0.0.0.0:1935->1935/tcp, :::1935->1935/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp, 0.0.0.0:8181->8181/tcp, :::8181->8181/tcp, 1936/tcp, 6000/udp restreamer
#####################################
ffprobe network camera (h.265 setting)plays audio on remote host
#####################################
ffprobe version 5.1.6-0+deb12u1+rpt1 Copyright (c) 2007-2024 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Input #0, rtsp, from 'rtsp://admin:[email protected]:554/':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1080, 20 fps, 20 tbr, 90k tbn
Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
#####################################
ffprobe network camera (h.264 setting)plays audio on remote host
#####################################
ffprobe version 5.1.6-0+deb12u1+rpt1 Copyright (c) 2007-2024 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --prefix=/usr --extra-version=0+deb12u1+rpt1 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
[rtsp @ 0x5583b0ceb0] Missing PPS in sprop-parameter-sets, ignoring
Input #0, rtsp, from 'rtsp://admin:[email protected]:554/':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, 20 fps, 20 tbr, 90k tbn
Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
The text was updated successfully, but these errors were encountered: