How do I read back errors?
See original GitHub issueWhen I get this back from ffmpeg ffprobe error (see stderr output for detail)
I do not know how to check the stderr output for the details.
import sys
import ffmpeg
from ffmpeg import Error as FFmpegError
try:
duration = ffmpeg.probe('https://www.youtube.com/watch?v=cv4123_39ddfa324LB23MsYg')['format']['duration']
except FFmpegError as e:
print(e)
# doesn't work
# for line in sys.stderr:
# print(line)
# doesn't work
# data = sys.stderr.readlines()
# print(data)
Couldn’t find an example of this in the documentation and couldn’t figure it out myself.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:18
- Comments:7
Top Results From Across the Web
Readback & Hearback Error Between Pilots and ATC
80% of readback errors that occur when the pilot reads back the instruction incorrectly are associated with high speed/fast delivery by the ATCo ......
Read more >Read-back or Hear-back | SKYbrary Aviation Safety
An uncorrected erroneous read-back (known as a hear-back error) may lead to a deviation from the intended clearance and may not be detected...
Read more >Despite Technology, Verbal Orders Persist, Read Back is Not ...
The readback process is perhaps the single most important strategy to reduce errors with verbal orders. Understand the indication. Ensure that ...
Read more >Understanding the Python Traceback
In this step-by-step tutorial, you'll learn how to read and understand the information you can get from a Python traceback. You'll walk through...
Read more >How to Read Email Bounce Backs and Errors - MxToolbox Blog
Bounce backs and error codes for email can be very mysterious and misleading. ... To read all of the blogs in this series,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
With some finagling I came up with this:
capture_stdout=True, capture_stderr=True
torun()
(out, err)
so you can receive those; however…Just ran into this as well (could not figure out how to read stderr coming from probe). Finally (after a lot of unsuccessful googling) I found the answer in a nicely placed comment in the the source code:
From ffmpeg-python/ffmpeg/_probe.py:
So this is what worked for me: