Skip to content

Commit

Permalink
Merge pull request #63 from miminashi/62-no-recode
Browse files Browse the repository at this point in the history
recodeせずにmp4/aacの動画をダウンロードするようにした
  • Loading branch information
miminashi authored Sep 24, 2023
2 parents ba60c86 + bafdc48 commit 3ab408c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/archive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def update_video
Dir.mktmpdir do |dir|
filename = File.join(dir, 'download.mp4')
log_filename = File.join(dir, 'download.log')
command = 'yt-dlp --newline --recode-video mp4 -o "%s" "%s"' % [filename, self.original_url]
command = 'yt-dlp --newline -f "bestvideo[ext=mp4]+bestaudio[ext=aac]/best[ext=mp4]" -o "%s" "%s"' % [filename, self.original_url]
success = nil
Open3.popen2e(command) do |stdin, stdoe, wait_thr|
log = File.open(log_filename, 'w')
Expand Down

0 comments on commit 3ab408c

Please sign in to comment.