Skip to content

Commit cd933a9

Browse files
committed
logs
1 parent 64d065d commit cd933a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ffmpeg/transcoder.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def requires_pre_encode
2626
end
2727

2828
def initialize(movie, output_file, options = EncodingOptions.new, transcoder_options = {}, transcoder_prefix_options = {})
29+
puts "|| rlovelett || initialize || #{movie.paths.inspect}"
2930
@movie = movie
3031
@output_file = output_file
3132
@transcoder_options = transcoder_options
@@ -40,14 +41,17 @@ def initialize(movie, output_file, options = EncodingOptions.new, transcoder_opt
4041

4142
if path.start_with?("http")
4243
dirname = "#{TEMP_DIR}/interim/#{SecureRandom.urlsafe_base64}/"
44+
puts "|| rlovelett using random interim directory for HTTP URL #{dirname}"
4345
else
46+
puts "|| rlovelett using local directory for local file #{dirname}"
4447
dirname = "#{TEMP_DIR}/interim#{File.dirname(path)}/"
4548
end
4649
unless File.directory?(dirname)
4750
FileUtils.mkdir_p(dirname)
4851
end
4952
# Example output: /tmp/rlovelett/interim/test_gv6Hw86ryqklKNiYCu9a8w.mp4
5053
interim_path = "#{dirname}#{File.basename(path, File.extname(path))}_#{SecureRandom.urlsafe_base64}.mp4"
54+
puts "|| rlovelett interim path #{interim_path}"
5155
@movie.interim_paths << interim_path
5256
end
5357
else

0 commit comments

Comments
 (0)