Skip to content

Commit ffe050a

Browse files
authored
fix output framerate
fix output framerate
1 parent 000b47f commit ffe050a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

other_script/ld-chroma-ai_yc.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ set chromafile=%chromafile:"=%
5656
set audiofile=%audiofile:"=%
5757

5858
title Decoding : %~n1 Decoder : %decoder% %ntsc-phase-comp% Luma-nr : %luma-nr% Chroma-nr : %chroma-nr% Chroma-gain : %chroma-gain% Chroma-phase : %chroma-phase%
59-
ld-chroma-decoder.exe "%lumafile%" --input-json "%lumafile%.json" -f %decoder% --luma-nr %luma-nr% --chroma-nr 0 --chroma-gain 0 --chroma-phase 1 -p y4m | ffmpeg -y -i - -pix_fmt y8 -c:v ffv1 -coder 1 -context 0 -level 3 -slices 4 -slicecrc 0 -pass 1 "%lumafile%_bw.mkv"
60-
ld-chroma-decoder.exe "%chromafile%" --input-json "%lumafile%.json" -f %decoder% %ntsc-phase-comp% --luma-nr 0 --chroma-nr %chroma-nr% --chroma-gain %chroma-gain% --chroma-phase %chroma-phase% -p y4m | ffmpeg -y -r %fps% -i "%lumafile%_bw.mkv" -r %fps% -i - %audiofile% -filter_complex "[0]format=pix_fmts=yuv444p,extractplanes=y[y]; [1]format=pix_fmts=yuv444p,extractplanes=u+v[u][v]; [y][u][v]mergeplanes=0x001020:yuv444p,format=pix_fmts=yuv444p" -r %fps%*2 -top 1 -c:v ffv1 -coder 1 -context 0 -level 3 -slices 4 -slicecrc 0 -pass 1 -c:a flac -compression_level 11 "%lumafile%.mkv"
59+
ld-chroma-decoder.exe "%lumafile%" --input-json "%lumafile%.json" -f %decoder% --luma-nr %luma-nr% --chroma-nr 0 --chroma-gain 0 --chroma-phase 1 -p y4m | ffmpeg -y -hide_banner -i - -pix_fmt y8 -c:v ffv1 -coder 1 -context 0 -level 3 -slices 4 -slicecrc 0 -pass 1 "%lumafile%_bw.mkv"
60+
ld-chroma-decoder.exe "%chromafile%" --input-json "%lumafile%.json" -f %decoder% %ntsc-phase-comp% --luma-nr 0 --chroma-nr %chroma-nr% --chroma-gain %chroma-gain% --chroma-phase %chroma-phase% -p y4m | ffmpeg -y -hide_banner -r (30000/1001) -i "%lumafile%_bw.mkv" -r (30000/1001) -i - %audiofile% -filter_complex "[0]format=pix_fmts=yuv444p,extractplanes=y[y]; [1]format=pix_fmts=yuv444p,extractplanes=u+v[u][v]; [y][u][v]mergeplanes=0x001020:yuv444p,format=pix_fmts=yuv444p" -r (30000/1001) -top 1 -c:v ffv1 -coder 1 -context 0 -level 3 -slices 4 -slicecrc 0 -pass 1 -c:a flac -compression_level 11 "%lumafile%.mkv"
6161
echo end of the script
6262
pause

other_script/ld-chroma-ai_yc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [ "$PHASECOMP" != "0" ] && [ "$PHASECOMP" != "1" ]; then PHASECOMP="1" ;fi
1212
if [ "$PHASECOMP" = "1" ]; then PHASECOMP="--ntsc-phase-comp" ;else PHASECOMP="" ;fi
1313

1414
mkfifo lumapipe
15-
ld-chroma-decoder "$(dirname $1)/$FILENAME.tbc" --input-json "$(dirname $1)/$FILENAME.tbc.json" -f ntsc3d --luma-nr 0 --chroma-nr 0 --chroma-gain 0 --chroma-phase 1 -p y4m | ffmpeg -hide_banner -loglevel error -thread_queue_size 4096 -y -i - -c:v rawvideo -f nut pipe:1 > lumapipe | ld-chroma-decoder "$(dirname $1)/"$FILENAME"_chroma.tbc" --input-json "$(dirname $1)/$FILENAME.tbc.json" -f ntsc2d --ntsc-phase-comp --luma-nr 0 --chroma-nr 0 --chroma-gain $CHROMAGAIN --chroma-phase $CHROMAPHASE -p y4m | ffmpeg -hide_banner -thread_queue_size 4096 -y -r "(30000/1001)*2" -i lumapipe -r "(30000/1001)*2" -i - -filter_complex "[0]format=pix_fmts=yuv444p,extractplanes=y[y]; [1]format=pix_fmts=yuv444p,extractplanes=u+v[u][v]; [y][u][v]mergeplanes=0x001020:yuv444p,format=pix_fmts=yuv444p" -r "(30000/1001)*2" -top 1 -c:v ffv1 -coder 1 -context 0 -level 3 -slices 4 -slicecrc 0 -pass 1 -c:a flac -compression_level 11 "$(dirname $1)/$FILENAME.mkv"
15+
ld-chroma-decoder "$(dirname $1)/$FILENAME.tbc" --input-json "$(dirname $1)/$FILENAME.tbc.json" -f ntsc3d --luma-nr 0 --chroma-nr 0 --chroma-gain 0 --chroma-phase 1 -p y4m | ffmpeg -hide_banner -loglevel error -thread_queue_size 4096 -y -i - -c:v rawvideo -f nut pipe:1 > lumapipe | ld-chroma-decoder "$(dirname $1)/"$FILENAME"_chroma.tbc" --input-json "$(dirname $1)/$FILENAME.tbc.json" -f ntsc2d --ntsc-phase-comp --luma-nr 0 --chroma-nr 0 --chroma-gain $CHROMAGAIN --chroma-phase $CHROMAPHASE -p y4m | ffmpeg -hide_banner -thread_queue_size 4096 -y -r "(30000/1001)" -i lumapipe -r "(30000/1001)" -i - -filter_complex "[0]format=pix_fmts=yuv444p,extractplanes=y[y]; [1]format=pix_fmts=yuv444p,extractplanes=u+v[u][v]; [y][u][v]mergeplanes=0x001020:yuv444p,format=pix_fmts=yuv444p" -r "(30000/1001)" -top 1 -c:v ffv1 -coder 1 -context 0 -level 3 -slices 4 -slicecrc 0 -pass 1 -c:a flac -compression_level 11 "$(dirname $1)/$FILENAME.mkv"
1616
rm lumapipe
1717
echo "end of the script"
1818
read -n 1 -s -r -p "Press any key to continue"

0 commit comments

Comments
 (0)