-
Notifications
You must be signed in to change notification settings - Fork 902
Text file busy (os error 26) when trying to download a video #62
Comments
Lol, got the exact error minutes after you |
I got the same issue yesterday when I first tried running it from the Docker container. This is not a solution, but a workaround: I used a 3rd party tool (like any "YouTube Video Downloader" Website) to download the video and copied it into the repository folder. I could then successfully decode the video into the zip file. |
In an attempt to investigate the problem I changed the code in println!("Starting the download, there is no progress bar");
let output = YoutubeDl::new(&args.url.expect("No URL in params when run_download"))
.youtube_dl_path(".")
.format("best")
.download(true)
.run();
let _video = output?.into_single_video().unwrap(); And now the error is a different one:
First I thought the issue might occur because the app cannot write into the working directory. But I can rule this out because I verified with a quick test that the program can indeed create and write into a file. |
Perhaps the method download is lacking permissions? or is in a place where permissions need sudo? |
If my understanding of the youtube_dl crate is correct, then it downloads the Somewhere in the process there must be a permission issue with the docker container. @Shyvadi The user in the docker container is root, so missing sudo likely is not the exact problem here. |
@beyse Would you explain more on how did you do it? downlaoded the video, where did you put it exactly and how did you decode it? |
@ayhamo Yes, so here is a step by step guide: This guide assumes you have Inside the Step 1 - PreparationNavigate into the binary folder using Step 2 - Check StuffMake sure you have the
If you don't have this. Run Step 3 - Download VideoDownload the video from YouTube ./yt-dlp -f mp4 -o video.mp4 VIDEO_URL For example I used: ./yt-dlp -f mp4 -o video.mp4 https://www.youtube.com/watch?v=itrkrlFysvM This will create a file called Step 4 - DecodeYou are now ready to decode the video using ./isg_4real and use the text-based user interface to decode the video or use the command line like this: ./isg_4real dislodge -i video.mp4 -o decoded.mp4 Where
After that you can play the video file and you should see something like this: |
I think I found a solution to the problem @fiveraptor @Shyvadi. Please checkout my branch from the #72. If it works for you now I would call it resolved. |
I am on a M1 mac and have tried it according to instructions with docker. however, always comes this error:
The text was updated successfully, but these errors were encountered: