deniscerri / ytdlnis

Android Video/Audio Downloader app using yt-dlp
GNU General Public License v3.0
4.02k stars 142 forks source link

[BUG] Cannot send videos downloaded from Facebook in WhatsApp. #306

Closed mridiot0 closed 1 year ago

mridiot0 commented 1 year ago

** Before making an issue make sure you are using the latest version of yt-dlp in the settings. Perhaps try using the nightly version of yt-dlp. If that didn't help, proceed with the issue

Yeah I'm using nightly version

Describe the bug A clear and concise description of what the bug is.

  1. Any video downloaded from Facebook cannot be shared in WhatsApp. It's just showing this video is not supported please choose another video . Though the video is playing in any video player even on the WhatsApp preview page but when I tap send, I see the message.
    1. When I allow all file access in the app and then if I download any other videos, it's just not showing in my file manager (Google Files). To Reproduce Steps to reproduce the behavior:
    2. Download any video from Facebook and try to share it in WhatsApp it will pop up the message. (Although some videos works but the working rate is too low like 1 in 40-50 videos.)
    3. Go to settings and allow all file access then download any videos (For me it happened in Facebook) It won't show in my file manager.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots / Video Recording If applicable, add them to help explain your problem.

(please complete the following information):

Additional context Add any other context about the problem here.

For the first problem I think there might be problem in the video codec format although I tried using all the available formats (mp4, mkv etc.) and codecs (av1, vp9 etc.). I don't know what's causing the problem as some videos are working and there's no difference in videos and also I have the cookies enabled for Facebook. For the second problem I have no idea.

deniscerri commented 1 year ago
  1. Select a video format that has avc1 format PLUS go down in the format list and select a m4a or aac format. Just to make sure set the container to mp4 aswell. This will surely work

  2. When you gave access to all files you probably turned off caching. Turn it back on as it seems your device cant write directly to that folder you have set

mridiot0 commented 1 year ago

Hey thanks for the reply, I can't understand the solution you provided, like is there any "avc1" codec format Or "m4a" video format available for videos. I checked all the settings and the find that the formats are only available for audio only for video there's only "mp4, mkv, webm", and for the codecs "av1, vp9, avc, hevc"

Is there anything I'm missing 😕. Can you please rectify me.

deniscerri commented 1 year ago

Avc1 is avc. 1 is kinda redundant in formats so choose that in the preferred codec.

What i was referring to though is when you are in the dow load card. Click the format list and find a format that is avc AND choose an audio that is m4a

Currently in 1.6.7 it doesnt have preferred audio codec so u have to do it manually But in 1.6.8 u wont have to worry

mridiot0 commented 1 year ago

Sorry for late reply, 😅 I was busy.

I tried what you said but it seems it doesn't work at all any other workaround I can do?

teddysulaimanGL commented 1 year ago

Screenshot_20231028_084319.jpg Press this button, wait for a moment

Screenshot_20231028_084520.jpg Select one of the video stream that has this codec, scroll all the way down and you'll find this ⬇️

Screenshot_20231028_084631.jpg After you found this, select the audio that has this codec as well

mridiot0 commented 1 year ago

Ok that's different, I was changing the formats and codecs in settings in processing page. Let me give it a try.

Edit: I've tried what you said but 1st problem: there's no update format button 2nd problem: there's no avc format in video and there's no m4a format in audio (the video I'm trying to download)

teddysulaimanGL commented 1 year ago

AVC might not be available most of the time on Facebook videos, so the only thing you can do is to re-encoding the video you're about to download so it can be uploaded to WhatsApp status or whatever

mridiot0 commented 1 year ago

And how can I do that can explain plz 😄

mridiot0 commented 1 year ago

Or may be close this issue as there's no proper solution for every video. Some videos work though as they might have the proper encoding format. So, might close the issue.

deniscerri commented 1 year ago

send us the link

mridiot0 commented 1 year ago

Are you talking about the Facebook link?? This is the one: https://www.facebook.com/reel/308632441916471?mibextid=EVDHJDB9vBtcBeCT

deniscerri commented 1 year ago

Looks like the extractor is broken again, cant access this.

mridiot0 commented 1 year ago

Then what to do😕

deniscerri commented 1 year ago

As you early mentioned some videos have the proper encoding and some dont. If you can share a video but no audio, then u need to choose the audio format in the bottom of the format list as m4a or aac. That will fix it.