4 hours ago
I want to encode my videos so that it will use direct play on most devices. However I am having mixed results no matter what I do. I encode the video before hand with ffmpeg and then add it to the server. 50% of the time the videos will not direct play on Chrome. Ideally I would like to it to work on Web/Android/Roku without transcoding.
Also, I would love to use av1, does it work on Roku? It says so in the docs, but I have heard otherwise.
Basically I just need to know what encoding 'settings' to use to make sure that it usually direct plays. I have been beating my head against the walls with this for weeks now.
The ffmpeg command I have been using is below for reference:
ffmpeg \
-hide_banner \
-loglevel quiet \
-y \
-i "$input" \
-map 0 \
-c:v libx264 \
-preset slow \
-maxrate 8M \
-bufsize 16M \
-crf 18 \
-tag:v avc1 \
-c:a aac \
-ac 2 \
-b:a 192k \
-profile:v baseline \
-pix_fmt yuv420p \
-level 3.1 \
-c:s mov_text \
-movflags +faststart \
"${base}_new.mp4"
Any help solving this issue would be greatly appreciated.
Also, I would love to use av1, does it work on Roku? It says so in the docs, but I have heard otherwise.
Basically I just need to know what encoding 'settings' to use to make sure that it usually direct plays. I have been beating my head against the walls with this for weeks now.
The ffmpeg command I have been using is below for reference:
ffmpeg \
-hide_banner \
-loglevel quiet \
-y \
-i "$input" \
-map 0 \
-c:v libx264 \
-preset slow \
-maxrate 8M \
-bufsize 16M \
-crf 18 \
-tag:v avc1 \
-c:a aac \
-ac 2 \
-b:a 192k \
-profile:v baseline \
-pix_fmt yuv420p \
-level 3.1 \
-c:s mov_text \
-movflags +faststart \
"${base}_new.mp4"
Any help solving this issue would be greatly appreciated.

