StefanLobbenmeier / youtube-dl-gui

A cross-platform GUI for youtube-dl made in Electron and node.js
GNU Affero General Public License v3.0
1.55k stars 62 forks source link

Add video compatibility with Twitter (uploading videos not downloading) #98

Open jaylay99 opened 10 months ago

jaylay99 commented 10 months ago

Is your feature request related to a problem? Please describe. Yes, when I download videos as MP4 and I try to reupload them to Twitter, I get an error. I have to re-encode them using Shutter Encoder

Describe the solution you'd like Create en encoder that is compatible with Twitter

Describe alternatives you've considered Using Shutter Encoder/Handbrake.

Additional context (when uploading to Twitter using videos downloaded with Open Video Downloader) image

StefanLobbenmeier commented 10 months ago

Please first find out what the desired format is that Twitter upload supports.

there are already some options available to choose different video formats have you tried them all?

StefanLobbenmeier commented 10 months ago

Looking at this, could it be caused by a resolution that is higher than 1080p? https://typefully.com/blog/video-formats-twitter

jaylay99 commented 10 months ago

Looking at this, could it be caused by a resolution that is higher than 1080p? https://typefully.com/blog/video-formats-twitter

Ty for looking into this, I'm really satisfied with this GUI aside from this one issue. So far I've tried both formats offered by the GUI (MP4/MKV) but Twitter only supports MP4 + 512MB and 60fps (free user) All videos tested matched the requirements. This only seems to happen when strictly when I download YouTube videos and upload them to Twitter. When I download Twitter videos directly then re-upload them to Twitter, it seems to work fine (although I haven't tested it enough).

Tests I've done so far : (tested when uploading in a comment, not as a Tweet post)

I hope I provided enough details, feel free to let me know if you need more. Thanks!

EDIT : I've tested again with Shutter Encoder but using VP9 compression (default settings + 43MB file), Twitter gets an error when uploading that file. The issue seems to be caused by the compression technique. MPC-BE info : https://pastebin.com/edfgx3Qq

Edit 2 : Using Jdownloader 2 (using AVC compression), I downloaded the same video and I could re-upload it to Twitter with success.

Proposed solution : give us the ability to select AVC compression for videos

StefanLobbenmeier commented 10 months ago

I see, thanks for sharing an example URL.

In the UI you can select the video format as well, but it has to be turned on in the settings: image

In your case I got an error when I went for one resolution, but I managed to find one that works: image

I got it by selecting that resolution: image

I also checked for higher resolutions and found this one to be the highest one that worked: image