Skip to content
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

Smart Join seems to Fail #402

Open
TheFibonacciEffect opened this issue Jul 27, 2024 · 4 comments
Open

Smart Join seems to Fail #402

TheFibonacciEffect opened this issue Jul 27, 2024 · 4 comments

Comments

@TheFibonacciEffect
Copy link

TheFibonacciEffect commented Jul 27, 2024

When I cut a video and click on save media, I usually get a high CPU usage. Some progress is shown in the individual clips in the timeline at the bottom. However after some time the logs display this error and the CPU usage drops to 0. So the program does not seem to make any progress. I tried it first with a large video file (~1.3 GB) and after that didn't work I reduced the video file size to ~500 MB and tried again. After that didnt work, I tried again with a video of 30MB size.

2024-07-27 13:47 - vidcutter.libs.mpvwidget - INFO - [ffmpeg] AVHWDeviceContext: Cannot load libcuda.so.1
2024-07-27 13:47 - vidcutter.libs.mpvwidget - INFO - [ffmpeg] AVHWDeviceContext: Could not dynamically load CUDA
2024-07-27 13:47 - vidcutter.libs.mpvwidget - INFO - [ffmpeg/video] h264: Device does not support the VK_KHR_video_decode_queue extension!
2024-07-27 13:47 - vidcutter.libs.mpvwidget - INFO - [ffmpeg/video] h264: Failed setup for format vulkan: hwaccel initialisation returned error.
2024-07-27 13:47 - vidcutter.libs.mpvwidget - INFO - [ffmpeg] AVHWDeviceContext: Failed to initialise VAAPI connection: -1 (unknown libva error).
2024-07-27 13:47 - vidcutter.libs.mpvwidget - INFO - [ffmpeg] AVHWDeviceContext: Cannot load libcuda.so.1
2024-07-27 13:47 - vidcutter.libs.mpvwidget - INFO - [ffmpeg] AVHWDeviceContext: Could not dynamically load CUDA
2024-07-27 13:47 - vidcutter.libs.mpvwidget - INFO - [ffmpeg/video] h264_v4l2m2m: Could not find a valid device
2024-07-27 13:47 - vidcutter.libs.mpvwidget - INFO - [ffmpeg/video] h264_v4l2m2m: can't configure decoder
2024-07-27 13:47 - vidcutter.libs.mpvwidget - INFO - [vd] Could not open codec.
2024-07-27 13:49 - root - CRITICAL -   File "/usr/lib/python3.12/site-packages/vidcutter/libs/videoservice.py", line 418, in smartcheck
    self.smartjoin(index)
  File "/usr/lib/python3.12/site-packages/vidcutter/libs/videoservice.py", line 440, in smartjoin
    if self.isMPEGcodec(joinlist[1]):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/vidcutter/libs/videoservice.py", line 608, in isMPEGcodec
    codec = self.codecs(source)[0].lower()
            ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/vidcutter/libs/videoservice.py", line 268, in codecs
    acodec = re.search(r'Stream.*Audio:\s(\w+)', result).group(1)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2024-07-27 13:49 - root - CRITICAL - <class 'AttributeError'>: 'NoneType' object has no attribute 'group'
2024-07-27 13:49 - root - CRITICAL -   File "/usr/lib/python3.12/site-packages/vidcutter/libs/videoservice.py", line 418, in smartcheck
    self.smartjoin(index)
  File "/usr/lib/python3.12/site-packages/vidcutter/libs/videoservice.py", line 440, in smartjoin
    if self.isMPEGcodec(joinlist[1]):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/vidcutter/libs/videoservice.py", line 608, in isMPEGcodec
    codec = self.codecs(source)[0].lower()
            ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/vidcutter/libs/videoservice.py", line 268, in codecs
    acodec = re.search(r'Stream.*Audio:\s(\w+)', result).group(1)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2024-07-27 13:49 - root - CRITICAL - <class 'AttributeError'>: 'NoneType' object has no attribute 'group'
2024-07-27 13:49 - root - CRITICAL -   File "/usr/lib/python3.12/site-packages/vidcutter/libs/videoservice.py", line 418, in smartcheck
    self.smartjoin(index)
  File "/usr/lib/python3.12/site-packages/vidcutter/libs/videoservice.py", line 440, in smartjoin
    if self.isMPEGcodec(joinlist[1]):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/vidcutter/libs/videoservice.py", line 608, in isMPEGcodec
    codec = self.codecs(source)[0].lower()
            ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/vidcutter/libs/videoservice.py", line 268, in codecs
    acodec = re.search(r'Stream.*Audio:\s(\w+)', result).group(1)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2024-07-27 13:49 - root - CRITICAL - <class 'AttributeError'>: 'NoneType' object has no attribute 'group'

I use vidcutter 6.0.5.2-1 on arch without an nvidia GPU on Arch Linux.

@TheFibonacciEffect TheFibonacciEffect changed the title Smart Join seems to Fail for large videos Smart Join seems to Fail for large videos ~500 MB Jul 27, 2024
@TheFibonacciEffect TheFibonacciEffect changed the title Smart Join seems to Fail for large videos ~500 MB Smart Join seems to Fail Jul 27, 2024
@TheFibonacciEffect
Copy link
Author

The lines:

2024-07-27 13:47 - vidcutter.libs.mpvwidget - INFO - [ffmpeg/video] h264_v4l2m2m: can't configure decoder
2024-07-27 13:47 - vidcutter.libs.mpvwidget - INFO - [vd] Could not open codec.

might suggest that the encoding of the video is somehow not supported? Playing the Video in the UI seems to be fine.

@TheFibonacciEffect
Copy link
Author

Here are the Metadata Infos about the Video File:

General  
Complete name : /popos/home/caspar/Videos/dji-avata/teufelsberg/DJI_20240726202214_0073_D-500MB-30MB.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 28.8 MiB
Duration : 2 min 53 s
Overall bit rate : 1 396 kb/s
Frame rate : 59.940 FPS
Writing application : Lavf61.1.100

@TheFibonacciEffect
Copy link
Author

Video  
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High [email protected]
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 : 2 min 53 s
Bit rate : 1 351 kb/s
Maximum bit rate : 1 390 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.011
Stream size : 28.7 MiB (100%)
Writing library : x264 core 164 r3108 31e19f9
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=12 / lookahead_threads=2 / 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=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1351 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC

@TheFibonacciEffect
Copy link
Author

TheFibonacciEffect commented Jul 27, 2024

I will try #367 soon, maybe that fixes it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant