ozmartian / vidcutter

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

Unable to Add Videos to Queue #146

Open Rage-Quiff opened 6 years ago

Rage-Quiff commented 6 years ago

I have several files I am attempting to join together with VidCutter, rather than having to reencode them all with KDENlive or something else. All of the videos were recorded on my Pixel 2 XL using the OpenCamera app. The vidoes were all recorded in sequence, with the exact same settings. I can add any single one of them to VidCutter fine, but attempting to add more than one throws an error for all but the first: "Invalid media file. This is not a media file or the file may be corrupted."

For each file, the log shows: 2018-03-04 14:34 - vidcutter.libs.videoservice - INFO - attempting to test joining of "/media/dudeman/Storage/Videos/Mar 02/VID_20180302_191307.mp4" & "/media/dudeman/Storage/Videos/Mar 02/VID_20180302_192055.mp4"

I have no problem playing the files in VidCutter, nor in any other app. KDENlive works with them, but I just need to join them, not reencode them.

version: 5.5.0 (64 bit) build date: 07 Feb 2018 libmpv: 0.14.0 FFmpeg: 2.8.11-0ubuntu0.16.04.1 Python: 3.5.2 Qt: 5.7.1 PyQt: 5.8.2

File properties: General Complete name : /media/dudeman/Storage/Videos/Mar 02/VID_20180302_191307.mp4 Format : MPEG-4 Format profile : Base Media / Version 2 Codec ID : mp42 (isom/mp42) File size : 3.80 GiB Duration : 7mn 46s Overall bit rate : 70.0 Mbps Encoded date : UTC 2018-03-03 00:52:05 Tagged date : UTC 2018-03-03 00:52:05 com.android.version : 8.1.0 com.android.video.temporal_layers_count : Unknown kind of value!

Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L5.1 Format settings, CABAC : No Format settings, ReFrames : 1 frame Format settings, GOP : M=1, N=30 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 7mn 45s Source duration : 7mn 45s Bit rate : 69.9 Mbps Width : 2 688 pixels Height : 1 512 pixels Display aspect ratio : 16:9 Frame rate mode : Variable Frame rate : 30.000 fps Minimum frame rate : 4.730 fps Maximum frame rate : 40.053 fps Standard : NTSC Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.574 Stream size : 3.79 GiB (100%) Source stream size : 3.79 GiB (100%) Title : VideoHandle Language : English Encoded date : UTC 2018-03-03 00:52:05 Tagged date : UTC 2018-03-03 00:52:05 Color range : Full Color primaries : BT.601 NTSC Transfer characteristics : BT.601 Matrix coefficients : BT.601 mdhd_Duration : 465788

Audio ID : 2 Format : AAC Format/Info : Advanced Audio Codec Format profile : LC Codec ID : 40 Duration : 7mn 46s Bit rate mode : Constant Bit rate : 96.0 Kbps Channel(s) : 1 channel Channel positions : Front: C Sampling rate : 48.0 KHz Frame rate : 46.875 fps (1024 spf) Compression mode : Lossy Stream size : 5.33 MiB (0%) Title : SoundHandle Language : English Encoded date : UTC 2018-03-03 00:52:05 Tagged date : UTC 2018-03-03 00:52:05

Rockus2018 commented 6 years ago

You could try to update libmpv up to v0.22 through this PPA repository:

https://launchpad.net/~mc3man/+archive/ubuntu/mpv-tests

(tested with Linux Mint 18.3)

However, if you not scared about the command-line - you can use FFmpeg natively:

https://trac.ffmpeg.org/wiki/Concatenate

(tested with "Using intermediate files")

paillave commented 4 years ago

I face exactly the same issue on my ubuntu 19.04 with file made by OBS. I have the latest version of mpv. Actually, I face this with ANY video I want to add in the index, even if I add again the same video that was accepted the first time.

JohnDoe-JohnDoe commented 2 years ago

This issue is still not fixed. Using v6.0.5.1 on 3 different windows PC's. I can add only one file if the clip list is empty. Trying to add a second, or even the same clip again, ALWAYS results in "invalid media". If I already have some clips in the list I cannot add any files. So it is not possible to merge any clips.