lisamelton / video_transcoding

Tools to transcode, inspect and convert videos.
MIT License
2.39k stars 160 forks source link

Batch processing Video Transcoding Gem not working on two Macs with new project. #169

Closed quasimog closed 7 years ago

quasimog commented 7 years ago

queue.txt I have been batch processing video files with the VTG for a couple years. For some reason today I can not get it to work on either computer, one on 10.12.6 and the other on the 10.13 Beta. Both have worked as early as last week.

Workflow

  1. cd into destination folder
  2. use find /path/to/my/movies -name *.MOV >queue.txt to make a file with list of files to be processed.
  3. run batch-encode.sh from destination folder

_#!/bin/bash

readonly queue="$(cd "$(dirname "$0")" && pwd)/queue.txt"

input="$(sed -n 1p "$queue")"

while [ "$input" ]; do sed -i '' 1d "$queue" || exit 1 transcode-video.sh "$input" input="$(sed -n 1p "$queue")" done_

But today it just seems to be doing nothing, not wiping the queue or anything.

Here is a quick video: https://vimeo.com/235854074

quasimog commented 7 years ago

Update: Seems to be working now, must be the way I deleted the previous entries after only half a batch was completed. The empty line at the top of the queue.txt must have been stopping the process for some reason.

lisamelton commented 7 years ago

@quasimog Well, it's a good thing I got distracted by unexpected visitors an hour ago so you could solve this yourself. :) Seriously, my apologies for being unable to respond right away.

Yes, any blank line in the queue.txt file will stop batch processing. That's actually a feature, allowing you to control the looping behavior without changing the executing script.

I'm going to assume we can close this now?

quasimog commented 7 years ago

Yes thank you very much!

Sent from my iPhone.

On Sep 28, 2017, at 1:13 AM, Don Melton notifications@github.com wrote:

@quasimog Well, it's a good thing I got distracted by unexpected visitors an hour ago so you could solve this yourself. :) Seriously, my apologies for being unable to respond right away.

Yes, any blank line in the queue.txt file will stop batch processing. That's actually a feature, allowing you to control the looping behavior without changing the executing script.

I'm going to assume we can close this now?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

lisamelton commented 7 years ago

@quasimog You are very welcome, sir.