MP4Box -info doesn't appear to be on stdout. Can't redirect to file or capture in scripts
Bug #1205754 reported by
Eric Morgan
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gpac (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have scripts that use MP4Box -info to grab video details like resolution. They have stopped working because the backticks no longer capture the out of the -info. I also can't redirect the output to a file using MP4Box -info file.mp4>text.txt. The info is displayed on the terminal and the text.txt is empty.
To post a comment you must log in.
Try MP4Box -info <filename> 2>&1 | grep <what_to_find> and / or MP4Box -info <filename> &> <name_of_ file_to_ save_into> . This redirects stderr to stdout, where it can be captured.