vidcutter
vidcutter copied to clipboard
Smarcut not working
I'm trying to cur a video using SmartCut but I get the following error:
2019-08-29 20:30 - vidcutter.libs.videoservice - INFO - /usr/bin/ffprobe -hide_banner -v error -show_packets -select_streams v -show_entries packet=pts_time,flags -of csv "/home/joan/x/Pop 3x1.mp4"
2019-08-29 20:30 - vidcutter.libs.videoservice - INFO - -v 32 -i "/home/joan/x/Pop 3x1.mp4" -ss 3.16 -t 0.0 -c:v libx264 -tune film -preset ultrafast -x264-params crf=23 -qp 0 -flags +cgop -c:a copy -c:s copy -map 0:0 -map 0:1 -avoid_negative_ts 1 -y "/tmp/vidcutter/Pop 3x1_EDIT_00_start_00.mp4"
2019-08-29 20:30 - vidcutter.libs.videoservice - INFO - -v error -ss 4.88 -t 1070.32 -i "/home/joan/x/Pop 3x1.mp4" -c copy -map 0:0 -map 0:1 -avoid_negative_ts 1 -y "/tmp/vidcutter/Pop 3x1_EDIT_00_middle_00.mp4"
2019-08-29 20:30 - vidcutter.libs.videoservice - INFO - -v 32 -i "/home/joan/x/Pop 3x1.mp4" -ss 1075.2 -t 3.480000000000018 -c:v libx264 -tune film -preset ultrafast -x264-params crf=23 -qp 0 -flags +cgop -c:a copy -c:s copy -map 0:0 -map 0:1 -avoid_negative_ts 1 -y "/tmp/vidcutter/Pop 3x1_EDIT_00_end_00.mp4"
2019-08-29 20:30 - vidcutter.libs.videoservice - INFO - SmartCut progress: {'start': True, 'middle': False, 'end': False}
2019-08-29 20:30 - vidcutter.libs.videoservice - INFO - SmartCut resulted in zero length file, trying again without all stream mapping
2019-08-29 20:30 - vidcutter.libs.videoservice - INFO - SmartCut progress: {'start': True, 'middle': False, 'end': False}
2019-08-29 20:30 - vidcutter.libs.videoservice - INFO - SmartCut resulted in zero length file, trying again without all stream mapping
2019-08-29 20:30 - root - CRITICAL - File "/usr/lib/python3/dist-packages/vidcutter/libs/videoservice.py", line 406, in smartcheck
self.smartcut_jobs[index].procs[name].started.disconnect()
2019-08-29 20:30 - root - CRITICAL - <class 'TypeError'>: disconnect() failed between 'started' and all its connections
My video file is 160Mb MP4 file using h264 as codec and 1280x720 resolution.
Without SmartCut I don't get the error, but due to the keyframes SmartCut is what I'm looking for.
Same on my side. The file to be cut is an MPEG2-TS
2019-12-25 15:52 - vidcutter.videocutter - INFO - source file is MPEG based so join via MPEG-TS
2019-12-25 15:52 - vidcutter.videocutter - INFO - MPEG-TS based join failed, will retry using standard concat
2019-12-25 15:52 - vidcutter.videocutter - INFO - join resulted in 0 length file, trying again without all stream mapping
2019-12-25 15:53 - root - CRITICAL - File "/usr/lib/python3.8/site-packages/vidcutter/videocutter.py", line 1361, in saveMedia
self.smartcutter(file, source_file, source_ext)
File "/usr/lib/python3.8/site-packages/vidcutter/videocutter.py", line 1406, in smartcutter
self.videoService.smartcut(index=index,
File "/usr/lib/python3.8/site-packages/vidcutter/libs/videoservice.py", line 331, in smartcut
bisections = self.getGOPbisections(source, start, end)
File "/usr/lib/python3.8/site-packages/vidcutter/libs/videoservice.py", line 588, in getGOPbisections
keyframes = self.getKeyframes(source)
File "/usr/lib/python3.8/site-packages/vidcutter/libs/videoservice.py", line 573, in getKeyframes
if line.split(',')[1] != 'N/A':
Also having problem with SmartCut and MP4. The saved clip comprising three parts: (1) Starting at selected position (Start Clip) with about 1 second re-encoded video as expected with smartcut. (2) followed by about 1 second black screen (while audio continues for another 0.5 seconds). (3) Continues from first Keyframe after 'Start Clip' with properly copying till the end of selection.
OK, since Github does not let me upload something like .txt or .zip (" Something went really wrong, and we can’t process that file."), I am appending the logfile section this way. "..." means removed for privacy. +++++++++++++++++++++++++++++++++++++++++ 2020-03-09 06:47 - vidcutter.libs.mpvwidget - INFO - [ffmpeg/video] h264: Failed setup for format dxva2_vld: hwaccel initialisation returned error. 2020-03-09 06:49 - vidcutter.libs.videoservice - INFO - C:\Users...\AppData\Local\Temp_MEI7282\bin\ffmpeg.exe -hide_banner -version 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - C:\Users...\AppData\Local\Temp_MEI7282\bin\ffprobe.exe -hide_banner -v error -show_packets -select_streams v -show_entries packet=pts_time,flags -of csv "D:/.../Inputvideo.mp4" 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - -v 32 -i "D:/.../Inputvideo.mp4" -ss 11.08 -t 0.9199999999999999 -c:v libx264 -tune film -preset ultrafast -x264-params crf=23 -qp 0 -flags +cgop -c:a copy -c:s copy -map 0:0 -map 0:1 -avoid_negative_ts 1 -y "C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00_start_00.mp4" 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - -v error -ss 14.0 -t 28.0 -i "D:/.../Inputvideo.mp4" -c copy -map 0:0 -map 0:1 -avoid_negative_ts 1 -y "C:\Users...\AppData\Local\Temp\vidcutter\D:/.../Inputvideo_EDIT_00_middle_00.mp4" 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - -v 32 -i "D:/.../Inputvideo.mp4" -ss 42.0 -t 0.7199999999999989 -c:v libx264 -tune film -preset ultrafast -x264-params crf=23 -qp 0 -flags +cgop -c:a copy -c:s copy -map 0:0 -map 0:1 -avoid_negative_ts 1 -y "C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00_end_00.mp4" 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - SmartCut progress: {'start': True, 'middle': False, 'end': False} 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - SmartCut progress: {'start': True, 'middle': True, 'end': False} 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - SmartCut progress: {'start': True, 'middle': True, 'end': True} 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - C:\Users...\AppData\Local\Temp_MEI7282\bin\ffmpeg.exe -hide_banner -i "C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00_middle_00.mp4" 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - smartcut files are MPEG based so join via MPEG-TS 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - C:\Users...\AppData\Local\Temp_MEI7282\bin\ffmpeg.exe -hide_banner -i "C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00_start_00.mp4" 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - C:\Users...\AppData\Local\Temp_MEI7282\bin\ffmpeg.exe -hide_banner -v error -i "C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00_start_00.mp4" -c copy -map 0 -bsf:v h264_mp4toannexb -f mpegts "C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00_start_00.ts" 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - C:\Users...\AppData\Local\Temp_MEI7282\bin\ffmpeg.exe -hide_banner -v error -i "C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00_middle_00.mp4" -c copy -map 0 -bsf:v h264_mp4toannexb -f mpegts "C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00_middle_00.ts" 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - C:\Users...\AppData\Local\Temp_MEI7282\bin\ffmpeg.exe -hide_banner -v error -i "C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00_end_00.mp4" -c copy -map 0 -bsf:v h264_mp4toannexb -f mpegts "C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00_end_00.ts" 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - C:\Users...\AppData\Local\Temp_MEI7282\bin\ffmpeg.exe -hide_banner -v error -i "concat:C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00_start_00.ts|C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00_middle_00.ts|C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00_end_00.ts" -c copy -bsf:a aac_adtstoasc "C:\Users...\AppData\Local\Temp\vidcutter\Inputvideo_EDIT_00.mp4" 2020-03-09 06:55 - vidcutter.libs.videoservice - INFO - C:\Users...\AppData\Local\Temp_MEI7282\bin\ffmpeg.exe -hide_banner -v error -i "D:/Temp/Inputvideo_EDIT.mp4" -map 0 -c copy -y "D:/Temp/Inputvideo_EDIT_FINAL.mp4"