I tried to stream H264 video outside Niagara(attached file) Looks like it is 
running there:

Can you pls guide how to capture ffmpeg crash specific logs which we are facing 
in Niagara?


Regards,
Rahul


-----Original Message-----
From: ffmpeg-devel <ffmpeg-devel-boun...@ffmpeg.org> On Behalf Of Frank Plowman
Sent: Friday, November 22, 2024 11:37 PM
To: ffmpeg-devel@ffmpeg.org
Subject: [External] Re: [FFmpeg-devel] Crash in Niagara Workbench Streaming 
with FFmpeg 7.0.1+ (H.264 Codec) on Initial Attempts

WARNING: This message has originated from an External Source. This may be a 
phishing email that can result in unauthorized access to Honeywell systems. 
Please use proper judgment and caution when opening attachments, clicking 
links, scanning QR codes, or responding.

On 22/11/2024 15:07, Kumar, Rahul via ffmpeg-devel wrote:
> I am experiencing a crash in Niagara Workbench when streaming video with the 
> H.264 codec. The crash occurs during the first 3-4 attempts to initialize the 
> stream but then stabilizes afterward. This issue started after upgrading 
> FFmpeg from 6.0 to 7.0.1. Updating to 7.1 also did not resolve the issue.
>
> Steps to Reproduce:
> 1. Use Niagara Workbench configured with FFmpeg 7.0.1.
> 2. Attempt to stream video using the H.264 codec (MaxPro camera driver in 
> Niagara).
> 3. Observe crashes during the first few streaming attempts.
>
> Observations:
> * FFmpeg 6.0 works without crashes.
> * Logs suggest a potential issue in memory allocation or initialization 
> during early attempts.
> * Crash logs point to ntdll.dll, which might indicate heap corruption.
>
> Environment:
> * OS: Windows 10 Enterprise
> * Niagara Workbench Version: [Your Version]
> * FFmpeg Versions Tested: 6.0(working fine), 7.0.1(crashing),
> 7.1(crashing)
>
> Can you please suggest if any changes between FFmpeg 6.0 and 7.0.1 in the 
> H.264 codec or JNI integration could cause this behavior? Could this be 
> related to recently resolved issues like CVE-2024-7055 or others?
>
>
> Regards,
> Rahul Kumar,
> Honeywell

Hi Rahul,

Are you able to provide steps and/or bitstreams which reproduce this issue 
using FFmpeg alone and not in Niagara Workbench?  There are a number of reasons 
using FFmpeg 7.0.1 could crash this software which are not due to bugs in 
FFmpeg.  Most notably, does the software actually support FFmpeg 7?  This is a 
major version bump and so FFmpeg 7 is not
ABI- or API-compatible with FFmpeg 6.

All the best,
Frank

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with 
subject "unsubscribe".
Microsoft Windows [Version 10.0.19045.5011]
(c) Microsoft Corporation. All rights reserved.

C:\gitcode\ffmpeg\FFmpeg\ffmpeg_64\bin>ffmpeg --version
ffmpeg version n7.1 Copyright (c) 2000-2024 the FFmpeg developers
  built with Microsoft (R) C/C++ Optimizing Compiler Version 19.40.33811 for x64
  configuration: --prefix=ffmpeg_64/ --enable-shared 
--yasmexe='C:/c99/yasm-1.3.0-win64.exe' --target-os=win64 --arch=x86_64 
--toolchain=msvc
  libavutil      59. 39.100 / 59. 39.100
  libavcodec     61. 19.100 / 61. 19.100
  libavformat    61.  7.100 / 61.  7.100
  libavdevice    61.  3.100 / 61.  3.100
  libavfilter    10.  4.100 / 10.  4.100
  libswscale      8.  3.100 /  8.  3.100
  libswresample   5.  3.100 /  5.  3.100
Unrecognized option '-version'.
Error splitting the argument list: Option not found

C:\gitcode\ffmpeg\FFmpeg\ffmpeg_64\bin>ffmpeg -i sample_H264.mp4
ffmpeg version n7.1 Copyright (c) 2000-2024 the FFmpeg developers
  built with Microsoft (R) C/C++ Optimizing Compiler Version 19.40.33811 for x64
  configuration: --prefix=ffmpeg_64/ --enable-shared 
--yasmexe='C:/c99/yasm-1.3.0-win64.exe' --target-os=win64 --arch=x86_64 
--toolchain=msvc
  libavutil      59. 39.100 / 59. 39.100
  libavcodec     61. 19.100 / 61. 19.100
  libavformat    61.  7.100 / 61.  7.100
  libavdevice    61.  3.100 / 61.  3.100
  libavfilter    10.  4.100 / 10.  4.100
  libswscale      8.  3.100 /  8.  3.100
  libswresample   5.  3.100 /  5.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample_H264.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Big Buck Bunny, Sunflower version
    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
    composer        : Sacha Goedegebure
    encoder         : Lavf57.63.100
    comment         : Creative Commons Attribution 3.0 - 
http://bbb3d.renderfarming.net
    genre           : Animation
  Duration: 00:00:10.00, start: 0.000000, bitrate: 3999 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), 
yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 3996 kb/s, 30 fps, 30 tbr, 
15360 tbn (default)
      Metadata:
        handler_name    : VideoHandler
        vendor_id       : [0][0][0][0]
At least one output file must be specified

C:\gitcode\ffmpeg\FFmpeg\ffmpeg_64\bin>ffmpeg -re -i sample_H264.mp4 -f h264 
udp://127.0.0.1:1234
ffmpeg version n7.1 Copyright (c) 2000-2024 the FFmpeg developers
  built with Microsoft (R) C/C++ Optimizing Compiler Version 19.40.33811 for x64
  configuration: --prefix=ffmpeg_64/ --enable-shared 
--yasmexe='C:/c99/yasm-1.3.0-win64.exe' --target-os=win64 --arch=x86_64 
--toolchain=msvc
  libavutil      59. 39.100 / 59. 39.100
  libavcodec     61. 19.100 / 61. 19.100
  libavformat    61.  7.100 / 61.  7.100
  libavdevice    61.  3.100 / 61.  3.100
  libavfilter    10.  4.100 / 10.  4.100
  libswscale      8.  3.100 /  8.  3.100
  libswresample   5.  3.100 /  5.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample_H264.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Big Buck Bunny, Sunflower version
    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
    composer        : Sacha Goedegebure
    encoder         : Lavf57.63.100
    comment         : Creative Commons Attribution 3.0 - 
http://bbb3d.renderfarming.net
    genre           : Animation
  Duration: 00:00:10.00, start: 0.000000, bitrate: 3999 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), 
yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 3996 kb/s, 30 fps, 30 tbr, 
15360 tbn (default)
      Metadata:
        handler_name    : VideoHandler
        vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_mf))
Press [q] to stop, [?] for help
[h264_mf @ 0000000000493640] MFT name: 'H264 Encoder MFT'
Output #0, h264, to 'udp://127.0.0.1:1234':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Big Buck Bunny, Sunflower version
    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
    composer        : Sacha Goedegebure
    genre           : Animation
    comment         : Creative Commons Attribution 3.0 - 
http://bbb3d.renderfarming.net
    encoder         : Lavf61.7.100
  Stream #0:0(und): Video: h264, yuv420p(progressive), 1280x720 [SAR 1:1 DAR 
16:9], q=2-31, 200 kb/s, 30 fps, 30 tbn (default)
      Metadata:
        handler_name    : VideoHandler
        vendor_id       : [0][0][0][0]
        encoder         : Lavc61.19.100 h264_mf
[out#0/h264 @ 000000000046F040] video:529KiB audio:0KiB subtitle:0KiB other 
streams:0KiB global headers:0KiB muxing overhead: 0.000000%
frame=  300 fps= 32 q=-0.0 Lsize=     529KiB time=00:00:09.96 bitrate= 
434.9kbits/s speed=1.05x

C:\gitcode\ffmpeg\FFmpeg\ffmpeg_64\bin>
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to