don't require HLS playback: mp4 for all videos #627

Open
opened 2022-05-21 21:33:20 -04:00 by ghost · 4 comments
ghost commented 2022-05-21 21:33:20 -04:00 (Migrated from github.com)

Similar issues: #263, #464


Would be nice to be able to get MP4 format for all videos. When you go through the Real™ Twitter API, you can get the MP4 link for any video, not sure if you can through however Nitter is doing the scraping. Example:

For nitter, you end up with a plethora of .m3u8 and .m4s URLs after HLS playback is enabled. You cannot play any non-GIF videos without HLS playback enabled.

Similar issues: #263, #464 --- Would be nice to be able to get MP4 format for all videos. When you go through the Real™ Twitter API, you can get the MP4 link for any video, not sure if you can through however Nitter is doing the scraping. Example: * nitter link: https://nitter.net/sahilkapur/status/1527092111195226114 * twitter link: https://twitter.com/sahilkapur/status/1527092111195226114 * direct mp4: https://video.twimg.com/ext_tw_video/1527078073073651712/pu/vid/1280x592/co45-zhhUMy1vBC1.mp4?tag=12 For nitter, you end up with a plethora of `.m3u8` and `.m4s` URLs after HLS playback is enabled. You cannot play any non-GIF videos without HLS playback enabled.
zedeus commented 2022-05-22 18:20:28 -04:00 (Migrated from github.com)

This is implemented and (almost) fully working, but requires an implementation of video streaming I haven't gotten flawless yet due to a weird quirk with how Twitter's CDN/cache works. I want to look into it again soon, I made the implementation about two years ago.

This is implemented and (almost) fully working, but requires an implementation of video streaming I haven't gotten flawless yet due to a weird quirk with how Twitter's CDN/cache works. I want to look into it again soon, I made the implementation about two years ago.
ghost commented 2022-05-22 19:35:10 -04:00 (Migrated from github.com)

I look forward to it. \o/

I look forward to it. \o/
ericpa06 commented 2022-06-08 03:03:35 -04:00 (Migrated from github.com)

This would be only thing remaining to make Nitter perfect 👌 Hope you guys are able to implement it soon.

This would be only thing remaining to make Nitter perfect 👌 Hope you guys are able to implement it soon.
zedeus commented 2022-06-08 03:37:35 -04:00 (Migrated from github.com)

It's implemented here #634 but needs more testing since Twitter's mp4 streams seemingly aren't meant to be streamed. Weird handling of cache misses is necessary by retrying requests for up to several seconds.

It's implemented here #634 but needs more testing since Twitter's mp4 streams seemingly aren't meant to be streamed. Weird handling of cache misses is necessary by retrying requests for up to several seconds.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
PAS/nitter#627
No description provided.