Android Petrolhead and GoPro video export: "Error Code 7"

Help on issues you run into with LapTimer; in case you have a question on how to use LapTimer, use the forum "Using LapTimer" instead
pawliger
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 20
Joined: Wed Apr 02, 2014 6:43 pm

Android Petrolhead and GoPro video export: "Error Code 7"

Post by pawliger »

I have video from a GoPro Hero3+ recorded as an MP4 at 1920x180 @ 48 fps. I downsampled it to an MP4 at 1280x720 @ 30 fps using QuickTime 7 on a Mac. I copied it to my Nexus 5, added the video to a lap, and set the end frame for the lap.

When I tried to do an Overlay export I was first warned h/w accelerated encoding is not possible, software encoding will be used. After pressing Continue, I got the error "LapTimer failed writing the overlaid video. Error reported is 'Code: 7, opening video codec failed'.
User avatar
Harry
Site Admin
Site Admin
Posts: 10639
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: Android Petrolhead and GoPro video export: "Error Code 7

Post by Harry »

What is the exact file name for the video?
Image Image Image Image
pawliger
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 20
Joined: Wed Apr 02, 2014 6:43 pm

Re: Android Petrolhead and GoPro video export: "Error Code 7

Post by pawliger »

221-720p.mp4 located in the top level Movies folder under sdcard.
User avatar
Harry
Site Admin
Site Admin
Posts: 10639
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: Android Petrolhead and GoPro video export: "Error Code 7

Post by Harry »

The file name is fine. Nevertheless, there is some kind of format issue / video format incompatibility. I'd suggest to use a proven conversion using ffmpeg (a free command line tool you can download from the net for any platform):

Code: Select all

C:\> ffmpeg -i 221-720p.mp4 -s hd720 -c:v libx264 -crf 23 -c:a aac -strict -2 output.mp4
Instead of using 221-720p.mp4 as the stating point, you may consider using your original GoPro file. The above snippet will convert whatever format into something LapTimer should be able to work on.

- Harry
Image Image Image Image
User avatar
bulls23
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 767
Joined: Fri Mar 04, 2011 12:22 pm

Re: Android Petrolhead and GoPro video export: "Error Code 7

Post by bulls23 »

Seeing all kinds of people having to covert their videos to something iOS / Android compatible, I wanted to recommend Handbrake, a free cross platform encoder also using ffmpeg but with a nice GUI and helpful presets. With that tool, you basically load a source file, choose a preset, maybe change the output resolution and that's it...doesn't get easier.

http://handbrake.fr/
pawliger
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 20
Joined: Wed Apr 02, 2014 6:43 pm

Re: Android Petrolhead and GoPro video export: "Error Code 7

Post by pawliger »

Thanks. Re-encoding with ffmpeg worked. An actionable error would have helped as well.

One question is I recall I was getting OBD-II data when I was running that lap, but the Overlap Configuration screen shows "OBD II Gadget: none". Is there a way I could see whether OBD data exists for that lap?
pawliger
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 20
Joined: Wed Apr 02, 2014 6:43 pm

Re: Android Petrolhead and GoPro video export: "Error Code 7

Post by pawliger »

bulls23 wrote:Seeing all kinds of people having to covert their videos to something iOS / Android compatible, I wanted to recommend Handbrake, a free cross platform encoder also using ffmpeg but with a nice GUI and helpful presets. With that tool, you basically load a source file, choose a preset, maybe change the output resolution and that's it...doesn't get easier.

http://handbrake.fr/
Do you have a Handbrake preset you use?
User avatar
Harry
Site Admin
Site Admin
Posts: 10639
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: Android Petrolhead and GoPro video export: "Error Code 7

Post by Harry »

pawliger wrote:One question is I recall I was getting OBD-II data when I was running that lap, but the Overlap Configuration screen shows "OBD II Gadget: none". Is there a way I could see whether OBD data exists for that lap?
Yes, check the Lap Details view for any lap. Scroll down to the Data Recording section and check the "Fixes" row. It shows both the number if fixes recorded and the type of data available (GPS, ACCEL, OBD).

- Harry
Image Image Image Image
pawliger
20 or more Posts ★★★
20 or more Posts ★★★
Posts: 20
Joined: Wed Apr 02, 2014 6:43 pm

Re: Android Petrolhead and GoPro video export: "Error Code 7

Post by pawliger »

Harry wrote:
pawliger wrote:One question is I recall I was getting OBD-II data when I was running that lap, but the Overlap Configuration screen shows "OBD II Gadget: none". Is there a way I could see whether OBD data exists for that lap?
Yes, check the Lap Details view for any lap. Scroll down to the Data Recording section and check the "Fixes" row. It shows both the number if fixes recorded and the type of data available (GPS, ACCEL, OBD).

Hm. None of my laps show OBD data listed there in Lap Details yet I had an external OBD device BT paired with the phone and I'm fairly certain it showed up in the System Status as well before I started driving. Do I need to do anything to add OBD data to the laps? I assumed it would be automatic.
User avatar
Harry
Site Admin
Site Admin
Posts: 10639
Joined: Sun Sep 12, 2010 10:32 am
Location: Siegum, Germany
Contact:

Re: Android Petrolhead and GoPro video export: "Error Code 7

Post by Harry »

It certainly is automatic... Next time, please make sure you see a valid update rate for OBD - just to be sure data is really coming in.

Harry
Image Image Image Image
Post Reply