我的配音哪裡出了問題?

我的配音哪裡出了問題?

我想為一部電影製作自己的配音:

我檢查哪些幀與 Adob​​e Premiere Pro 相同。 UNCUT 電影在 Premiere 中有 133799 幀,但容器顯示 133800。現在這些是我要插入/替換的場景(從 UNCUT-movie 開始):

first/last identical Frame
UNCUT (+1)
CUT (0)


UNCUT (23.976)
ffprobe -show_entries stream=codec_type,start_time -v 0 -of compact=p=1:nk=0 THE_GIRL_WITH_THE_DRAGON_TATTOO.Title1.mkv
Start (Audio): 0.000
Start (Video): 0.000
ffprobe -show_packets THE_GIRL_WITH_THE_DRAGON_TATTOO.Title1.mkv > stop_uncut.txt
Stop (Audio): 5580.703 (133803.0689)
Stop (Video): 5580.574 (133800)

CUT (25)
ffprobe -show_entries stream=codec_type,start_time -v 0 -of compact=p=1:nk=0 MILLENIUM_D1_VERBLENDUNG.Title0.mkv
Start (Audio): 0.000
Start (Video): 0.000
ffprobe -show_packets MILLENIUM_D1_VERBLENDUNG.Title0.mkv > stop_cut.txt
Stop (Audio): 5264.990 (131624.75)
Stop (Video): 5264.080 (131602)


1. Replace (UNCUT/CUT) - first identical Frame
25 (same frame like frame 52 in CUT)
52 (same frame like frame 25 in UNCUT)
0-24 (Frames I want to extract for UNCUT)
v0-25 (Video Frame I have to extract for UNCUT)
a0-26 (Audio "Frames" I have to extract UNCUT)
0-51 (Frames I want to extract for CUT)
v0-51 (Video Frame I have to extract for CUT)
a0-52 (Audio "Frames" I have to extract CUT)

2. Insert (UNCUT) - last identical Frame
2927
2954
2928-5177
v2929-5178
a2929-5179

3. Replace (UNCUT/CUT) - last identical Frame
133026
130803
133027-133799
v133028-133800
a133028-133803.0689
130804-131602
v130804-131602
a130804-131624.75

我的 ffmpeg 語法如下圖所示:

mkvmerge -i MILLENIUM_D1_VERBLENDUNG.Title0.mkv
mkvextract MILLENIUM_D1_VERBLENDUNG.Title0.mkv tracks 0:video_cut.264
mkvmerge -i THE_GIRL_WITH_THE_DRAGON_TATTOO.Title1.mkv
mkvextract THE_GIRL_WITH_THE_DRAGON_TATTOO.Title1.mkv tracks 0:video_uncut.264

ffmpeg.exe -i MILLENIUM_D1_VERBLENDUNG.Title0.mkv -map 0:1 -c:a flac -sample_fmt:a s16 audio_cut.flac
ffmpeg.exe -i THE_GIRL_WITH_THE_DRAGON_TATTOO.Title1.mkv -map 0:2 -c:a flac -sample_fmt:a s16 audio_uncut.flac

atempo = (24000/1001)/25
ffmpeg.exe -i audio_cut.flac -filter:a "atempo=0.959040959" audio_cut_23976fps_atempo.flac


Part 1:
ffmpeg.exe -i audio_cut_23976fps_atempo.flac -t (52/(24000/1001)) -codec flac audio_cut_1.flac
ffmpeg.exe -i audio_cut_23976fps_atempo.flac -t 2.168833333 -codec flac audio_cut_1.flac

Rest 1:
ffmpeg.exe -i audio_cut_23976fps_atempo.flac -ss (52/(24000/1001)) -to (131624.75/(24000/1001)) -codec flac audio_cut_R1.flac
ffmpeg.exe -i audio_cut_23976fps_atempo.flac -ss 2.168833333 -to 5489.848948 -codec flac audio_cut_R1.flac


Part 2:
ffmpeg.exe -i audio_cut_R1.flac -t ((2954-52)/(24000/1001)) -codec flac audio_cut_2.flac
ffmpeg.exe -i audio_cut_R1.flac -t 121.0375833 -codec flac audio_cut_2.flac

Rest 2:
ffmpeg.exe -i audio_cut_23976fps_atempo.flac -ss (((2954-52)+52)/(24000/1001)) -to (131624.75/(24000/1001)) -codec flac audio_cut_R2.flac
ffmpeg.exe -i audio_cut_23976fps_atempo.flac -ss 123.2064167 -to 5489.848948 -codec flac audio_cut_R2.flac


Part 3:
ffmpeg.exe -i audio_cut_R2.flac -t ((130803-(2954-52)-52)/(24000/1001)) -codec flac audio_cut_3.flac
ffmpeg.exe -i audio_cut_R2.flac -t 5332.368708 -codec flac audio_cut_3.flac

Rest 3:
ffmpeg.exe -i audio_cut_23976fps_atempo.flac -ss (((130803-(2954-52)-52)+(2954-52)+52)/(24000/1001)) -to (131624.75/(24000/1001)) -codec flac audio_cut_R3.flac
ffmpeg.exe -i audio_cut_23976fps_atempo.flac -ss 5455.575125 -to 5489.848948 -codec flac audio_cut_R3.flac


New 1:
ffmpeg.exe -i audio_uncut.flac -ss (0/(24000/1001)) -to (26/(24000/1001)) -codec flac audio_uncut1.flac
ffmpeg.exe -i audio_uncut.flac -ss 0 -to 1.084416667 -codec flac audio_uncut_1.flac

New 2:
ffmpeg.exe -i audio_uncut.flac -ss (2929/(24000/1001)) -to (5179/(24000/1001)) -codec flac audio_uncut2.flac
ffmpeg.exe -i audio_uncut.flac -ss 122.1637083 -to 216.0074583 -codec flac audio_uncut_2.flac

New 3:
ffmpeg.exe -i audio_uncut.flac -ss (133028/(24000/1001)) -to (133803.0689/(24000/1001)) -codec flac audio_uncut3.flac
ffmpeg.exe -i audio_uncut.flac -ss 5548.376167 -to 5580.702999 -codec flac audio_uncut_3.flac


ffmpeg -f concat -i mylist.txt -c flac audio_final.flac

file 'audio_uncut_1.flac'
file 'audio_cut_2.flac'
file 'audio_uncut_2.flac'
file 'audio_cut_3.flac'
file 'audio_uncut_3.flac'


ffprobe.exe -v 0 -sexagesimal -show_entries format^=duration -of compact^=p^=0^:nk^=1 audio_final.flac


ffmpeg^
 -i THE_GIRL_WITH_THE_DRAGON_TATTOO.Title1.mkv -i audio_final.flac^
 -map 0:0 -map 1:0^
 -codec copy^
 final1.mkv

mkv似乎是同步的,但是…audio_final.flac有1:33:00.661和audio_uncut.flac 1:33:00.703。所以差異是 0.042 秒 --> 一格。

我在計算中丟失了一幀。我已經看了幾個小時的代碼了,但我看不到它。

答案1

知道了。片尾字幕有錯誤。

無論如何,計算是不正確的。我需要在切割點逐幀檢查並移動一些零件。

相關內容