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

This file can't cut or merge #1900

Open
4 tasks done
Silver-Fang opened this issue Feb 21, 2024 · 1 comment
Open
4 tasks done

This file can't cut or merge #1900

Silver-Fang opened this issue Feb 21, 2024 · 1 comment
Labels
bug ffmpeg Problem resides in ffmpeg or usage of ffmpeg

Comments

@Silver-Fang
Copy link

The fewer issues I have to read, the more new features I will have time to implement, so I ask that you please try these things first

Steps to reproduce

[光の影字幕组][牙狼 -魔戒之花-][22][番犬][繁日双语][x265(VFR)_FLAC][1080p][BDRip][HEVC][4A10D01F]-proj.zip

Expected behavior

Cut & merge

Actual behavior

Failed

Provide an error report

Error: Command failed with exit code 1: D:\OneDrive - 翁悸会\下载\LosslessCut-win-x64\resources\ffmpeg.exe -hide_banner -ss 101.03400 -i C:\Users\vhtmf\Videos\牙狼-魔戒之花[光の影字幕组][牙狼 -魔戒之花-][22][番犬][繁日双语][x265(VFR)_FLAC][1080p][BDRip][HEVC][4A10D01F].mkv -t 4.67200 -avoid_negative_ts auto -map 0:0 -c:0 copy -map 0:1 -c:1 copy -map_metadata 0 -default_mode infer_no_subs -ignore_unknown -f matroska -y C:\Users\vhtmf\Videos\牙狼-魔戒之花[光の影字幕组][牙狼 -魔戒之花-][22][番犬][繁日双语][x265(VFR)_FLAC][1080p][BDRip][HEVC][4A10D01F]-00.01.41.034-00.01.45.706-seg1.mkv
[hevc @ 00000247f51ada80] Invalid default display window
Input #0, matroska,webm, from 'C:\Users\vhtmf\Videos\牙狼-魔戒之花[光の影字幕组][牙狼 -魔戒之花-][22][番犬][繁日双语][x265(VFR)_FLAC][1080p][BDRip][HEVC][4A10D01F].mkv':
Metadata:
encoder : libebml v1.3.0 + libmatroska v1.4.1
creation_time : 2015-02-19T02:50:09.000000Z
Duration: 00:24:01.05, start: 0.000000, bitrate: 3966 kb/s
Stream #0:0(jpn): Video: hevc (Main), yuv420p(tv), 1920x1080, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 1k tbn (default)
Stream #0:1(jpn): Audio: flac, 48000 Hz, stereo, s32 (24 bit) (default)
[out#0/matroska @ 00000247f51b2740] Could not write header (incorrect codec parameters ?): Invalid data found when processing input
[aost#0:1/copy @ 00000247f5421840] Error initializing output stream:
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Last message repeated 1 times
at makeError (D:\OneDrive - 翁悸会\下载\LosslessCut-win-x64\resources\app.asar\node_modules\execa\lib\error.js:60:11)
at handlePromise (D:\OneDrive - 翁悸会\下载\LosslessCut-win-x64\resources\app.asar\node_modules\execa\index.js:118:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

{
"err": {
"killed": false,
"failed": true,
"timedOut": false,
"isCanceled": false,
"exitCode": 1
},
"state": {
"ffmpegExperimental": false,
"preserveMovData": false,
"movFastStart": false,
"preserveMetadataOnMerge": false,
"filePath": "C:\Users\vhtmf\Videos\牙狼-魔戒之花\[光の影字幕组][牙狼 -魔戒之花-][22][番犬][繁日双语][x265(VFR)_FLAC][1080p][BDRip][HEVC][4A10D01F].mkv",
"fileFormat": "matroska",
"externalFilesMeta": {},
"mainStreams": [
{
"index": 0,
"codec_name": "hevc",
"codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)",
"profile": "Main",
"codec_type": "video",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"width": 1920,
"height": 1080,
"coded_width": 1920,
"coded_height": 1080,
"closed_captions": 0,
"film_grain": 0,
"has_b_frames": 2,
"sample_aspect_ratio": "1:1",
"display_aspect_ratio": "16:9",
"pix_fmt": "yuv420p",
"level": 120,
"color_range": "tv",
"chroma_location": "left",
"refs": 1,
"r_frame_rate": "30000/1001",
"avg_frame_rate": "30000/1001",
"time_base": "1/1000",
"start_pts": 0,
"start_time": "0.000000",
"extradata_size": 107,
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0,
"captions": 0,
"descriptions": 0,
"metadata": 0,
"dependent": 0,
"still_image": 0
},
"tags": {
"language": "jpn"
}
},
{
"index": 1,
"codec_name": "flac",
"codec_long_name": "FLAC (Free Lossless Audio Codec)",
"codec_type": "audio",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"sample_fmt": "s32",
"sample_rate": "48000",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"initial_padding": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/1000",
"start_pts": 0,
"start_time": "0.000000",
"bits_per_raw_sample": "24",
"extradata_size": 34,
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0,
"captions": 0,
"descriptions": 0,
"metadata": 0,
"dependent": 0,
"still_image": 0
},
"tags": {
"language": "jpn"
}
}
],
"copyStreamIdsByFile": {
"C:\Users\vhtmf\Videos\牙狼-魔戒之花\[光の影字幕组][牙狼 -魔戒之花-][22][番犬][繁日双语][x265(VFR)_FLAC][1080p][BDRip][HEVC][4A10D01F].mkv": {
"0": true,
"1": true
}
},
"cutSegments": [
{
"start": 101.034,
"end": 105.706
},
{
"start": 110.01,
"end": 116.616
},
{
"start": 551.718,
"end": 565.698
},
{
"start": 1033.466,
"end": 1036.269
},
{
"start": 1040.673,
"end": 1100.032
},
{
"start": 1102.134,
"end": 1113.98
},
{
"start": 1122.288,
"end": 1132.398
}
],
"mainFileFormatData": {
"filename": "C:\Users\vhtmf\Videos\牙狼-魔戒之花\[光の影字幕组][牙狼 -魔戒之花-][22][番犬][繁日双语][x265(VFR)_FLAC][1080p][BDRip][HEVC][4A10D01F].mkv",
"nb_streams": 2,
"nb_programs": 0,
"format_name": "matroska,webm",
"format_long_name": "Matroska / WebM",
"start_time": "0.000000",
"duration": "1441.045000",
"size": "714531550",
"bit_rate": "3966741",
"probe_score": 100,
"tags": {
"encoder": "libebml v1.3.0 + libmatroska v1.4.1",
"creation_time": "2015-02-19T02:50:09.000000Z"
}
},
"rotation": 360,
"shortestFlag": false,
"effectiveExportMode": "merge",
"outSegTemplate": "${FILENAME}-${CUT_FROM}-${CUT_TO}${SEG_SUFFIX}${EXT}"
},
"platform": "win32",
"version": "3.59.1"
}

Share the file

https://lamiaceae-my.sharepoint.cn/:v:/g/personal/homosapiens_lamiaceae_partner_onmschina_cn/EXeK_tKxks1Ok5mXFZB__l0BvGEsZA-pX2zj4vexGD6bOA?e=ofQ0dD

Share log from developer tools

No response

@mifi mifi added bug ffmpeg Problem resides in ffmpeg or usage of ffmpeg labels Feb 21, 2024
@mifi
Copy link
Owner

mifi commented Feb 21, 2024

I tried to reduce it down to this simple command with the newest ffmpeg:

ffmpeg -i '[光の影字幕组][牙狼 -魔戒之花-][22][番犬][繁日双语][x265(VFR)_FLAC][1080p][BDRip][HEVC][4A10D01F].mkv' -map '0:0' '-c:0' copy -y 'out.mkv'
ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
  built with Apple clang version 15.0.0 (clang-1500.1.0.2.5)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.1.1_3 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopenvino --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
[hevc @ 0x130f06950] Invalid default display window
Input #0, matroska,webm, from '[光の影字幕组][牙狼 -魔戒之花-][22][番犬][繁日双语][x265(VFR)_FLAC][1080p][BDRip][HEVC][4A10D01F].mkv':
  Metadata:
    encoder         : libebml v1.3.0 + libmatroska v1.4.1
    creation_time   : 2015-02-19T02:50:09.000000Z
  Duration: 00:24:01.05, start: 0.000000, bitrate: 3966 kb/s
  Stream #0:0(jpn): Video: hevc (Main), yuv420p(tv), 1920x1080, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 1k tbn (default)
  Stream #0:1(jpn): Audio: flac, 48000 Hz, stereo, s32 (24 bit) (default)
[out#0/matroska @ 0x600001e786c0] Could not write header (incorrect codec parameters ?): Invalid data found when processing input
Error opening output file out.mkv.
Error opening output files: Invalid data found when processing input

so it might be a bug with ffmpeg's -c:0 copy because if I replace it with -c:0 libx264 then it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ffmpeg Problem resides in ffmpeg or usage of ffmpeg
Projects
None yet
Development

No branches or pull requests

2 participants