MP4Box -info doesn't appear to be on stdout. Can't redirect to file or capture in scripts

Bug #1205754 reported by Eric Morgan
10
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.

Revision history for this message
Ralf Herold (ralf-herold) wrote :

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.

Revision history for this message
Joe (exekutive) wrote :

the output of stderr is really ugly. It looks like

[0mImporting AVI Video: | | (01/100)
Importing AVI Video: | | (02/100)
Importing AVI Video: | | (03/100)
Importing AVI Video: | | (04/100)
Importing AVI Video: |= | (05/100)
Importing AVI Video: |= | (06/100)
Importing AVI Video: |= | (07/100)
Importing AVI Video: |= | (08/100)
Importing AVI Video: |= | (09/100)
Importing AVI Video: |== | (10/100)
Importing AVI Video: |== | (11/100)
Importing AVI Video: |== | (12/100)
Importing AVI Video: |== | (13/100)
Importing AVI Video: |== | (14/100)
Importing AVI Video: |=== | (15/100)
Importing AVI Video: |=== | (16/100)
Importing AVI Video: |=== | (17/100)
...

As the OP has mentioned, MP4BOX needs to output info in a more compliant way.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gpac (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.