Thanks Steve, you have been superhelpful. the find statement works well, it scans looking for .ts files just like I wanted. I am using the find.sh script you developed to call a seperate script to run ffmpeg and then pull closed caption. it seems to be working well right now. will work on removing those .ts files later on.
i consider this solved and appreciate the help -shaun On Fri, Feb 9, 2018 at 12:21 PM, Steve Boyer <[email protected]> wrote: > On Thu, Feb 8, 2018 at 9:27 PM, Shaun Nixon <[email protected]> > wrote: > > > Hi Steve, > > so i created 2 scripts: > > > > find.sh > > #! /bin/bash > > find ~/Plex-Drives/TV/TV/ -iname '*.ts' -type f -execdir > > ~/Plex-Drives/TV/TV/script.sh "{}" \; > > > > script.sh > > #!/bin/bash > > if [ ! -e lock ]; > > then touch lock; > > if ffmpeg -y -i "$1" -vf scale=-1:720 -c:v libx264 -crf 23 -preset > ultrafast > > -c:a copy $(basename "$1" .ts) "$1.mp4"; > > > > Found problem: you basically call > if ffmpeg -i ... Output_file_name "Output_file_name.ts.mp4" > line should read: > if ffmpeg -y -i "$1" -vf scale=-1:720 -c:v libx264 -crf 23 -preset > ultrafast -c:a copy "$(basename "$1" .ts).mp4"; > > So FFmpeg is like "I dunno what kinda output you want me to use!" > > then > > ccextractor "$1" -o "$(basename "$1" .ts).srt" > > #rm "$1"; > > fi > > fi > > > > > > > Steve > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". > _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
