Crash on loading mp4 from SMB network

What is your operating system?
linux Xubuntu 6.5.0-10-generic #10-Ubuntu SMP PREEMPT_DYNAMIC x86_64 x86_64 x86_64 GNU/Linux

What is your Shotcut version (see Help > About Shotcut)?
I tried the AppImage shotcut-linux-x86_64-230929.AppImage (v23.09.29)
And snap v23.10.07

(if it matters, also added system Qt version … what I found)

$ qmake --version
QMake version 3.1
Using Qt version 5.15.10 in /usr/lib/x86_64-linux-gnu
$ qmake-qt5 --version
qmake-qt5: command not found

Can you repeat the problem? If so, what are the steps?
I am trying to add an mp4 video to the playlist that plays e.g. in vlc.
The terminal there are these errors
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x56102c2b4600] All samples in data stream index:id [4:5] have zero duration, stream set to be discarded by default. Override using AVStream->discard or -discard for ffmpeg command.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x56102c2b4600] Packet corrupt (stream = 0, dts = 0).
[h264 @ 0x56102edd1300] Invalid NAL unit size (534266 > 64702).
[h264 @ 0x56102edd1300] missing picture in access unit with size 64712
[h264 @ 0x56102edd1300] Invalid NAL unit size (534266 > 64702).
[h264 @ 0x56102edd1300] Error splitting the input into NAL units.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x56102c2b4600] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none(tv, bt709), 2704x1520, 60016 kb/s): unspecified pixel format
Consider increasing the value for the ‘analyzeduration’ (0) and ‘probesize’ (5000000) options
Segmentation fault (core dumped)

(Where could I add the file?)

I have Hero 9 videos, but I do not reproduce this problem. You can upload the problem file to any cloud drive service that permits creating a share link. There are too many options to list. It is rare that someone can or will give you access to theirs to do it.

I did not experience any problem until this time with mp4 from gopro.
I am running on a new(er) kernel / linux distro this time.

If I look for a pattern: the files until ~130MB did import … while 2 bigger files (1 and 3GB) did crash.
Here I uploaded the file (1GB, enjoy ;o) )

starting the snap version prints (do I have to mind the libDeckLinkAPI.so message?):

libDeckLinkAPI.so: cannot open shared object file: No such file or directory
---
formats:
  - a64
  - ac3
  - adts
  - adx
  - aiff
  - alp
  - amr
  - amv
  - apm
  - apng
  - aptx
  - aptx_hd
  - argo_asf
  - argo_cvg
  - asf
  - ass
  - ast
  - asf_stream
  - au
  - avi
  - avif
  - avm2
  - avs2
  - avs3
  - bit
  - caf
  - cavsvideo
  - codec2
  - codec2raw
  - crc
  - dash
  - data
  - daud
  - dfpwm
  - dirac
  - dnxhd
  - dts
  - dv
  - eac3
  - f4v
  - ffmetadata
  - fifo
  - fifo_test
  - filmstrip
  - fits
  - flac
  - flv
  - framecrc
  - framehash
  - framemd5
  - g722
  - g723_1
  - g726
  - g726le
  - gif
  - gsm
  - gxf
  - h261
  - h263
  - h264
  - hash
  - hds
  - hevc
  - hls
  - ico
  - ilbc
  - image2
  - image2pipe
  - ipod
  - ircam
  - ismv
  - ivf
  - jacosub
  - kvag
  - latm
  - lrc
  - m4v
  - md5
  - matroska
  - matroska
  - microdvd
  - mjpeg
  - mlp
  - mmf
  - mov
  - mp2
  - mp3
  - mp4
  - mpeg
  - vcd
  - mpeg1video
  - dvd
  - svcd
  - mpeg2video
  - vob
  - mpegts
  - mpjpeg
  - mxf
  - mxf_d10
  - mxf_opatom
  - null
  - nut
  - obu
  - oga
  - ogg
  - ogv
  - oma
  - opus
  - alaw
  - mulaw
  - vidc
  - f64be
  - f64le
  - f32be
  - f32le
  - s32be
  - s32le
  - s24be
  - s24le
  - s16be
  - s16le
  - s8
  - u32be
  - u32le
  - u24be
  - u24le
  - u16be
  - u16le
  - u8
  - psp
  - rawvideo
  - rm
  - roq
  - rso
  - rtp
  - rtp_mpegts
  - rtsp
  - sap
  - sbc
  - scc
  - film_cpk
  - segment
  - stream_segment,ssegment
  - smjpeg
  - smoothstreaming
  - sox
  - spx
  - spdif
  - srt
  - streamhash
  - sup
  - swf
  - tee
  - 3g2
  - 3gp
  - mkvtimestamp_v2
  - truehd
  - tta
  - ttml
  - uncodedframecrc
  - vc1
  - vc1test
  - voc
  - w64
  - wav
  - webm
  - webm_dash_manifest
  - webm_chunk
  - webp
  - webvtt
  - wsaud
  - wtv
  - wv
  - yuv4mpegpipe
  - alsa
  - fbdev
  - oss
  - pulse
  - sdl,sdl2
  - sndio
  - video4linux2,v4l2
  - xv
...
---
audio_codecs:
  - comfortnoise
  - s302m
  - aac
  - ac3
  - ac3_fixed
  - alac
  - aptx
  - aptx_hd
  - dca
  - dfpwm
  - eac3
  - flac
  - g723_1
  - mlp
  - mp2
  - mp2fixed
  - nellymoser
  - opus
  - real_144
  - sbc
  - sonic
  - sonicls
  - truehd
  - tta
  - vorbis
  - wavpack
  - wmav1
  - wmav2
  - pcm_alaw
  - pcm_bluray
  - pcm_dvd
  - pcm_f32be
  - pcm_f32le
  - pcm_f64be
  - pcm_f64le
  - pcm_mulaw
  - pcm_s8
  - pcm_s8_planar
  - pcm_s16be
  - pcm_s16be_planar
  - pcm_s16le
  - pcm_s16le_planar
  - pcm_s24be
  - pcm_s24daud
  - pcm_s24le
  - pcm_s24le_planar
  - pcm_s32be
  - pcm_s32le
  - pcm_s32le_planar
  - pcm_s64be
  - pcm_s64le
  - pcm_u8
  - pcm_u16be
  - pcm_u16le
  - pcm_u24be
  - pcm_u24le
  - pcm_u32be
  - pcm_u32le
  - pcm_vidc
  - roq_dpcm
  - adpcm_adx
  - adpcm_argo
  - g722
  - g726
  - g726le
  - adpcm_ima_amv
  - adpcm_ima_alp
  - adpcm_ima_apm
  - adpcm_ima_qt
  - adpcm_ima_ssi
  - adpcm_ima_wav
  - adpcm_ima_ws
  - adpcm_ms
  - adpcm_swf
  - adpcm_yamaha
  - libmp3lame
  - libopus
  - libvorbis
  - anull
...
---
video_codecs:
  - a64multi
  - a64multi5
  - alias_pix
  - amv
  - apng
  - asv1
  - asv2
  - avrp
  - avui
  - ayuv
  - bitpacked
  - bmp
  - cfhd
  - cinepak
  - cljr
  - dnxhd
  - dpx
  - dvvideo
  - exr
  - ffv1
  - ffvhuff
  - fits
  - flashsv
  - flashsv2
  - flv
  - gif
  - h261
  - h263
  - h263p
  - huffyuv
  - jpeg2000
  - jpegls
  - ljpeg
  - magicyuv
  - mjpeg
  - mpeg1video
  - mpeg2video
  - mpeg4
  - msmpeg4v2
  - msmpeg4
  - msvideo1
  - pam
  - pbm
  - pcx
  - pfm
  - pgm
  - pgmyuv
  - phm
  - png
  - ppm
  - prores
  - prores_aw
  - prores_ks
  - qoi
  - qtrle
  - r10k
  - r210
  - rawvideo
  - roqvideo
  - rpza
  - rv10
  - rv20
  - sgi
  - smc
  - snow
  - speedhq
  - sunrast
  - svq1
  - targa
  - tiff
  - utvideo
  - v210
  - v308
  - v408
  - v410
  - vbn
  - vc2
  - wbmp
  - wrapped_avframe
  - wmv1
  - wmv2
  - xbm
  - xface
  - xwd
  - y41p
  - yuv4
  - zlib
  - zmbv
  - hdr
  - libaom-av1
  - libtheora
  - libvpx
  - libvpx-vp9
  - libwebp_anim
  - libwebp
  - libx264
  - libx264rgb
  - libx265
  - h263_v4l2m2m
  - h264_nvenc
  - h264_v4l2m2m
  - h264_vaapi
  - hevc_nvenc
  - hevc_v4l2m2m
  - hevc_vaapi
  - mjpeg_vaapi
  - mpeg2_vaapi
  - mpeg4_v4l2m2m
  - vp8_v4l2m2m
  - vp8_vaapi
  - vp9_vaapi
  - vnull

I tested with 16 of my GoPro Hero 9 videos ranging from 33 MB to 4 GB, all with no problems. My files also report

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x56102c2b4600] All samples in data stream index:id [4:5] have zero duration, stream set to be discarded by default. Override using AVStream->discard or -discard for ffmpeg command.

But not

mov,mp4,m4a,3gp,3g2,mj2 @ 0x56102c2b4600] Packet corrupt (stream = 0, dts = 0). [h264 @ 0x56102edd1300] Invalid NAL unit size (534266 > 64702). [h264 @ 0x56102edd1300] missing picture in access unit with size 64712 [h264 @ 0x56102edd1300] Invalid NAL unit size (534266 > 64702). [h264 @ 0x56102edd1300] Error splitting the input into NAL units. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x56102c2b4600] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none(tv, bt709), 2704x1520, 60016 kb/s):

That message means the file could not be decoded by the FFmpeg 6.0 libraries.

do I have to mind the libDeckLinkAPI.so message?

no

Here I uploaded the file

I downloaded it, and I did not reproduce any problem using shotcut-linux-x86_64-230929.AppImage. I was able to add it to Source, Playlist, and Timeline with no problem and play various sections of it. I ran Properties > menu > Start Integrity Check Job. It reported no problem in its log

ffmpeg version n6.0-35-g067ed535f4 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --disable-static --disable-doc --enable-gpl --enable-version3 --enable-shared --enable-runtime-cpudetect --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-libopus --enable-libzimg --enable-libdav1d --enable-libaom --disable-decoder=libaom_av1 --enable-libwebp --enable-libvmaf --enable-libjack --enable-libxcb --enable-libpulse --prefix=/root/shotcut/Shotcut/Shotcut.app
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55ec6db1db00] All samples in data stream index:id [4:5] have zero duration, stream set to be discarded by default. Override using AVStream->discard or -discard for ffmpeg command.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/ddennedy/Downloads/GH016956.MP4':
  Metadata:
    major_brand     : mp41
    minor_version   : 538120216
    compatible_brands: mp41
    creation_time   : 2023-11-18T13:54:20.000000Z
    firmware        : HD9.01.01.72.00
  Duration: 00:02:36.26, start: 0.000000, bitrate: 60262 kb/s
  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 2704x1520 [SAR 1:1 DAR 169:95], 60016 kb/s, 50 fps, 50 tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2023-11-18T13:54:20.000000Z
      handler_name    : GoPro AVC  
      vendor_id       : [0][0][0][0]
      encoder         : GoPro AVC encoder
      timecode        : 13:54:20:19
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
    Metadata:
      creation_time   : 2023-11-18T13:54:20.000000Z
      handler_name    : GoPro AAC  
      vendor_id       : [0][0][0][0]
      timecode        : 13:54:20:19
  Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2023-11-18T13:54:20.000000Z
      handler_name    : GoPro TCD        timecode        : 13:54:20:19
  Stream #0:3[0x4](eng): Data: bin_data (gpmd / 0x646D7067), 44 kb/s (default)
    Metadata:
      creation_time   : 2023-11-18T13:54:20.000000Z
      handler_name    : GoPro MET  
  Stream #0:4[0x5](eng): Data: none (fdsc / 0x63736466), 12 kb/s (default)
    Metadata:
      creation_time   : 2023-11-18T13:54:20.000000Z
      handler_name    : GoPro SOS  
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
  Stream #0:1 -> #0:1 (aac (native) -> pcm_s16le (native))
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
  Stream #0:4 -> #0:4 (copy)
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
  Metadata:
    major_brand     : mp41
    minor_version   : 538120216
    compatible_brands: mp41
    firmware        : HD9.01.01.72.00
    encoder         : Lavf60.3.100
  Stream #0:0(eng): Video: wrapped_avframe, yuvj420p(pc, bt709, progressive), 2704x1520 [SAR 1:1 DAR 169:95], q=2-31, 200 kb/s, 50 fps, 50 tbn (default)
    Metadata:
      creation_time   : 2023-11-18T13:54:20.000000Z
      handler_name    : GoPro AVC  
      vendor_id       : [0][0][0][0]
      timecode        : 13:54:20:19
      encoder         : Lavc60.3.100 wrapped_avframe  Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2023-11-18T13:54:20.000000Z
      handler_name    : GoPro AAC  
      vendor_id       : [0][0][0][0]
      timecode        : 13:54:20:19
      encoder         : Lavc60.3.100 pcm_s16le
  Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2023-11-18T13:54:20.000000Z
      handler_name    : GoPro TCD  
      timecode        : 13:54:20:19
  Stream #0:3(eng): Data: bin_data (gpmd / 0x646D7067), 44 kb/s (default)
    Metadata:
      creation_time   : 2023-11-18T13:54:20.000000Z
      handler_name    : GoPro MET  
  Stream #0:4(eng): Data: none (fdsc / 0x63736466), 12 kb/s (default)
    Metadata:
      creation_time   : 2023-11-18T13:54:20.000000Z
      handler_name    : GoPro SOS  
video:3661kB audio:29288kB subtitle:0kB other streams:1093kB global headers:0kB muxing overhead: unknown
Completed successfully in 00:00:19
1 Like

Dear Dan,
thanks so much for your time. It now started working for me as well.
My ‘current guess’ is that I was installing ffmpeg on my host system (apt install) today because I also wanted to check something there … that could have changed something… . I admit this probably does not make much sense as I was either running a snap image or the AppImage.
I feel guilty of wasting your time, but I could not reproduce the issue by removing ffmpeg (apt remove, so much for ‘the current guess’).

I appreciate your support~! Thank you ~!

Maybe I have another explanation: I pulled (drag&drop) in the file from a network drive (smb, that is my NAS)
With that I could reproduce the issue now again.
I will try mounting properly (that’s how I had it in the other linux installation~).

I regularly test and use SMB on Windows and macOS, but on Linux using NFS.

retested today again, back2back with NFS mount of the same file.
Crashes when I drag&drop (via thunar 4.18.7 to shotcut) from an smb mount.
But works if I drag&drop (also thunar) into shotcut from the NFS mount.

I tested over SMB on Ubuntu 22.04 (but not using thunar) using the file you provided, and it is working fine for me. Since the file is read OK from disk or NFS this suggests that the problem is not in Shotcut, MLT, or FFmpeg. These layers do not know that your file system is SMB or even on a network; they just use POSIX file APIs.