Closed mhmdcs closed 5 years ago
I can confirm for Windows 10 64-bit using LosslessCut 2.2.0.
Not sure if it matters, but note that I have installed FFmpeg manually in the past:
$ ffmpeg -version
ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.3.1 (GCC) 20190414
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Same here, previous version works fine with said file. EDIT: scratch that, in my case it was due to running out of space, still, the error should reflect the actual reason why it couldn't complete the operation.
EDIT again: it works for me in master. fixed in https://github.com/mifi/lossless-cut/issues/144. (note to self, always try running master before diving in the code... or rather, read the commit list, it is right there :). Thank you.)
Same here on 2.2.0. These files used to work (and still work) with v1.14.
stderr: ffmpeg version 4.1.3-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5b4f4c0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 3003
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5b4f4c0] st: 0 edit list 1 Cannot find an index entry before timestamp: 3003.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5b4f4c0] Referenced QT chapter track not found
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/jean/Pictures/P5250370.MOV':
Metadata:
major_brand : qt
minor_version : 537986816
compatible_brands: qt
creation_time : 2019-05-25T09:57:58.000000Z
Duration: 00:00:58.56, start: 0.000000, bitrate: 29900 kb/s
Stream #0:0(jpn): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080 [SAR 1:1 DAR 16:9], 28278 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
Metadata:
creation_time : 2019-05-25T09:57:58.000000Z
timecode : 10:46:33;20
Stream #0:1(jpn): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
creation_time : 2019-05-25T09:57:58.000000Z
timecode : 10:46:33;20
Stream #0:2(jpn): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2019-05-25T09:57:58.000000Z
timecode : 10:46:33;20
[mp4 @ 0x5b56640] Could not find tag for codec pcm_s16le in stream #1, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
EDIT: in my case, it seems ffmpeg is now more strict in what in allows when using -f mp4
.
removing that option or using -f mov
lets the conversion succeed and the resulting file works:
$ LosslessCut-linux-x64-2.2.0/resources/app.asar.unpacked/ffmpeg/ffmpeg -i /home/jean/Pictures/P5250378.MOV -t 29.7087 -acodec copy -vcodec copy -scodec copy -map_metadata 0 -y /home/jean/Pictures/P5250378.MOV-00.00.00.000-00.00.29.708.MOV
ffmpeg version 4.1.3-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5e6b3c0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 3003
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5e6b3c0] st: 0 edit list 1 Cannot find an index entry before timestamp: 3003.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5e6b3c0] Referenced QT chapter track not found
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/jean/Pictures/P5250378.MOV':
Metadata:
major_brand : qt
minor_version : 537986816
compatible_brands: qt
creation_time : 2019-05-25T10:43:40.000000Z
Duration: 00:01:32.09, start: 0.000000, bitrate: 29726 kb/s
Stream #0:0(jpn): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080 [SAR 1:1 DAR 16:9], 28135 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
Metadata:
creation_time : 2019-05-25T10:43:40.000000Z
timecode : 10:58:34;12
Stream #0:1(jpn): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
creation_time : 2019-05-25T10:43:40.000000Z
timecode : 10:58:34;12
Stream #0:2(jpn): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2019-05-25T10:43:40.000000Z
timecode : 10:58:34;12
Output #0, mov, to '/home/jean/Pictures/P5250378.MOV-00.00.00.000-00.00.29.708.MOV':
Metadata:
major_brand : qt
minor_version : 537986816
compatible_brands: qt
creation_time : 2019-05-25T10:43:40.000000Z
encoder : Lavf58.20.100
Stream #0:0(jpn): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 28135 kb/s, 0.03 fps, 29.97 tbr, 90k tbn, 90k tbc (default)
Metadata:
creation_time : 2019-05-25T10:43:40.000000Z
timecode : 10:58:34;12
Stream #0:1(jpn): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
creation_time : 2019-05-25T10:43:40.000000Z
timecode : 10:58:34;12
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 892 fps=0.0 q=-1.0 Lsize= 108101kB time=00:00:29.69 bitrate=29820.6kbits/s speed= 423x
video:102503kB audio:5570kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.024906%
So it works in 2.2.0? or only in master? I thought that commit was included in 2.2.0
Ahh you're right, i commited that AFTER the release. will release a 2.3.0
Thanks for the new release. Sorry for the confusion, I edited my message after I posted it initially and the result wasn't really clear.
Does it work in 2.3.0, so we can close this?
I have the same problem with 2.3.0 with 100 Mbit mp4 files from the Sony A6400. VLC says the Codec is: H264 - MPEG-4 AVC (part 10) (avc1) Resolution: 3840x2160 Framerate: 25 Here is a video file to reproduce it: https://drive.google.com/drive/folders/1cbKgALhTLM33NTvXRr3VOey7orUOOqgA?usp=sharing
I am having the same issue on v2.3.0 Sony FDR-AX700 4k/30p 100Mbps
Doesn't work in 2.3.0
ffmpeg -ss 2 -i /xxx/GOPR0883.MP4 -t 3 -avoid_negative_ts make_zero -acodec copy -vcodec copy -scodec copy -map 0 -map_metadata 0 -ignore_unknown -write_tmcd 0 -f mp4 -y /xxx/GOPR0883.MP4.1
ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9 (GCC)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55885ca60c80] unsupported color_parameter_type aclc
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/xxx/GOPR0883.MP4':
Metadata:
major_brand : avc1
minor_version : 0
compatible_brands: avc1isom
creation_time : 2014-03-20T22:25:45.000000Z
firmware : HD3.20.01.09
Duration: 00:00:13.98, start: 0.000000, bitrate: 15637 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], 15214 kb/s, 50 fps, 50 tbr, 50k tbn, 100 tbc (default)
Metadata:
creation_time : 2014-03-20T22:25:45.000000Z
handler_name : Ambarella AVC
encoder : Ambarella AVC encoder
timecode : 22:25:45:00
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2014-03-20T22:25:45.000000Z
handler_name : Ambarella AAC
timecode : 22:25:45:00
Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2014-03-20T22:25:45.000000Z
timecode : 22:25:45:00
[mp4 @ 0x55885ca75000] 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
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Last message repeated 1 times
Replacing -f mp4
by -f mov
, as @jraby suggested, worked for me too.
I have implemented in the latest version an option to choose output format. See also https://github.com/mifi/lossless-cut/issues/173
Hello! Today I encountered this error while trying to cut a file. File is too large to share so I'll copy/post the console.
"Whoops! ffmpeg was unable to cut this video. It may be of an unknown format or codec combination"