-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Audio lost when cutting an .m2ts video file (from Free french Internet provider) #2264
Comments
I suspect this is a case of #1839 |
Hello. Thanks for your answer. Lossless-cut works when I convert the file in mp4, but the goal for me in using lossless-cut is to cut loss-less :-) I previously used SmartCutter.app (from frame ring) for years to edit these m2ts files, but this app is not working on my new M4 Macintosh (an annoying preview bug) so I'm looking for an alternative solution and lossless-cut seems very good to me, if it works. I you want to try with the native m2ts I shared two files HD and HD+ on the link https://www.swisstransfer.com/d/b5b5f7a4-f733-4c70-ab14-4811dd22334e Lossless-cut plays the main sound channel correctly, and locate 6 sound channels, but export none. Subtitles are not recognized either. With an old Macintosh, SmartCutter handle all the sound channels and the subtitle. |
If you convert the file to mp4 with losslesscut, that should be a lossless operation. so if that works, then maybe that could be a work-around? |
Thanks for your answer. Sorry, I didn't understand that you talk about the quick format conversion inside LosslessCut and I thought you were asking me reencoding in mp4 with another program like Handbrake.
So I did the "File > Convert to supported format".
I stard with a 3.98 GB .m2ts video file,
HD 1440x1080
4 audio channels
2 subtitles channels.
Below are the results, with all the 7 conversions options :
1) Fastest: FFmpeg-assisted playback
-> I get an unusable 2,4 MB mkv video file.
2) Fast: Full quality remux, likely to fail
-> Failed to convert file. Try a different conversion.
Command failed with exit code 234: /Applications/LosslessCut.app/Contents/Resources/ffmpeg -hide_banner -i /Users/godefroy/Desktop/Installation MacBook M4/Tests/Lossless cut/Arte - 1970 La cité de la violence - Sergio Sollima - 15-11-2024 00h35 01h59 (860).m2ts -vcodec copy -acodec copy -sn -y /Use
3) Fast: Remux video, encode audio (fails if unsupported video codec)
-> Failed to convert file. Try a different conversion.
Command failed with exit code 234: /Applications/LosslessCut.app/Contents/Resources/ffmpeg -hide_banner -i /Users/godefroy/Desktop/Installation MacBook M4/Tests/Lossless cut/Arte - 1970 La cité de la violence - Sergio Sollima - 15-11-2024 00h35 01h59 (860).m2ts -vcodec copy -acodec aac_at -ar 44100
4) Fast: Full quality remux (no audio), likely to fail
-> Failed to convert file. Try a different conversion.
Command failed with exit code 234: /Applications/LosslessCut.app/Contents/Resources/ffmpeg -hide_banner -i /Users/godefroy/Desktop/Installation MacBook M4/Tests/Lossless cut/Arte - 1970 La cité de la violence - Sergio Sollima - 15-11-2024 00h35 01h59 (860).m2ts -vcodec copy -an -sn -y /Users/godefr
5) Slow: Low quality encode (no audio)
-> I get a shrinked 1,34 GB mkv video file with video 534x400 only, no audio (lost 4 channels) and no subtitle channel (lost the two of them).
6) Slow: Low quality encode
-> I get a shrinked 1,43 GB mkv video file with video 534x400 only, one audio channel (lost 3 channels) and no subtitle channel (lost the two of them).
7) Slowest: High quality encode
-> I get a monster 13,56 GB mkv video file with video 1440x1080, one audio channel (lost 3 channels) and no subtitle channel (lost the two of them).
Best regards.
… Le 11 déc. 2024 à 07:11, Mikael Finstad ***@***.***> a écrit :
If you convert the file to mp4 with losslesscut, that should be a lossless operation. so if that works, then maybe that could be a work-around?
—
Reply to this email directly, view it on GitHub <#2264 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHT4KSJUQZKPNLW3OCCHLMD2E7JQJAVCNFSM6AAAAABTJ57G72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZTG4ZDIOBSGU>.
You are receiving this because you authored the thread.
|
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
Extract just a few seconds in the center of a video file .m2ts, generated by the Freebox (french provider). I tried with 5 different TV channels, and either in mode HD (1440x1080) and in mode HD+ (1920x1440) and the result was the same : each time lossless-cut told me there was 6 audio channels (true) but said that only 5 were available for extract, and no audio channel were in the extracted file. I have no problem with mp4 files.
Expected behavior
I expect to have an audio channel in the video, and if possible all of them.
Actual behavior
No audio channel exported in the video.
Provide an error report
o error occurred.
{
"err": false,
"state": {
"ffmpegExperimental": false,
"preserveMovData": false,
"movFastStart": true,
"preserveMetadataOnMerge": false,
"filePath": "/Users/godefroy/Desktop/Installation MacBook M4/Tests/Arte - Valmont HD+ - 10-12-2024 00h33 01m (901).m2ts",
"fileFormat": "mpegts",
"externalFilesMeta": {},
"mainStreams": [
{
"index": 0,
"codec_name": "dvb_teletext",
"codec_long_name": "DVB teletext",
"codec_type": "subtitle",
"codec_tag_string": "[6][0][0][0]",
"codec_tag": "0x0006",
"id": "0x31",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/90000",
"start_pts": 82059331,
"start_time": "911.770344",
"duration_ts": 1159640,
"duration": "12.884889",
"extradata_size": 4,
"disposition": {
"default": 0,
"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": "fra,fra"
}
},
{
"index": 1,
"codec_name": "h264",
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"profile": "High",
"codec_type": "video",
"codec_tag_string": "[27][0][0][0]",
"codec_tag": "0x001b",
"width": 1440,
"height": 1080,
"coded_width": 1440,
"coded_height": 1080,
"closed_captions": 0,
"film_grain": 0,
"has_b_frames": 2,
"sample_aspect_ratio": "4:3",
"display_aspect_ratio": "16:9",
"pix_fmt": "yuv420p",
"level": 40,
"color_range": "tv",
"color_space": "bt709",
"chroma_location": "left",
"field_order": "tt",
"refs": 1,
"is_avc": "false",
"nal_length_size": "0",
"id": "0x44",
"r_frame_rate": "25/1",
"avg_frame_rate": "25/1",
"time_base": "1/90000",
"start_pts": 82131339,
"start_time": "912.570433",
"duration_ts": 1148824,
"duration": "12.764711",
"bits_per_raw_sample": "8",
"extradata_size": 42,
"disposition": {
"default": 0,
"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
}
},
{
"index": 2,
"codec_name": "aac",
"codec_long_name": "AAC (Advanced Audio Coding)",
"profile": "HE-AAC",
"codec_type": "audio",
"codec_tag_string": "[15][0][0][0]",
"codec_tag": "0x000f",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"initial_padding": 0,
"id": "0x45",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/90000",
"start_pts": 82097747,
"start_time": "912.197189",
"duration_ts": 1133224,
"duration": "12.591378",
"bit_rate": "73090",
"disposition": {
"default": 0,
"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": "fra"
}
},
{
"index": 3,
"codec_name": "aac",
"codec_long_name": "AAC (Advanced Audio Coding)",
"profile": "HE-AACv2",
"codec_type": "audio",
"codec_tag_string": "[15][0][0][0]",
"codec_tag": "0x000f",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"initial_padding": 0,
"id": "0x47",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/90000",
"start_pts": 82097747,
"start_time": "912.197189",
"duration_ts": 1156279,
"duration": "12.847544",
"bit_rate": "49361",
"disposition": {
"default": 0,
"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": "deu"
}
},
{
"index": 4,
"codec_name": "aac",
"codec_long_name": "AAC (Advanced Audio Coding)",
"profile": "HE-AAC",
"codec_type": "audio",
"codec_tag_string": "[15][0][0][0]",
"codec_tag": "0x000f",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"initial_padding": 0,
"id": "0x48",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/90000",
"start_pts": 82097747,
"start_time": "912.197189",
"duration_ts": 1133224,
"duration": "12.591378",
"bit_rate": "73254",
"disposition": {
"default": 0,
"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": "qaa"
}
},
{
"index": 5,
"codec_name": "aac",
"codec_long_name": "AAC (Advanced Audio Coding)",
"profile": "HE-AACv2",
"codec_type": "audio",
"codec_tag_string": "[15][0][0][0]",
"codec_tag": "0x000f",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"initial_padding": 0,
"id": "0x49",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/90000",
"start_pts": 82097747,
"start_time": "912.197189",
"duration_ts": 1156279,
"duration": "12.847544",
"bit_rate": "49203",
"disposition": {
"default": 0,
"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": "qad"
}
}
],
"copyStreamIdsByFile": {
"/Users/godefroy/Desktop/Installation MacBook M4/Tests/Arte - Valmont HD+ - 10-12-2024 00h33 01m (901).m2ts": {
"0": false,
"1": true,
"2": true,
"3": true,
"4": true,
"5": true
}
},
"cutSegments": [
{
"start": 4.573059,
"end": 10.304182692307691
}
],
"mainFileFormatData": {
"filename": "/Users/godefroy/Desktop/Installation MacBook M4/Tests/Arte - Valmont HD+ - 10-12-2024 00h33 01m (901).m2ts",
"nb_streams": 6,
"nb_programs": 1,
"format_name": "mpegts",
"format_long_name": "MPEG-TS (MPEG-2 Transport Stream)",
"start_time": "911.770344",
"duration": "13.564800",
"size": "7258944",
"bit_rate": "4281047",
"probe_score": 50
},
"rotation": 360,
"shortestFlag": false,
"effectiveExportMode": "separate",
"outSegTemplate": "${FILENAME}-${CUT_FROM}-${CUT_TO}${SEG_SUFFIX}${EXT}",
"preserveMetadata": "default",
"preserveChapters": true
},
"platform": "darwin",
"version": "3.64.0"
}
Share the file
https://www.swisstransfer.com/d/b5b5f7a4-f733-4c70-ab14-4811dd22334e
Share log from developer tools
No response
The text was updated successfully, but these errors were encountered: