Skip to content

Commit

Permalink
fix output framerate
Browse files Browse the repository at this point in the history
fix output framerate
  • Loading branch information
vrunk11 authored Dec 4, 2023
1 parent 000b47f commit ffe050a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions other_script/ld-chroma-ai_yc.bat
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ set chromafile=%chromafile:"=%
set audiofile=%audiofile:"=%

title Decoding : %~n1 Decoder : %decoder% %ntsc-phase-comp% Luma-nr : %luma-nr% Chroma-nr : %chroma-nr% Chroma-gain : %chroma-gain% Chroma-phase : %chroma-phase%
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"
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"
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"
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"
echo end of the script
pause
2 changes: 1 addition & 1 deletion other_script/ld-chroma-ai_yc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ "$PHASECOMP" != "0" ] && [ "$PHASECOMP" != "1" ]; then PHASECOMP="1" ;fi
if [ "$PHASECOMP" = "1" ]; then PHASECOMP="--ntsc-phase-comp" ;else PHASECOMP="" ;fi

mkfifo lumapipe
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"
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"
rm lumapipe
echo "end of the script"
read -n 1 -s -r -p "Press any key to continue"

0 comments on commit ffe050a

Please sign in to comment.