ExifTool Forum

General => Metadata => Topic started by: rs4eva on July 14, 2016, 10:37:49 AM

Title: I need help extracting data from an MP4 file
Post by: rs4eva on July 14, 2016, 10:37:49 AM
Anyone able to help me do this? I'm not skilled enough to use terminal.

https://www.dropbox.com/s/ff7el9uoe1z8f83/160625_173108_00032_.mp4?dl=0 (https://www.dropbox.com/s/ff7el9uoe1z8f83/160625_173108_00032_.mp4?dl=0)

Thanks in advance.
Title: Re: I need help extracting data from an MP4 file
Post by: Phil Harvey on July 14, 2016, 10:45:01 AM
If you are in Windows, you can simply drag and drop the MP4 file onto exiftool.
Title: Re: I need help extracting data from an MP4 file
Post by: rs4eva on July 14, 2016, 11:17:41 AM
I'm on a Mac, but I can try it on a windows machine.

Thanks!
Title: Re: I need help extracting data from an MP4 file
Post by: Phil Harvey on July 14, 2016, 11:21:01 AM
On a Mac, type "exiftool" in a Terminal window (don't press RETURN yet), then press SPACE, then drag and drop the file into the Terminal window, then press RETURN.

The Mac is better because the Terminal is far superior to the Windows cmd console.

- Phil
Title: Re: I need help extracting data from an MP4 file
Post by: rs4eva on July 14, 2016, 11:22:45 AM
Says "pattern not found"
Title: Re: I need help extracting data from an MP4 file
Post by: Phil Harvey on July 14, 2016, 11:24:46 AM
Can you cut and paste your Terminal command here so I can see it? (On Mac, cut-n-paste from Terminal is easy.  Not so in Windows cmd.exe.)

- Phil
Title: Re: I need help extracting data from an MP4 file
Post by: rs4eva on July 14, 2016, 11:27:58 AM
/Users/XXXXXXXX/Dropbox\ \(Personal\)/160625_173108_00032_.mp4
Title: Re: I need help extracting data from an MP4 file
Post by: Phil Harvey on July 14, 2016, 11:30:28 AM
You didn't type "exiftool" SPACE first?  The command should look like this:

exiftool /Users/XXXXXXXX/Dropbox\ \(Personal\)/160625_173108_00032_.mp4

- Phil
Title: Re: I need help extracting data from an MP4 file
Post by: rs4eva on July 14, 2016, 11:52:45 AM
doh, that worked, sort of. I was hoping to extract the raw data as well that is encoded with the MP4 video file.

Thanks for your help though.
Title: Re: I need help extracting data from an MP4 file
Post by: Phil Harvey on July 14, 2016, 11:59:27 AM
How exactly do you want to extract the "raw data"?

You can see the file data structure in hex like this:

exiftool -v3 /Users/XXXXXXXX/Dropbox\ \(Personal\)/160625_173108_00032_.mp4

or extract the binary video data to a separate file like this:

exiftool /Users/XXXXXXXX/Dropbox\ \(Personal\)/160625_173108_00032_.mp4 -u -moviedata > out.dat

- Phil
Title: Re: I need help extracting data from an MP4 file
Post by: rs4eva on July 14, 2016, 12:12:39 PM
the first one did something. the second one just gave me a blank terminal prompt
Title: Re: I need help extracting data from an MP4 file
Post by: Phil Harvey on July 14, 2016, 01:11:11 PM
Yes, but it should have created a file called "out.dat" containing the raw video data.  I doubt this is what you wanted, but I don't know exactly what you are trying to do.

- Phil
Title: Re: I need help extracting data from an MP4 file
Post by: rs4eva on July 14, 2016, 02:03:16 PM
That makes sense.

I have a program called Cosworth Toolbox. It reads and displays data from the onboard video and data recorder in my car. I want to try and build a web version that would read the file and strip out the data from the video and be able to present it on a web page.

the program is located here http://download.cosworth.com/downloads/Software/Toolbox/Consumer/GM/Index.htm (http://download.cosworth.com/downloads/Software/Toolbox/Consumer/GM/Index.htm), and you can see what happens with the video file link I posted earlier.