Skip to content

Commit

Permalink
fix mjpeg stream error
Browse files Browse the repository at this point in the history
  • Loading branch information
fsadannn committed Sep 27, 2020
1 parent f70f1ea commit c39fa18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions video_diet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
COUNTER_FMT = u'{desc}{desc_pad}{count:.1f} {unit}{unit_pad}' + \
u'[{elapsed}, {rate:.2f}{unit_pad}{unit}/s]{fill}'

CONVERT_COMMAND_10Bits = 'ffmpeg -progress pipe:1 -i "{source}" -map 0 -c:v libx265 -x265-params crf=26:profile=main10 -c:a aac -y "{dest}"'
CONVERT_COMMAND = 'ffmpeg -progress pipe:1 -i "{source}" -map 0 -c:v libx265 -x265-params crf=26 -c:a aac -y "{dest}"'
CONVERT_COMMAND_10Bits = 'ffmpeg -progress pipe:1 -i "{source}" -map 0 -map -v -map V -c:v libx265 -x265-params crf=26:profile=main10 -c:a aac -y "{dest}"'
CONVERT_COMMAND = 'ffmpeg -progress pipe:1 -i "{source}" -map 0 -map -v -map V -c:v libx265 -crf 26 -c:a aac -y "{dest}"'

def convert_file(source: str, dest: str):
stream = ffmpeg.input(source)
Expand Down

0 comments on commit c39fa18

Please sign in to comment.