goprowifihack icon indicating copy to clipboard operation
goprowifihack copied to clipboard

HERO 7 Transcode command changed?

Open ram-sh opened this issue 5 years ago • 4 comments

Hello,

I've been using HERO 4 transcode command for a while now, for ex. I successfully transcode video clip first 30 seconds from 1080@60 to 720@30 by calling:

http://10.5.5.9/gp/gpControl/command/transcode/request?source=DCIM/100GOPRO/GOPR2546.MP4&res=2&fps_divisor=1&in_ms=0&out_ms=30000

when trying the same command using HERO 7 a video clip that was recorded by the same HERO 7:

http://10.5.5.9/gp/gpControl/command/transcode/request?source=DCIM/100GOPRO/GH012554.MP4&res=0&fps_divisor=1&in_ms=0&out_ms=30000

the return is an error message:

{ "version": "6.00", "path_info": "command/transcode/request", "query_string": "source=DCIM/100GOPRO/GH012554.MP4&res=0&fps_divisor=1&in_ms=0&out_ms=30000", "error_code":-3, "error_msg": "400 Bad Request

", "function": "gpcontrol_cgi_handler", "line": 174 }

could it be that the transcode command in HERO 7 is different?

ram-sh avatar Jun 14 '19 09:06 ram-sh

looking further into what evert i could find and tried also video_to_video instead of request: http://10.5.5.9/gp/gpControl/command/transcode/video_to_video?source=DCIM/100GOPRO/GH012554.MP4&res=2&fps_divisor=1&in_ms=0&out_ms=30000

this time I dont get an error message from the camera but a message from the browser that the connection was reset...

well, this is strange! when passing the same request using video_to_video BUT with res=0 and fps_divisor=0 like so: http://10.5.5.9/gp/gpControl/command/transcode/video_to_video?source=DCIM/100GOPRO/GH012553.MP4&res=0&fps_divisor=0&in_ms=0&out_ms=30000

i get a return from the camera:

{"status":{"id":54043625025178105,"source":"DCIM/100GOPRO/GH012553.MP4","status":0,"failure_reason":0,"estimate":216985326,"completion":0,"output":""}}`

so video_to_video is a legit command but surly i'm missing something here cause there isn't any new file created that is visible in the gpMediaList...

GoPro 7 Version: 01.70

ram-sh avatar Jun 14 '19 16:06 ram-sh

another update, apparently the command:

http://10.5.5.9/gp/gpControl/command/transcode/video_to_video?source=DCIM/100GOPRO/GH012553.MP4&res=0&fps_divisor=0&in_ms=0&out_ms=30000

does create a new 30 seconds file but with a TRV extension, if changing it to MP4 the movie is visible, however changing the res and fps is something i can't make to work... :(

ram-sh avatar Jun 14 '19 17:06 ram-sh

playing further with this issue i've learned the following:

  1. no matter which clip i try to transcode i always get the same status ID number (smells like a bug in the OS)
  2. no matter which values i put in res & fps_divisor the camera ignores it completely
  3. when using some specific values in the res key it hangs the camera and force me to hard restart it, for example: http://10.5.5.9/gp/gpControl/command/transcode/video_to_video?source=DCIM/100GOPRO/GH012561.MP4&res=6&fps_divisor=0&in_ms=0&out_ms=30000

is it me or the camera? does anyone have managed to transcode to a different Res and/or FPS?

ram-sh avatar Jun 15 '19 09:06 ram-sh

another interesting point, i have a video clip of 1080@60 42 seconds, i then used the transcode command with these parameters:

&res=0&fps_divisor=0&in_ms=0&out_ms=30000

in return i got a 54 mg ,30 seconds 1080@60 video, so far so good.

next i tried the same command for the same video with fps_divisor=2

&res=0&fps_divisor=2&in_ms=0&out_ms=30000

the result was a video twice in size (108mg) 1080@30 BUT twice in length (60 seconds long) and the video channel is in slow motion while the audio channel is as it should... Fun :)

ram-sh avatar Jun 15 '19 14:06 ram-sh