Skip to content

Commit

Permalink
Update encode.py ; import C API only when required
Browse files Browse the repository at this point in the history
  • Loading branch information
theoladune authored Jul 4, 2024
1 parent 9b1c034 commit d49d92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coolchic/encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import subprocess
import configargparse

from enc.bitstream.encode import encode_video
from enc.component.coolchic import CoolChicEncoderParameter
from enc.component.video import (
VideoEncoder,
Expand Down Expand Up @@ -321,6 +320,7 @@

# Bitstream
if args.output != "":
from enc.bitstream.encode import encode_video
# video_encoder = load_video_encoder(video_encoder_savepath)
encode_video(video_encoder, args.output, hls_sig_blksize=16)

Expand Down

0 comments on commit d49d92e

Please sign in to comment.