Skip to content

Commit

Permalink
Strange change of size of video hosted by cloudflarestream
Browse files Browse the repository at this point in the history
  • Loading branch information
emarsden committed Nov 4, 2023
1 parent eb3a8a1 commit f3f6941
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/fetching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use common::check_file_size_approx;


#[tokio::test]
#[cfg(not(feature = "libav"))]
async fn test_dl_none() {
let mpd_url = "https://cloudflarestream.com/31c9291ab41fac05471db4e73aa11717/manifest/video.mpd";
let out = env::temp_dir().join("cfnone.mp4");
Expand All @@ -47,7 +46,8 @@ async fn test_dl_mp4() {
.with_authentication("user".to_string(), "dummy".to_string())
.download_to(out.clone()).await
.unwrap();
check_file_size_approx(&out, 60_939);
// Curious: this download size changed abruptly from 60_939 to this size early Nov. 2023.
check_file_size_approx(&out, 325_334);
let format = FileFormat::from_file(out.clone()).unwrap();
assert_eq!(format, FileFormat::Mpeg4Part14Video);
}
Expand Down Expand Up @@ -517,7 +517,7 @@ async fn test_progress_observer() {
.add_progress_observer(Arc::new(DownloadProgressionTest{}))
.download_to(out.clone()).await
.unwrap();
check_file_size_approx(&out, 60_939);
check_file_size_approx(&out, 325_334);
let format = FileFormat::from_file(out.clone()).unwrap();
assert_eq!(format, FileFormat::Mpeg4Part14Video);
}
Expand Down Expand Up @@ -623,7 +623,7 @@ async fn test_follow_redirect() {
.worst_quality()
.download_to(out.clone()).await
.unwrap();
check_file_size_approx(&out, 60_939);
check_file_size_approx(&out, 325_334);
}


1 change: 0 additions & 1 deletion tests/transcoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ async fn test_dl_mkv() {
.unwrap();
let format = FileFormat::from_file(out.clone()).unwrap();
assert_eq!(format, FileFormat::MatroskaVideo);
println!("DASH content saved to MKV container at {}", out.to_string_lossy());
}

#[tokio::test]
Expand Down

0 comments on commit f3f6941

Please sign in to comment.