Questions tagged [handbrakecli]

13 questions
2
votes
1 answer

Bash While loop read file by line exit on certain line

I'm writing a simple Bash script that simply the call of HadnBrakeCli for render videos. I also implemented a simple queue option: the queue file just store the line-command it has to call to start a render. So I wrote a while-loop to read one line…
1
vote
1 answer

Speed up hardcoding subs with ffmpeg vs handbrake

I have a video that i need to hardcode subtitles for legacy devices so I usually use ffmpeg for this and it works fine but its so slow. This is the command i usually use. ffmpeg -i test-cut.mp4 -vf "subtitles=test-cut.srt" -c:v libx264 -crf 24…
Grimeire
  • 339
  • 1
  • 6
  • 19
1
vote
1 answer

Multiple audio tracks with handbrake

Trying to encode video in a fairly generalized manner a typical call will look like: HandBrakeCLI --encoder-preset medium --encoder-level 4.1 --format av_mkv --encoder x264 --quality 21 --aencoder aac,ac3 --audio-copy-mask aac,ac3,dtshd,dts,mp3 -a…
Ewan Walker
  • 184
  • 1
  • 1
  • 11
1
vote
0 answers

I'm not able to execute HandBrakeCLI sh script through php program

I have a sh file named test.sh SRC=/var/www/html/plms/video/ DEST=/var/www/html/plms/mp4files/ DEST_EXT=mp4 HANDBRAKE_CLI=HandBrakeCLI for FILE in `ls $SRC` do filename=$(basename $FILE) extension=${filename##*.} …
0
votes
1 answer

Remove red text verbose in handBrake CLI

I created a script to run HandBrakeCLI and I would like to know if there is any argument that I could use to avoid all verbose in red text, like pic attached. I read the documentation and I did not find anything to reduce verbose.
MPenner
  • 23
  • 3
0
votes
0 answers

Trying to install handbrake CLI but I keep getting a gstreamer install issue. Do I have add some additional ppa for this?

I am on an ubuntu-18.04 machine. Firstly I am adding the handbrake ppa repository in this manner sudo add-apt-repository ppa:stebbins/handbrake-releases Post that I am running the installation using the following commands sudo apt -y update sudo…
0
votes
1 answer

handbrakecli/ffmpeg command to encode and auto filename(Ubuntu)

I have 2 preset .json files(from the GUI version on windows) to convert mkv to mp4. converts to h264 and adds subtitle 1 converts to h264 I'm only trying to get no.2 to work at this stage. for i in `*.mkv`; do HandBrakeCLI --preset-import-file…
Michaelp
  • 31
  • 3
0
votes
2 answers

Bash script do loop exiting early

I am having a frustrating time. I have written a script which should read a file line by line, and do an operation based on that line. Specifically, I'm using handbrake CLI to convert a partial directory (based on a file list) to another smaller…
Joel K
  • 13
  • 1
  • 4
0
votes
0 answers

Force PHP to passthrough numbers in original format

Im using PHP import_json to open a JSON file, then export_json to output just the first item as another JSON file (essentially splitting one long JSON job list into individual jobs) but I'm having a problem where somewhere along the line numbers…
0
votes
1 answer

HandbrakeCLI unrecognized file type

I am trying to setup a simple batch file to use handbrake to compress videos. I had Handbrake installed and saw that I needed to install HandbrakeCLI separately. I downloaded HandBrakeCLI.exe and placed it on C:\. I then made a preset and set it as…
RossV
  • 195
  • 3
  • 12
0
votes
1 answer

Find files and HandBrakeCLI convert in a single line

Not sure if this is possible... I'm trying to write a terminal command (linux) that would find all video files with a specific extension and then convert them using HandBrakeCLI I have the first half of that down: find . -type f -name "*.avi*"…
Chase Westlye
  • 381
  • 2
  • 6
  • 20
0
votes
1 answer

Green frames / no subtitles in converted files of watching directory (Powershell) using HandbrakeCLI + JSON preset

So I needed a script that watches a directory and converts files using HandbrakeCLI. I found a part of this powershell here on stackoverflow and I adjusted some things for my project. $global:watch = "C:\~\cmp\" ### watching…
user5609622
0
votes
1 answer

HandbrakeCLI command lines

I'm trying to convert DVD iso files to mp4 using HandbrakeCLI. I use the following line in a batch file: D:\HandBrakeCLI.exe -i "D:\input.iso" -o "D:\output.mp4" --no-markers --width "720" --height "480" --preset "HQ 480p30 Surround" --encoder…
RealFL
  • 117
  • 4
  • 11