WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.92k stars 972 forks source link

MP4 encoded won't play in mobile #9263

Closed markginter31 closed 4 months ago

markginter31 commented 4 months ago

When I encode in MP4 - the video will play in all desktop browsers, but will not play in mobile. When I encode in WEBM - the video will play on both desktop and mobile.

To Reproduce

  1. enocode in MP4 - won't play
  2. encode in WEBM - will play

Expected behavior MP4 will play in both desktop and mobile

Error Logs No errors appear in logs. Running the latest version.

Desktop (please complete the following information): Desktop -- Fedora 40 Firefox/Chrome Mobile - Samsung S20 - Samsung Browser / Chrome

I'm not sure where to look to find why the MP4 doesn't play but the WEBM does.

DanielnetoDotCom commented 4 months ago

What exactly option are you using to encode?

automatic MP4 or are you forcing LOW, HD and SD?

markginter31 commented 4 months ago

First I noticed it wouldn't work when all the resolutions were checked in the encoder (I assume that's automatic) Then I only chose 480, 720, and 1080 and MP4 still wouldn't work.

Both times I got MP4's unplayable in mobile but playable on desktop.

Is there a way in the mobile browser to check for errors?

DanielnetoDotCom commented 4 months ago

Is this failing on iphone and android?

can you please try this?

https://github.com/WWBN/AVideo/issues/9207#issuecomment-2226652032

markginter31 commented 4 months ago

I don't have access to an iPhone to try.

I made those changes but still can't play mp4s.

You can see my test runs at https://video.oakhillcog.info

I'm really stumped.

On Mon, Jul 22, 2024, 5:43 PM Daniel Neto @.***> wrote:

Is this failing on iphone and android?

can you please try this?

9207 (comment)

https://github.com/WWBN/AVideo/issues/9207#issuecomment-2226652032

— Reply to this email directly, view it on GitHub https://github.com/WWBN/AVideo/issues/9263#issuecomment-2243864789, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYBLUVR7KZBVDYI2KBBU23ZNV4HFAVCNFSM6AAAAABLH7IL7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBTHA3DINZYHE . You are receiving this because you authored the thread.Message ID: @.***>

markginter31 commented 4 months ago

Also - the first couple of videos were fine (the ones at the beach). It's the recent ones I tried uploading that aren't working.

On Mon, Jul 22, 2024, 5:43 PM Daniel Neto @.***> wrote:

Is this failing on iphone and android?

can you please try this?

9207 (comment)

https://github.com/WWBN/AVideo/issues/9207#issuecomment-2226652032

— Reply to this email directly, view it on GitHub https://github.com/WWBN/AVideo/issues/9263#issuecomment-2243864789, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYBLUVR7KZBVDYI2KBBU23ZNV4HFAVCNFSM6AAAAABLH7IL7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBTHA3DINZYHE . You are receiving this because you authored the thread.Message ID: @.***>

DanielnetoDotCom commented 4 months ago

Just tested this one on iPhone and works fine

https://video.oakhillcog.info/channel/OakHillVideoChannel/video/5/sunrise-reprise

DanielnetoDotCom commented 4 months ago

I am not 100%, can you please try longer videos 1 minute or more?

markginter31 commented 4 months ago

Just posted a 2 minute video. MP4 won't work. What's really weird is that those sunrise videos uploaded and converted fine a month ago.... But any of the newer videos don't (yet) 😀

On Tue, Jul 23, 2024, 7:52 AM Daniel Neto @.***> wrote:

I am not 100%, can you please try longer videos 1 minute or more?

— Reply to this email directly, view it on GitHub https://github.com/WWBN/AVideo/issues/9263#issuecomment-2245025836, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYBLUWCHPSRUSYVY2GELR3ZNY7XPAVCNFSM6AAAAABLH7IL7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBVGAZDKOBTGY . You are receiving this because you authored the thread.Message ID: @.***>

DanielnetoDotCom commented 4 months ago

Weird,

I uploaded your video and I got the same problem here

https://demo.avideo.com/video/436/mp4-test-on-mobile

also I upload a different MP4 and there is no issue

https://demo.avideo.com/video/438/mp4-test-2

so the issue is in the source file, there is probably something needs to be added on FFMPEG, but I am not sure what is in your mp4 video that is different from mine

If you want to inspect you can use those 2 files

your file that fail to play on mobile

https://github.com/user-attachments/assets/5660b98d-d7c0-4612-a054-67a2715a3522

a file that plays on mobile

https://github.com/user-attachments/assets/6d0fbbe0-46e2-488d-87e3-0426ffb318da

markginter31 commented 4 months ago

I figured it out. At some point I set an option in my phone camera to HDR10+ once these videos were uploaded and converted the video codec showed as H.264 (High Profile 10) with a frame rate of 120. The videos that work showed video codec of H.264 (High Profile) with a frame rate of 24

I turned off the HDR10+ setting and now videos upload and encode fine. Sorry for the hassle. It was my own fault.

On Tue, Jul 23, 2024, 9:17 AM Daniel Neto @.***> wrote:

Weird,

I uploaded your video and I got the same problem here

https://demo.avideo.com/video/436/mp4-test-on-mobile

also I upload a different MP4 and there is no issue

https://demo.avideo.com/video/438/mp4-test-2

so the issue is in the source file, there is probably something needs to be added on FFMPEG, but I am not sure what is in your mp4 video that is different from mine

If you want to inspect you can use those 2 files your file that fail to play on mobile

https://github.com/user-attachments/assets/5660b98d-d7c0-4612-a054-67a2715a3522 a file that plays on mobile

https://github.com/user-attachments/assets/6d0fbbe0-46e2-488d-87e3-0426ffb318da

— Reply to this email directly, view it on GitHub https://github.com/WWBN/AVideo/issues/9263#issuecomment-2245229991, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYBLUTLJMJV5HWEJ6BLGADZNZJVTAVCNFSM6AAAAABLH7IL7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBVGIZDSOJZGE . You are receiving this because you authored the thread.Message ID: @.***>