[FFmpeg-user] Problem with videos not playing in mobile browser
Jess Portnoy
jess.portnoy at kaltura.com
Tue Jun 28 16:54:13 EEST 2022
Hello,
Could you share a URI for one of these videos?
Also, do they play on mobile before you add the text filter?
Cheers,
--
May the source be with you,
Jess Portnoy
________________________________
From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> on behalf of Dr Mark A. Garlick <magarlick2 at gmail.com>
Sent: 28 June 2022 14:44
To: ffmpeg-user at ffmpeg.org <ffmpeg-user at ffmpeg.org>
Subject: [FFmpeg-user] Problem with videos not playing in mobile browser
CAUTION: External email - use caution opening links or attachments
Dear all
I am new to this forum.
I have noticed that some of my videos, encoded with ffmpeg and uploaded
to my websites, do not play on mobile web browsers, but they work
perfectly well on desktop browsers on my Linux machine. I get either a
message saying 'file is corrupted' or no message at all (just a blank
video) depending on the browser. I've tried Brave, Firefox and Chrome,
on an iPhone, a Samsung tablet and a Samsung Galaxy s10 plus. The 'bad'
videos consistently fail to play on mobile devices.
I've run an ffprobe on two .mp4 files: one which works on a mobile and
desktop browser (good.mp4) and one which will only play on a desktop
browser (bad.mp4. These are partial outputs (the rest of the output for
the two files seems identical):
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bad.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.76.100
Duration: 00:00:30.02, start: 0.000000, bitrate: 1582 kb/s
Stream #0:0(und): Video: h264 (High 4:2:2) (avc1 / 0x31637661),
yuv422p10le(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 1574 kb/s, 24 fps,
24 tbr, 12288 tbn, 48 tbc (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 2 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'good.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.76.100
Duration: 00:00:30.00, start: 0.000000, bitrate: 4824 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 4821 kb/s, 24
fps, 24 tbr, 12288 tbn, 48 tbc (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
The command I used to encode them both (via a bash scrip on Linux) is
for f in *.mp4
do ffmpeg -i "$f" -vf "drawtext=text='© Mark A. Garlick /
markgarlick.com':x=w-tw-10:y=10:
fontfile=/usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS.ttf:fontsize=25:fontcolor=white"
-write_tmcd false -s 1280x720 -preset medium -crf 24 "full/${f%.*}.mp4"
done
Can anybody offer any insight?
My thanks.
--
Dr Mark A. Garlick *Dr Mark A. Garlick
<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.markgarlick.com%2Fabout.html&data=05%7C01%7C%7C54c1a7ae2e714a0299bd08da590c5c94%7C0c503748de3f4e2597e26819d53a42b6%7C1%7C0%7C637920206870831109%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=gxONPTU6zVxz7L45fJ%2F%2FfgDjFoUta%2FfmC0aBZghTic0%3D&reserved=0> * [Follow me on Facebook!]
<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2Fmarkgarlickcom%2F&data=05%7C01%7C%7C54c1a7ae2e714a0299bd08da590c5c94%7C0c503748de3f4e2597e26819d53a42b6%7C1%7C0%7C637920206870831109%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=eFR3Mh6BwOoCBYWiELfnthIpIZ4iM4ms104A%2FYwxpyI%3D&reserved=0> [Follow me on Twitter!]
<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FSpaceBoffin&data=05%7C01%7C%7C54c1a7ae2e714a0299bd08da590c5c94%7C0c503748de3f4e2597e26819d53a42b6%7C1%7C0%7C637920206870831109%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=pcP%2Fo4vM48T5iegMKEg%2F9dXbCFbgoCzfo28P8FsjxLk%3D&reserved=0> [Follow me on LinkedIn!]
<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmark-a-garlick-2355a350%2F&data=05%7C01%7C%7C54c1a7ae2e714a0299bd08da590c5c94%7C0c503748de3f4e2597e26819d53a42b6%7C1%7C0%7C637920206870831109%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ChvNWThSKEjk46rTkm7WNMWrGZYBj9yvljdGWd6tvvU%3D&reserved=0> [Subscribe on
YouTube!] <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fuser%2Fmagarlick&data=05%7C01%7C%7C54c1a7ae2e714a0299bd08da590c5c94%7C0c503748de3f4e2597e26819d53a42b6%7C1%7C0%7C637920206870831109%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nXd%2B%2Fl3b8LYDtqi3ga4EDDCr84x2BULzpFBWsvlAjec%3D&reserved=0> [Follow me on
Instagram!] <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fspaceboffin&data=05%7C01%7C%7C54c1a7ae2e714a0299bd08da590c5c94%7C0c503748de3f4e2597e26819d53a42b6%7C1%7C0%7C637920206870831109%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=X1A6hv5n0YuAy7K0V%2BLewNb%2BfysfXP12WzgvT09aevY%3D&reserved=0>
Illustrator | Author | Animator
e: mag at markgarlick.com <mailto:mag at markgarlick.com>
t:+44 7952 830 945
w: markgarlick.com <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.markgarlick.com%2F&data=05%7C01%7C%7C54c1a7ae2e714a0299bd08da590c5c94%7C0c503748de3f4e2597e26819d53a42b6%7C1%7C0%7C637920206870831109%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=uIwxqmWDIYRkNTpfud5Hz37hyuLAfnk6qRb2pcDstE0%3D&reserved=0>
w: space-art.co.uk <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.space-art.co.uk%2F&data=05%7C01%7C%7C54c1a7ae2e714a0299bd08da590c5c94%7C0c503748de3f4e2597e26819d53a42b6%7C1%7C0%7C637920206870831109%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=d0ahEMZLNudvdS7AIISzNsDPj0x5e3%2B3P%2F1f%2FKm%2FLu8%3D&reserved=0>
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fffmpeg.org%2Fmailman%2Flistinfo%2Fffmpeg-user&data=05%7C01%7C%7C54c1a7ae2e714a0299bd08da590c5c94%7C0c503748de3f4e2597e26819d53a42b6%7C1%7C0%7C637920206870831109%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=OYN6oL4R1yJS1J%2FzKJWOg0810hL0yK7H%2BQEgV5QJ4qo%3D&reserved=0
To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list