[FFmpeg-user] convert mkv to mp4
KoSza
koszanova at gmail.com
Fri Jan 10 16:17:00 EET 2025
Hello Moritz,
Thank you for answering. the error was:
MyUser at MyServer:/volume1/video/series/Dune.Prophecy.S01.2160p.MAX.WEB-DL.DDP5.1.Atmos.DV.HDR.H.265.HUN.ENG-PTHD$
ffmpeg -i
Dune.Prophecy.S01E02.2160p.MAX.WEB-DL.DDP5.1.Atmos.DV.HDR.H.265.HUN.ENG-PTHD.mkv
-map 0 -c copy
Dune.Prophecy.S01E09.2160p.MAX.WEB-DL.DDP5.1.Atmos.DV.HDR.H.265.HUN.ENG-PTHD.mp4
ffmpeg version 4.1.9 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12.2.0 (GCC)
configuration: --prefix=/usr --incdir='${prefix}/include/ffmpeg'
--arch=i686 --target-os=linux
--cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-
--enable-cross-compile --enable-optimizations --enable-pic --enable-shared
--disable-static --disable-stripping --enable-version3 --enable-pthreads
--disable-protocols --disable-protocol=rtp --enable-protocol=file
--enable-protocol=pipe --disable-muxer=image2 --disable-muxer=image2pipe
--disable-swscale-alpha --disable-ffplay --disable-ffprobe --disable-doc
--disable-devices --disable-bzlib --disable-altivec
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame
--disable-v4l2-m2m --disable-vaapi --disable-cuvid --disable-nvenc
--disable-decoder=aac --disable-decoder=aac_fixed --disable-encoder=aac
--disable-decoder=amrnb --disable-decoder=ac3 --disable-decoder=ac3_fixed
--disable-encoder=zmbv --disable-encoder=dca --disable-decoder=dca
--disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3
--disable-decoder=eac3 --disable-encoder=truehd --disable-decoder=truehd
--disable-encoder=hevc_vaapi --disable-decoder=hevc --disable-muxer=hevc
--disable-demuxer=hevc --disable-parser=hevc --disable-bsf=hevc_metadata
--disable-bsf=hevc_mp4toannexb --disable-encoder=h264_v4l2m2m
--disable-decoder=h264 --disable-decoder=h264_v4l2m2m --disable-muxer=h264
--disable-demuxer=h264 --disable-parser=h264 --disable-bsf=h264_metadata
--disable-bsf=h264_mp4toannexb --disable-bsf=h264_redundant_pps
--disable-decoder=vc1 --disable-decoder=vc1_v4l2m2m --disable-muxer=vc1
--disable-demuxer=vc1 --disable-parser=vc1 --x86asmexe=yasm
--cc=/usr/local/x86_64-pc-linux-gnu/bin/ccache/x86_64-pc-linux-gnu-wrap-gcc
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
Guessed Channel Layout for Input Stream #0.1 : 5.1
Guessed Channel Layout for Input Stream #0.2 : 5.1
Input #0, matroska,webm, from
'Dune.Prophecy.S01E02.2160p.MAX.WEB-DL.DDP5.1.Atmos.DV.HDR.H.265.HUN.ENG-PTHD.mkv':
Metadata:
title :
Dune.Prophecy.S01E02.2160p.MAX.WEB-DL.DDP5.1.Atmos.DV.HDR.H.265.HUN.ENG-PTHD
encoder : libebml v1.4.5 + libmatroska v1.7.1
creation_time : 2024-11-25T08:13:36.000000Z
Duration: 01:02:44.45, start: 0.000000, bitrate: 20570 kb/s
Chapter #0:0: start 0.000000, end 3764.448000
Metadata:
title : Chapter 1
Chapter #0:1: start 3767.471900, end 3767.471900
Metadata:
title : Credits
Chapter #0:2: start 3842.505200, end 3842.505200
Metadata:
title : Chapter 2
Stream #0:0: Video: hevc, none, 3840x1920, SAR 1:1 DAR 2:1, 23.98 fps,
23.98 tbr, 1k tbn, 1k tbc (default)
Metadata:
BPS : 19287467
DURATION : 01:02:44.428000000
NUMBER_OF_FRAMES: 90256
NUMBER_OF_BYTES : 9075785270
_STATISTICS_WRITING_APP: mkvmerge v88.0 ('All I Know') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-11-25 08:13:36
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(hun): Audio: eac3, 48000 Hz, 5.1 (default)
Metadata:
title : DDP5.1
BPS : 640000
DURATION : 01:02:44.416000000
NUMBER_OF_FRAMES: 117638
NUMBER_OF_BYTES : 301153280
_STATISTICS_WRITING_APP: mkvmerge v88.0 ('All I Know') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-11-25 08:13:36
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: eac3, 48000 Hz, 5.1
Metadata:
title : DDP5.1 Atmos
BPS : 640000
DURATION : 01:02:44.448000000
NUMBER_OF_FRAMES: 117639
NUMBER_OF_BYTES : 301155840
_STATISTICS_WRITING_APP: mkvmerge v88.0 ('All I Know') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-11-25 08:13:36
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(hun): Subtitle: subrip (default) (forced)
Metadata:
title : Forced
BPS : 92
DURATION : 00:00:02.085000000
NUMBER_OF_FRAMES: 1
NUMBER_OF_BYTES : 24
_STATISTICS_WRITING_APP: mkvmerge v88.0 ('All I Know') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-11-25 08:13:36
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(hun): Subtitle: subrip
Metadata:
title : Full
BPS : 46
DURATION : 01:01:07.459000000
NUMBER_OF_FRAMES: 646
NUMBER_OF_BYTES : 21127
_STATISTICS_WRITING_APP: mkvmerge v88.0 ('All I Know') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-11-25 08:13:36
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:5(eng): Subtitle: subrip
Metadata:
title : Full
BPS : 50
DURATION : 01:01:03.414000000
NUMBER_OF_FRAMES: 697
NUMBER_OF_BYTES : 22923
_STATISTICS_WRITING_APP: mkvmerge v88.0 ('All I Know') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-11-25 08:13:36
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:6(eng): Subtitle: subrip
Metadata:
title : SDH
BPS : 58
DURATION : 01:01:27.938000000
NUMBER_OF_FRAMES: 917
NUMBER_OF_BYTES : 26931
_STATISTICS_WRITING_APP: mkvmerge v88.0 ('All I Know') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-11-25 08:13:36
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[mp4 @ 0x55d40f14ab40] Could not find tag for codec subrip 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:3 -> #0:1 (copy)
Stream #0:4 -> #0:2 (copy)
Stream #0:5 -> #0:3 (copy)
Stream #0:6 -> #0:4 (copy)
Last message repeated 1 times
For me this is not clear.
Codec not supported in container, but if Iuse a win software then it can
work...
Thank you for helping out.
Regrads,
K
Moritz Barsnick via ffmpeg-user <ffmpeg-user at ffmpeg.org> ezt írta (időpont:
2025. jan. 10., P, 11:44):
> On Fri, Jan 10, 2025 at 11:13:06 +0100, KoSza wrote:
> > I have ffmpeg on my Synology DS423+, if I use the following command
> > ffmpeg -i movie.mkv -codec copy movie.mp4
> > The file is done, but TV does not play it.
>
> Then you're probably out of luck, because the TV doesn't support one of
> the codecs.
>
> > If I try
> > ffmpeg -i movie.mkv -map 0 -c copy movie.mp4
> > I got an error.
>
> Is this error a secret? Shall we guess?
>
> Please provide us the complete, uncut console output of that command.
> Then we might be able to help, and you would also see which codecs are
> involved.
>
> > What is the right process to changing only the container and keep
> > everything unchanged?
>
> You may have to recode your streams for your TV to accepts them. But
> ffmpeg can of course do this as well, just not as fast as copying.
>
> Cheers,
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-user
mailing list