ffmpeg enthält Dateien einschließlich Untertiteln

511
이용현

Ich kodiere mit ffmpeg. Was ich jetzt mache, ist es, es in eine ts-Datei aufzuteilen und dann über die concat-Option wieder in die mp4-Datei einzufügen. Das Problem ist jedoch, dass dieses Video Untertitel enthält. Wenn es jedoch an eine mp4-Datei angehängt wird, werden die Untertitel ausgeblendet. -analyzeduration 100M -probesize 100m und -c: s Kopieroption zum Erstellen eines TS-Images und Prüfung mit ffprobe. Ich bin überzeugt, dass dieser Stream ein Untertitelstream ist, da das Originalvideo auch einen 0: 2-Anteil als Untertitelstream aufweist. Ich habe beide Bilder mit der concat-Option -analyzeduration 100M -probesize 100M und -c: s eingefügt, aber in der mp4-Datei wurden keine Untertitel erstellt. Wenn ich die concat-Option verwende, codiert es nicht. Liegt es daran? Das ist mein Code

ffmpeg -analyzeduration 100M -probesize 100M -y -i Whisper_of_the_Heart.mp4 -ss 00:15:00 -to 00:20:00 -vf "crop=672:432:24:24" -c:v libx264 -c:s copy Whisper_of_the_Heart_10_16.ts ffmpeg -analyzeduration 100M -probesize 100M -y -i Whisper_of_the_Heart.mp4 -ss 00:20:00.1 -to 00:25:00 -vf "crop=672:432:24:24" -c:v libx264 -c:s copy Whisper_of_the_Heart_16_21.ts ffprobe -analyzeduration 100M -probesize 100M Whisper_of_the_Heart_10_16.ts   ffmpeg -analyzeduration 100M -probesize 100M -y -i "concat:Whisper_of_the_Heart_10_16.ts|Whisper_of_the_Heart_16_21.ts" -c:v libx264 -c:s copy -c:a copy Whisper_of_the_Heart_10_21.mp4 

Das ist ffprobe 1

Duration: 00:04:59.94, start: 1.423344, bitrate: 936 kb/s Program 1  Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 672x432 [SAR 32:27 DAR 448:243], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x101](und): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 384 kb/s Stream #0:2[0x102]: Data: bin_data ([6][0][0][0] / 0x0006) Unsupported codec with id 100359 for input stream 2 

diese ffprobe 2

 Duration: 00:05:00.04, start: 1.423344, bitrate: 1089 kb/s Program 1  Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 672x432 [SAR 32:27 DAR 448:243], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x101](und): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 384 kb/s Stream #0:2[0x102]: Data: bin_data ([6][0][0][0] / 0x0006) Unsupported codec with id 100359 for input stream 2 

dies ist für das orforforForm

 Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.83.100 Duration: 01:04:39.68, start: 0.000000, bitrate: 912 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 672x432 [SAR 32:27 DAR 448:243], 456 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 448 kb/s (default) Metadata: handler_name : SoundHandler Side data: audio service type: main Stream #0:2(und): Subtitle: dvd_subtitle (mp4s / 0x7334706D), 2 kb/s (default) Metadata: handler_name : SubtitleHandler 

Danke im Voraus

0

0 Antworten auf die Frage