Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log output messages #453

Closed
dev0k opened this issue Oct 3, 2012 · 5 comments
Closed

Log output messages #453

dev0k opened this issue Oct 3, 2012 · 5 comments

Comments

@dev0k
Copy link

@dev0k dev0k commented Oct 3, 2012

hi,

I would like to save all output from the console to a text file. I need the download status and everything. Is that possible?

But I need the status in real time, not after the download.

@Tailszefox
Copy link
Contributor

@Tailszefox Tailszefox commented Oct 3, 2012

Which OS are you using? On Linux, a simple redirection seems to work quite well.

> youtube-dl 'https://www.youtube.com/watch?v=BaW_jenozKc' > log.txt

> less log.txt
[youtube] Setting language
[youtube] BaW_jenozKc: Downloading video webpage
[youtube] BaW_jenozKc: Downloading video info webpage
[youtube] BaW_jenozKc: Extracting video information
[download] Destination: BaW_jenozKc.mp4
^M[download]   0.1% of 1.90M at  271.28k/s ETA 00:07^M[download]   0.2% of 1.90M at    7.75k/s ETA 04:11^M[download]   0.4% of 1.90M at    9.45k/s ETA 03:25^M[download]   0.8% of 1.90M at    7.16k/s ETA 04:29^M[download]   1.1% of 1.90M at    9.98k/s ETA 03:12^M[download]   1.7% of 1.90M at   13.70k/s ETA 02:19^M[download]   2.9% of 1.90M at   13.15k/s ETA 02:23^M[download]   3.5% of 1.90M at   13.21k/s ETA 02:22^M[download]   4.2% of 1.90M at   13.00k/s ETA 02:23^M[download]   4.8% of 1.90M at   13.69k/s ETA 02:15^M[download]   5.9% of 1.90M at   16.15k/s ETA 01:53^M[download]   8.1% of 1.90M at   18.73k/s ETA 01:35^M[download]   9.8% of 1.90M at   20.04k/s ETA 01:27^M[download]  11.4% of 1.90M at   20.69k/s ETA 01:23^M[download]  12.7% of 1.90M at   22.13k/s ETA 01:16^M[download]  15.4% of 1.90M at   25.04k/s ETA 01:05^M[download]  18.9% of 1.90M at   28.72k/s ETA 00:55^M[download]  23.1% of 1.90M at   24.10k/s ETA 01:02^M[download]  25.2% of 1.90M at   25.08k/s ETA 00:58^M[download]  27.5% of 1.90M at   25.91k/s ETA 00:54^M[download]  29.6% of 1.90M at   25.59k/s ETA 00:53^M[download]  30.8% of 1.90M at   25.77k/s ETA 00:52^M[download]  32.4% of 1.90M at   25.89k/s ETA 00:50^M[download]  33.9% of 1.90M at   26.63k/s ETA 00:48^M[download]  36.8% of 1.90M at   27.50k/s ETA 00:44^M[download]  39.0% of 1.90M at   28.18k/s ETA 00:42^M[download]  41.5% of 1.90M at   29.13k/s ETA 00:39^M[download]  44.7% of 1.90M at   30.26k/s ETA 00:35^M[download]  47.8% of 1.90M at   30.64k/s ETA 00:33^M[download]  49.7% of 1.90M at   30.83k/s ETA 00:31^M[download]  51.6% of 1.90M at   31.29k/s ETA 00:30^M[download]  54.2% of 1.90M at   30.34k/s ETA 00:29^M[download]  55.6% of 1.90M at   29.84k/s ETA 00:28^M[download]  56.5% of 1.90M at   29.69k/s ETA 00:28^M[download]  57.7% of 1.90M at   29.41k/s ETA 00:28^M[download]  58.7% of 1.90M at   27.92k/s ETA 00:28^M[download]  59.2% of 1.90M at   27.62k/s ETA 00:28^M[download]  59.9% of 1.90M at   26.07k/s ETA 00:29^M[download]  60.2% of 1.90M at   26.21k/s ETA 00:29^M[download]  60.8% of 1.90M at   26.39k/s ETA 00:28^M[download]  62.1% of 1.90M at   26.72k/s ETA 00:27^M[download]  64.7% of 1.90M at   27.34k/s ETA 00:25^M[download]  67.9% of 1.90M at   27.53k/s ETA 00:22^M[download]  69.5% of 1.90M at   27.82k/s ETA 00:21^M[download]  72.0% of 1.90M at   27.34k/s ETA 00:19^M[download]  73.3% of 1.90M at   27.52k/s ETA 00:18^M[download]  75.6% of 1.90M at   27.50k/s ETA 00:17^M[download]  76.9% of 1.90M at   26.89k/s ETA 00:16^M[download]  77.6% of 1.90M at   25.81k/s ETA 00:16^M[download]  78.0% of 1.90M at   25.46k/s ETA 00:16^M[download]  78.3% of 1.90M at   23.67k/s ETA 00:17^M[download]  78.5% of 1.90M at   23.72k/s ETA 00:17^M[download]  78.8% of 1.90M at   23.54k/s ETA 00:17^M[download]  79.2% of 1.90M at   23.33k/s ETA 00:17^M[download]  79.7% of 1.90M at   22.97k/s ETA 00:17^M[download]  80.0% of 1.90M at   22.93k/s ETA 00:16^M[download]  80.6% of 1.90M at   22.28k/s ETA 00:16^M[download]  80.9% of 1.90M at   22.23k/s ETA 00:16^M[download]  81.6% of 1.90M at   22.27k/s ETA 00:16^M[download]  82.8% of 1.90M at   22.44k/s ETA 00:14^M[download]  85.1% of 1.90M at   20.48k/s ETA 00:14^M[download]  86.3% of 1.90M at   20.37k/s ETA 00:13^M[download]  87.0% of 1.90M at   20.43k/s ETA 00:12^M[download]  88.5% of 1.90M at   20.56k/s ETA 00:10^M[download]  90.2% of 1.90M at   20.71k/s ETA 00:09^M[download]  91.9% of 1.90M at   20.57k/s ETA 00:07^M^M[download]  92.8% of 1.90M at   20.64k/s ETA 00:06^M[download]  94.4% of 1.90M at   20.59k/s ETA 00:05^M[download]  95.3% of 1.90M at   20.71k/s ETA 00:04^M[download]  97.2% of 1.90M at   20.81k/s ETA 00:02^M[download]  98.6% of 1.90M at   20.97k/s ETA 00:01^M[download] 100.0% of 1.90M at   21.04k/s ETA 00:00

If you use cat or tailf on the file you can get the progress in real time the same way you'd see it without redirecting, as well, as it interprets the control characters.

@dev0k
Copy link
Author

@dev0k dev0k commented Oct 4, 2012

Hello,

thank you.

now i have a little question. Can i read the current status with die process id from linux?

@puneet1984
Copy link

@puneet1984 puneet1984 commented Nov 22, 2013

hi,
thanks a nice feature but....
i would like to know can we make logging every download by default, like some where in the config file if we have one...
that is whenever youtube-dl downloads a file it should record the website , ID , title and file size in a log file by default..

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 22, 2013

@puneet1984 open a new issue for that, this issue is for logging the progress to a file

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 27, 2016

Duplicate of #6990.

@dstftw dstftw closed this Mar 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.