VideoHelp Forum


Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!


Try StreamFab Downloader and download streaming video from Youtube, Netflix, Amazon! Download free trial.


+ Reply to Thread
Results 1 to 17 of 17
Thread
  1. Hello to everyone!!! i need some help!!
    I have some chinese cameras that use H265 codec for audio and video and i need to use a chinese app to see the video.
    The app is really small and inside the folder there are only two DLL for decoding.
    did someone help me to add this dll to ffmpeg? also in linux if is possible?
    I think i need the HW_H265dec_Win32D.dll
    From what i have seen seems that the audio si G711
    {"id":101,"enabled":true,"audioInputChannelID":1," codecType":"G.711alaw"}
    Thanks a lot
    Stefano
    Image Attached Files
    Last edited by wes93; 24th Dec 2020 at 06:55.
    Quote Quote  
  2. Please post a sample clip.

    No one is going to blindly load a DLL from some unnamed "Chinese Camera."
    Quote Quote  
  3. Thanks a lot for your reply.
    The dll is included in this app: https://support.zositech.com/hc/en-us/articles/115002996247-Ipcamsuite-V1-2-26-8

    I don't have understand at what i need to do the video
    Thanks a lot
    Stefano
    Quote Quote  
  4. Please post a sample clip or at least a MediaInfo report.

    Since these are apparently security cameras the files may also be encrypted.
    Quote Quote  
  5. Thanks again for yoru reply.
    I don't know if is correct because i don't have media file but a direct stream so i have do this:
    Part of log:
    C:\Users\Stefano.Pica\Desktop\ffmpeg>ffmpeg -headers "Authorization: Basic YWRtaW46" -i "http://192.168.0.52/livestream/11" lossless.mp4
    ffmpeg version N-100029-g040e989223 Copyright (c) 2000-2020 the FFmpeg developers
    built with gcc 9.3-win32 (GCC) 20200320
    configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --enable-shared --disable-static --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf --enable-vulkan --enable-libvorbis --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --enable-libglslang --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp
    libavutil 56. 60.100 / 56. 60.100
    libavcodec 58.113.100 / 58.113.100
    libavformat 58. 64.100 / 58. 64.100
    libavdevice 58. 11.103 / 58. 11.103
    libavfilter 7. 90.100 / 7. 90.100
    libswscale 5. 8.100 / 5. 8.100
    libswresample 3. 8.100 / 3. 8.100
    libpostproc 55. 8.100 / 55. 8.100
    [http @ 0000021ad45ff4c0] No trailing CRLF found in HTTP header. Adding it.
    [hevc @ 0000021ad4620d00] Invalid NAL unit 0, skipping.
    Last message repeated 85 times
    Input #0, hevc, from 'http://192.168.0.52/livestream/11':
    Duration: N/A, bitrate: N/A
    Stream #0:0: Video: hevc (Main), yuv420p(tv, bt470bg), 2304x1296, 15 fps, 15 tbr, 1200k tbn, 15 tbc
    Stream mapping:
    Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad4c50880] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [libx264 @ 0000021ad4932640] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0000021ad4932640] profile High, level 5.0, 4:2:0, 8-bit
    [libx264 @ 0000021ad4932640] 264 - core 161 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'lossless.mp4':
    Metadata:
    encoder : Lavf58.64.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(tv, bt470bg, progressive), 2304x1296, q=-1--1, 15 fps, 15360 tbn, 15 tbc
    Metadata:
    encoder : Lavc58.113.100 libx264
    Side data:
    cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
    [hevc @ 0000021ad469eb40] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad495eac0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad47600c0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad495eac0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad4c50880] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad47600c0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad469eb40] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad495eac0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad4c50880] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad47600c0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad469eb40] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad495eac0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad47600c0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad469eb40] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad4c50880] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad469eb40] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad495eac0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad47600c0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad4c50880] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad469eb40] Invalid NAL unit 0, skipping.
    Last message repeated 2 times
    [hevc @ 0000021ad495eac0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad4c50880] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad47600c0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad469eb40] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad495eac0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad4c50880] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad47600c0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad469eb40] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping..00 bitrate=N/A speed= 0x
    [hevc @ 0000021ad495eac0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad4c50880] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad47600c0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad469eb40] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad495eac0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad47600c0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad469eb40] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad4c50880] Invalid NAL unit 0, skipping.0.33 bitrate=12581.6kbits/s speed=0.253x
    Last message repeated 1 times
    [hevc @ 0000021ad469eb40] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad495eac0] Invalid NAL unit 0, skipping.
    Last message repeated 2 times
    [hevc @ 0000021ad47600c0] Invalid NAL unit 0, skipping.
    Last message repeated 2 times
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.0.86 bitrate=4839.7kbits/s speed=0.475x
    Last message repeated 1 times
    [hevc @ 0000021ad495eac0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad4c50880] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad47600c0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad469eb40] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad495eac0] Invalid NAL unit 0, skipping.
    [NULL @ 0000021ad4620d00] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad4c50880] Invalid NAL unit 0, skipping.
    [NULL @ 0000021ad4620d00] Invalid NAL unit 0, skipping.
    [hevc @ 0000021ad47600c0] Invalid NAL unit 0, skipping.
    [NULL @ 0000021ad4620d00] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [hevc @ 0000021ad47600c0] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
    [http @ 0000021ad45ff4c0] Stream ends prematurely at 7764309, should be 18446744073709551615
    [NULL @ 0000021ad4620d00] Invalid NAL unit 0, skipping.
    Last message repeated 2 times
    [NULL @ 0000021ad4620d00] missing picture in access unit with size 1496
    [hevc @ 0000021ad46705c0] Invalid NAL unit 0, skipping.
    Last message repeated 2 times
    http://192.168.0.52/livestream/11: I/O error
    Last message repeated 3 times
    frame= 1416 fps=8.7 q=-1.0 Lsize= 35184kB time=00:01:34.20 bitrate=3059.7kbits/s dup=9 drop=0 speed=0.579x
    video:35166kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.050217%
    [libx264 @ 0000021ad4932640] frame I:17 Avg QP:12.45 size:274203
    [libx264 @ 0000021ad4932640] frame P:409 Avg QP:19.76 size: 55882
    [libx264 @ 0000021ad4932640] frame B:990 Avg QP:27.48 size: 8578
    [libx264 @ 0000021ad4932640] consecutive B-frames: 6.3% 1.0% 1.5% 91.2%
    [libx264 @ 0000021ad4932640] mb I I16..4: 8.0% 79.2% 12.8%
    [libx264 @ 0000021ad4932640] mb P I16..4: 0.8% 4.8% 1.5% P16..4: 10.4% 3.7% 2.6% 0.0% 0.0% skip:76.2%
    [libx264 @ 0000021ad4932640] mb B I16..4: 0.0% 0.1% 0.1% B16..8: 8.9% 0.9% 1.0% direct: 0.5% skip:88.5% L0:43.3% L1:50.7% BI: 5.9%
    [libx264 @ 0000021ad4932640] 8x8 transform intra:70.1% inter:85.3%
    [libx264 @ 0000021ad4932640] coded y,uvDC,uvAC intra: 61.8% 27.3% 14.0% inter: 4.5% 2.0% 0.1%
    [libx264 @ 0000021ad4932640] i16 v,h,dc,p: 48% 25% 6% 21%
    [libx264 @ 0000021ad4932640] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 16% 12% 5% 5% 5% 6% 6% 7%
    [libx264 @ 0000021ad4932640] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 19% 9% 5% 8% 6% 7% 6% 5%
    [libx264 @ 0000021ad4932640] i8c dc,h,v,p: 67% 16% 14% 3%
    [libx264 @ 0000021ad4932640] Weighted P-Frames: Y:1.2% UV:0.5%
    [libx264 @ 0000021ad4932640] ref P L0: 71.0% 16.4% 10.0% 2.5% 0.1%
    [libx264 @ 0000021ad4932640] ref B L0: 88.2% 10.2% 1.6%
    [libx264 @ 0000021ad4932640] ref B L1: 95.2% 4.8%
    [libx264 @ 0000021ad4932640] kb/s:3051.64

    After this command i have this report in the lossless.mp4 file:
    ffmpeg -headers "Authorization: Basic YWRtaW46" -i "http://192.168.0.52/livestream/11" lossless.mp4
    Report:

    General
    Complete name : C:\Users\Stefano.Pica\Desktop\ffmpeg\lossless.mp4
    Format : MPEG-4
    Format profile : Base Media
    Codec ID : isom (isom/iso2/avc1/mp41)
    File size : 34.4 MiB
    Duration : 1 min 34 s
    Overall bit rate : 3 053 kb/s
    Writing application : Lavf58.64.100

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L5
    Format settings : CABAC / 4 Ref Frames
    Format settings, CABAC : Yes
    Format settings, Reference frames : 4 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 1 min 34 s
    Bit rate : 3 052 kb/s
    Width : 2 304 pixels
    Height : 1 296 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 15.000 FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.068
    Stream size : 34.3 MiB (100%)
    Writing library : x264 core 161
    Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=15 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
    Color range : Limited
    Color primaries : BT.601 PAL
    Transfer characteristics : BT.470 System B/G
    Matrix coefficients : BT.470 System B/G
    Codec configuration box : avcC
    Quote Quote  
  6. Using stream.socket.py in this page https://gist.github.com/maxious/c8915a436b532ab09e61bf937295a5d2 i have this files:
    VIDEO:
    General
    Complete name : C:\Users\Stefano.Pica\Desktop\ffmpeg\2020-12-28T10-23-48.325571-socket.h264
    Format : HEVC
    Format/Info : High Efficiency Video Coding
    File size : 3.30 MiB
    FileExtension_Invalid : hevc h265 265

    Video
    Format : HEVC
    Format/Info : High Efficiency Video Coding
    Format profile : Main@L5@Main
    Width : 2 304 pixels
    Height : 1 296 pixels
    Display aspect ratio : 16:9
    Frame rate : 15.000 FPS
    Standard : PAL
    Color space : YUV
    Chroma subsampling : 4:2:0 (Type 0)
    Bit depth : 8 bits
    Color range : Limited
    Color primaries : BT.601 PAL
    Transfer characteristics : BT.470 System B/G
    Matrix coefficients : BT.470 System B/G

    AUDIO:
    General
    Complete name : C:\Users\Stefano.Pica\Desktop\ffmpeg\2020-12-28T10-23-48.325571-socket.g711
    File size : 556 Bytes

    Probably i need to check and adjust the stream.socket.py
    Image Attached Files
    Last edited by wes93; 28th Dec 2020 at 04:32.
    Quote Quote  
  7. Other details from the camera:
    (ø'´£ªªÍgEº¼@?ü¡À¨8À¨PLq*ÏóÈ?gK…P$Session: 22
    Cseq: 1
    m=video 97 H265/90000/2304/1296
    m=audio 8 G711/8000/2
    Transport: RTP/AVP/TCP;unicast;hisiinterleaved=0-1;ssrc=00000016
    Quote Quote  
  8. When are you going to post a sample video from your camara?
    Quote Quote  
  9. Jagabo thanks a lot for your reply.
    I have seen that my camera have direct stream link, i have adapted the steam.socket.py so i have this two output files.
    The g711 is for audio and h265 for video, if i convert with SOX the g711 i have the soud but with noise. i have attached also the file converted is the Wav
    Image Attached Files
    Quote Quote  
  10. I was able to remux the "dump" file to MKV with ffmpeg:

    Code:
    ffmpeg -y -f:v hevc -i "both.dump" -f:a mulaw -ar 44100 -sample_fmt s16  -i "both.dump" -map 0:v -map 1:a -c copy output.mkv
    The video plays properly but the audio does not. That's the best I could do.
    Last edited by jagabo; 29th Dec 2020 at 17:55.
    Quote Quote  
  11. Thanks a lot for your reply!!
    Do you have some suggestion for the audio?
    Regards
    Stefano
    Quote Quote  
  12. The values I got for the audio came from ffprobe:
    Code:
    ffprobe -f:a mulaw both.dump
    
    Input #0, mulaw, from 'both.dump':
      Duration: 00:01:52.68, bitrate: 352 kb/s
        Stream #0:0: Audio: pcm_mulaw, 44100 Hz, 1 channels, s16, 352 kb/s
    But I was never able to get anything recognizable on playback. Even if ffmpeg reencoded the audio. I also tried using -f:a alaw and different sample rates.
    Quote Quote  
  13. So the only way is hacking the DLL i think
    Really thanks a lot for all your help
    Quote Quote  
  14. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    The wav and the g711 ile have the same duration and byte count. Is it possible that is the sound file? Potplayer plays the h265 file ok.
    Quote Quote  
  15. @Budman1
    Thanks a lot for your reply and help!!
    Yes the G711 is the audio and the WAV is the G711 file converted with Sox, but the problem is that there is some audio noise...
    Thanks again
    Stefano
    Quote Quote  
  16. Last edited by LZAA; 3rd Jan 2021 at 13:46.
    Quote Quote  
  17. Unfortunately the camera doesn’t have the RTSP protocol

    But thanks a lot for you help and suggestion
    Stefano
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!