Skip to content

Commit

Permalink
Push out fix for hevc on apple deivces
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonjchen committed Jul 11, 2024
1 parent e7ac82f commit 08dcc0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions clip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,14 @@ else
ffmpeg -y -i "$VIDEO_RAW_OUTPUT" -ss "$SMEAR_AMOUNT" -c:v libx264 -b:v "$TARGET_BITRATE" -pix_fmt yuv420p -preset medium -movflags +faststart -f MP4 "$VIDEO_OUTPUT"
fi

# If the codec is hevc, make sure to tag it as such so that it's compatible on Apple devices
if [ "$VIDEO_FORMAT" = "hevc" ]; then
# Move the output to a temporary file
mv "$VIDEO_OUTPUT" "$VIDEO_OUTPUT.tmp"
ffmpeg -i "$VIDEO_OUTPUT.tmp" -c copy -vtag hvc1 "$VIDEO_OUTPUT"
rm "$VIDEO_OUTPUT.tmp"
fi

ctrl_c

RENDER_COMPLETE_MESSAGE="Finished rendering $SEGMENT_ID to $VIDEO_OUTPUT."
Expand Down

0 comments on commit 08dcc0c

Please sign in to comment.