Skip to content

Commit

Permalink
modify example
Browse files Browse the repository at this point in the history
  • Loading branch information
acjohnson committed Aug 28, 2024
1 parent 83c37a5 commit 08bb9dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/run-ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ done

#source /root/ansible/venv/bin/activate

ansible-playbook -i 127.0.0.1, /root/ansible/playbook_ffmpeg.yml -e "ansible_python_interpreter=/usr/bin/python3"
ansible-playbook -i 127.0.0.1, /root/ansible/playbook_ffmpeg.yml -e "find_base=/library/Movies/ min_file_size=2300m ansible_python_interpreter=/usr/bin/python3"
ansible-playbook -i 127.0.0.1, /root/ansible/playbook_ffmpeg.yml -e "min_file_size=390m ansible_python_interpreter=/usr/bin/python3"
ansible-playbook -i 127.0.0.1, /root/ansible/playbook_ffmpeg.yml -e "find_base=/library/Movies/ min_file_size=2000m ansible_python_interpreter=/usr/bin/python3"

date
#deactivate
3 changes: 2 additions & 1 deletion roles/ffmpeg/tasks/encode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
get_audio_track:
input_file: "{{ item[1].path }}"
register: audio_track_index
when: english_audio_track_override is not defined

- name: "Encoding..."
environment:
SOURCE: "{{ item[1].path }}"
AUDIO_TRACK: "{{ audio_track_index.audio_track }}"
AUDIO_TRACK: "{{ english_audio_track_override | default(audio_track_index.audio_track) }}"
shell: |
ffmpeg -y -i "${SOURCE}" \
-threads "{{ ffmpeg_threads }}" \
Expand Down

0 comments on commit 08bb9dd

Please sign in to comment.