Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Stream to a media player and close it, --frag* files not deleted and re-used #11054
Comments
|
I'm having the same issue, would be nice if there was a commandline to delete the fragfiles when playing to a stream |
|
A i use mostly batch scripts to run the program embedded in various applications i added this at the end of all my batches for now :
Still would like to see this automated as i still have some tools used in direct without batch scripts and the --frag* files are created and not removed automatically, need a manual cleanup or the first fragments already stored will be used for next stream to a media player, and more than anything i would like to see a possibility to set a folder to where all those --frag files go, would really like to be able to tell the program to use my Ramdisk for all this stuff. Hopefully the guys working on this wonderful tool will have some time at some point to add such changes. One can only hope ;) |
this problem should be fixed with #9937, it will remove the need for |
|
Hello , Will the part of your code be merge with master project at some point ? Your list of changes seems interesting and looks like it will solve the issues indeed, hope to see this added to main project soon. Thank you |
it should be reviewed by another core developer before merging. |
|
Well... just need a bit of patience to see this fixed then i hope. Thank you for your answers and hopefully your part of the code will make it soon into master branch. |
|
@jalba69 The pull request that @remitamine mentioned (#10993) got merged. It should fix your issue. Can you please confirm whether it is still a problem? |
|
Sorry for the very late reply ( was not notified) , tested and it seems to work indeed, i see no more frag files remaining :) thanks a lot and sorry again for the long delay in reply |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.10.26. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Hello,
Firs let me say thank you for this wonderful tool,
While using it to stream to a media player on some URL's it downloads --frag* files and if we stop the player for whatever reasons the --frag* files remain and are not deleted on exit.
Plus i noticed that if i use a different video URL on the same website the --frag* files already stored and not deleted will be used for the first part of the video in the media player, so i end up with a video having mixed content from 2 videos.
The --frag* files created during a stream to media player simply needs to be deleted once the application is closed.
Moreover we can't set the location path where we want to store those --frag* files, in my case i'd like to set them on my Ramdisk for multiples reasons :
For example I have a custom button on my browser toolbar that automatically copy the browser page URL and calls a batch file where the url is passed automatically to youtube-dl and the media streamed to MPC-HC, on a page having a video media i click the button on my toolbar and all is read in the media player, all this in a single click.
In this particular case when called from the browser with a batch file the --frag* files will be created ( and remain ) in my browser installation folder, not on the youtube-dl folder like when i call the program from there directly like i also do, in fact i call it from different programs to stream to MPC-HC and end up with --frag* files remaining and stored all over the place.
Plus using a Ramdisk for all those write/read small files will be a nice thing to speed up and ease the thing too.
Thanks a lot for your program, can't spend a day without using it :)