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

exporting not working for rotated mov file #2317

Open
4 tasks done
jokris1 opened this issue Feb 6, 2025 · 1 comment
Open
4 tasks done

exporting not working for rotated mov file #2317

jokris1 opened this issue Feb 6, 2025 · 1 comment

Comments

@jokris1
Copy link

jokris1 commented Feb 6, 2025

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

Operating System

Windows 10

Steps to reproduce

rotate mov file, then export to mov

Expected behavior

success when exporting

Actual behavior

an error occurs and export fails.

Share log from developer tools

Error: Command failed with exit code 3131621040: C:\Users\Johan\Videos\Redigerar\Lossless cut\resources\ffmpeg.exe -hide_banner -i C:\test\MB-200.mov -map 0:0 -c:0 copy -map 0:1 -c:1 copy -map_metadata 0 -movflags use_metadata_tags -movflags +faststart -default_mode infer_no_subs -ignore_unknown -strict experimental -metadata:s:v:0 rotate=270 -f mov -y C:\Users\Johan\Videos\MB-200-1.mov
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\test\MB-200.mov':
Metadata:
major_brand : qt
minor_version : 536937216
compatible_brands: qt caqv
creation_time : 2010-01-24T16:02:52.000000Z
Duration: 00:00:04.54, start: 0.000000, bitrate: 3658 kb/s
Stream #0:00x1: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 640x480, 3476 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)
Metadata:
creation_time : 2010-01-24T16:02:52.000000Z
vendor_id : [0][0][0][0]
Stream #0:10x2: Audio: adpcm_ima_wav (ms[0][17] / 0x1100736D), 44100 Hz, 1 channels, s16p, 176 kb/s (default)
Metadata:
creation_time : 2010-01-24T16:02:52.000000Z
vendor_id : [0][0][0][0]
[vost#0:0/copy @ 00000244af65b640] Conversion of a 'rotate' metadata key to a proper display matrix rotation is deprecated. See -display_rotation for setting rotation instead.Output #0, mov, to 'C:\Users\Johan\Videos\MB-200-1.mov':
Metadata:
major_brand : qt
minor_version : 536937216
compatible_brands: qt caqv
creation_time : 2010-01-24T16:02:52.000000Z
encoder : Lavf60.3.100
Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 640x480, q=2-31, 3476 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)
Metadata:
creation_time : 2010-01-24T16:02:52.000000Z
vendor_id : [0][0][0][0]
Side data:
displaymatrix: rotation of -90.00 degrees
Stream #0:1(eng): Audio: adpcm_ima_wav (ms[0][17] / 0x1100736D), 44100 Hz, mono, s16p, 176 kb/s (default)
Metadata:
creation_time : 2010-01-24T16:02:52.000000Z
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 0 fps=0.0 q=-1.0 size= 0kB time=00:00:00.00 bitrate=N/A speed=N/A
[mov @ 00000244af592040] fatal error, input packet contains no samples
av_interleaved_write_frame(): Not yet implemented in FFmpeg, patches welcome
[out#0/mov @ 00000244af591f00] Error muxing a packet
[mov @ 00000244af592040] Starting second pass: moving the moov atom to the beginning of the file
frame= 2 fps=0.0 q=-1.0 Lsize= 63kB time=00:00:00.13 bitrate=3842.2kbits/s speed=2.67x
video:62kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.143730%
Conversion failed!

at makeError (C:\Users\Johan\Videos\Redigerar\Lossless cut\resources\app.asar\out\main\index.js:1861:13)
at handlePromise (C:\Users\Johan\Videos\Redigerar\Lossless cut\resources\app.asar\out\main\index.js:2680:29)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

{
"err": {
"killed": false,
"failed": true,
"timedOut": false,
"isCanceled": false,
"exitCode": 3131621040
},
"state": {
"ffmpegExperimental": true,
"preserveMovData": true,
"movFastStart": true,
"preserveMetadataOnMerge": false,
"filePath": "C:\test\MB-200.mov",
"fileFormat": "mov",
"externalFilesMeta": {},
"mainStreams": [
{
"index": 0,
"codec_name": "h264",
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"profile": "Constrained Baseline",
"codec_type": "video",
"codec_tag_string": "avc1",
"codec_tag": "0x31637661",
"width": 640,
"height": 480,
"coded_width": 640,
"coded_height": 480,
"closed_captions": 0,
"film_grain": 0,
"has_b_frames": 0,
"pix_fmt": "yuv420p",
"level": 30,
"chroma_location": "left",
"field_order": "progressive",
"refs": 1,
"is_avc": "true",
"nal_length_size": "4",
"id": "0x1",
"r_frame_rate": "30000/1001",
"avg_frame_rate": "30000/1001",
"time_base": "1/30000",
"start_pts": 0,
"start_time": "0.000000",
"duration_ts": 136136,
"duration": "4.537867",
"bit_rate": "3476802",
"bits_per_raw_sample": "8",
"nb_frames": "136",
"extradata_size": 39,
"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": {
"creation_time": "2010-01-24T16:02:52.000000Z",
"language": "eng",
"vendor_id": "[0][0][0][0]"
}
},
{
"index": 1,
"codec_name": "adpcm_ima_wav",
"codec_long_name": "ADPCM IMA WAV",
"codec_type": "audio",
"codec_tag_string": "ms[0][17]",
"codec_tag": "0x1100736d",
"sample_fmt": "s16p",
"sample_rate": "44100",
"channels": 1,
"bits_per_sample": 4,
"initial_padding": 0,
"id": "0x2",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/44100",
"start_pts": 0,
"start_time": "0.000000",
"duration_ts": 197977,
"duration": "4.489274",
"bit_rate": "176400",
"nb_frames": "197977",
"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": {
"creation_time": "2010-01-24T16:02:52.000000Z",
"language": "eng",
"vendor_id": "[0][0][0][0]"
}
}
],
"copyStreamIdsByFile": {
"C:\test\MB-200.mov": {
"0": true,
"1": true
}
},
"cutSegments": [
{}
],
"mainFileFormatData": {
"filename": "C:\test\MB-200.mov",
"nb_streams": 2,
"nb_programs": 0,
"format_name": "mov,mp4,m4a,3gp,3g2,mj2",
"format_long_name": "QuickTime / MOV",
"start_time": "0.000000",
"duration": "4.537867",
"size": "2075035",
"bit_rate": "3658168",
"probe_score": 100,
"tags": {
"major_brand": "qt ",
"minor_version": "536937216",
"compatible_brands": "qt caqv",
"creation_time": "2010-01-24T16:02:52.000000Z"
}
},
"rotation": 90,
"shortestFlag": false,
"effectiveExportMode": "separate",
"outSegTemplate": "${FILENAME}-${SEG_NUM}${EXT}",
"mergedFileTemplate": "${FILENAME}-cut-merged-${EPOCH_MS}${EXT}",
"preserveMetadata": "default",
"preserveChapters": true
},
"platform": "win32",
"version": "3.63.0"
}

@mifi
Copy link
Owner

mifi commented Feb 12, 2025

Hi, do you not get any error when not rotating? (Just export without rotate)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants