ozmartian / vidcutter

A modern yet simple multi-platform video cutter and joiner.
GNU General Public License v3.0
1.79k stars 135 forks source link

vidcutter fails to save clips from some videos #192

Open ghost opened 6 years ago

ghost commented 6 years ago

"Your media file is ready! ... size: 0.0 B" -- and even an empty file doesn't appear.

https://i.imgur.com/dODTcym.png

The last lines in the console are

/usr/bin/ffmpeg -hide_banner -v error -ss 00:09:03.710 -t 00:01:57.701 -i "/home/opennota/party.mp4" -c copy -map 0:0 -map 0:1 -map 0:2 -map 0:3 -avoid_negative_ts 1 -copyinkf -y "/tmp/vidcutter/party_EDIT_00.mp4"
cut resulted in zero length file, trying again without all stream mapping
/usr/bin/ffmpeg -hide_banner -v error -ss 00:09:03.710 -t 00:01:57.701 -i "/home/opennota/party.mp4" -c copy -map 0:0 -map 0:1 -map 0:2 -map 0:3 -avoid_negative_ts 1 -copyinkf -y "/tmp/vidcutter/party_EDIT_00.mp4"

When I run the last line manually, ffmpeg prints the following:

[mp4 @ 0x560d5ec9d080] Could not find tag for codec none in stream #2, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

I use vidcutter 5.5.0 (linux/amd64)

MCCMikey commented 5 years ago

I have the same experience when using on MP2 videos created by WinFast PVR

Info says:

General

Complete name : //ccc1/h/VHS/Boxers 11.mpg Format : MPEG-PS File size : 1.97 GiB Duration : 44 min 59 s Overall bit rate mode : Variable Overall bit rate : 6 261 kb/s Writing library : ArcSoft MPEG-2 PAL

Video

ID : 224 (0xE0) Format : MPEG Video Format version : Version 2 Format profile : Main@Main Format settings : CustomMatrix / BVOP Format settings, BVOP : Yes Format settings, Matrix : Custom Format settings, GOP : M=3, N=12 Duration : 44 min 59 s Bit rate mode : Variable Bit rate : 5 912 kb/s Maximum bit rate : 7 000 kb/s Width : 720 pixels Height : 576 pixels Display aspect ratio : 4:3 Frame rate : 25.000 FPS Standard : PAL Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.570 Time code of first frame : 00:00:00:00 Time code source : Group of pictures header GOP, Open/Closed : Open Stream size : 1.86 GiB (94%) Writing library : ArcSoft MPEG-2 PAL Color primaries : BT.601 PAL Transfer characteristics : BT.470 System B, BT.470 System G Matrix coefficients : BT.470 System B, BT.470 System G

Audio

ID : 192 (0xC0) Format : MPEG Audio Format version : Version 1 Format profile : Layer 2 Duration : 44 min 59 s Bit rate mode : Constant Bit rate : 224 kb/s Channel(s) : 2 channels Sampling rate : 32.0 kHz Frame rate : 27.778 FPS (1152 SPF) Compression mode : Lossy Delay relative to video : -12 ms Stream size : 72.1 MiB (4%)

dodona2 commented 5 years ago

I confirm that vidcutter returns 0.0 bytes length 'converting' some .mp4 files. Usually I convert them to .avi and vidcutter succeeds.

Lysidas commented 5 years ago

Hello, Same trouble on Debian Stretch (stable) and Flatpak : ~$ flatpak run com.ozmartians.VidCutter --version VidCutter 6.0.0

I use mpeg-ts and mp4 files.

I have the following messages :

2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [cache] Seeking underlying stream: 826835448 -> 823687784 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [cache] Dropping cache at pos 825196672, cached range: 823687784-824081000. 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [cache] Seeking underlying stream: 824081000 -> 825196672 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [cache] Dropping cache at pos 824458772, cached range: 825196672-826638464. 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [cache] Seeking underlying stream: 826638464 -> 824458772 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [lavf] seek done 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [ffmpeg/video] h264: co located POCs unavailable 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [ffmpeg/video] h264: reference picture missing during reorder 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [ffmpeg/video] h264: Missing reference picture, default is 65652 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [ffmpeg/video] h264: mmco: unref short failure 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [ffmpeg/video] h264: reference picture missing during reorder 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [ffmpeg/video] h264: Missing reference picture, default is 65668 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [ffmpeg/video] h264: mmco: unref short failure 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [vd] Decoder format: 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264 (auto 0.000000/0.000000/0.000000) 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [cplayer] first video frame after restart shown 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [cplayer] starting audio playback 2019-01-19 17:50 - vidcutter.libs.mpvwidget - INFO - [cplayer] playback restart complete 2019-01-19 17:51 - vidcutter.libs.videoservice - INFO - /app/bin/ffmpeg -hide_banner -v error -ss 00:23:13.513 -t 00:03:56.880 -i "/run/user/1000/doc/e3407c5e/video_1.ts" -c copy -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -map 0:5 -map 0:6 -map 0:7 -avoid_negative_ts 1 -y "/tmp/vidcutter/cut1_00.ts" 2019-01-19 17:51 - root - CRITICAL - File "/app/lib/python3.5/site-packages/vidcutter/videocutter.py", line 1390, in saveMedia self.joinMedia(filelist) File "/app/lib/python3.5/site-packages/vidcutter/videocutter.py", line 1450, in joinMedia self.complete(True, filelist[-1]) File "/app/lib/python3.5/site-packages/vidcutter/videocutter.py", line 1458, in complete self.videoService.finalize(self.finalFilename) File "/app/lib/python3.5/site-packages/vidcutter/libs/videoservice.py", line 283, in finalize self.checkDiskSpace(source) File "/app/lib/python3.5/site-packages/vidcutter/libs/videoservice.py", line 162, in checkDiskSpace spacewarn = VCMessageBox('Warning', 'Disk space alert', warnmsg, self.parentWidget())

2019-01-19 17:51 - root - CRITICAL - <class 'AttributeError'>: 'VideoService' object has no attribute 'parentWidget'

Thank you for any help.

CyberMSX commented 5 years ago

I have the same problem with a MKV video!

ghost commented 4 years ago

It locks up as soon as you press "Save media" on macOS Catalina (I have given the app access to my folders). Very disappointing.