[GH-ISSUE #43] video file naming #33

Closed
opened 2026-03-01 15:39:32 +03:00 by kerem · 5 comments
Owner

Originally created by @mehrdad-abdoli on GitHub (Nov 4, 2017).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/43

Hi
thanks for your great job and new video recording feautures .
How can i made build and test name so can change the test video file to be appended to test results.
I am using robot framework and python.
I use zalenium for web

Originally created by @mehrdad-abdoli on GitHub (Nov 4, 2017). Original GitHub issue: https://github.com/budtmo/docker-android/issues/43 Hi thanks for your great job and new video recording feautures . How can i made build and test name so can change the test video file to be appended to test results. I am using robot framework and python. I use zalenium for web
kerem 2026-03-01 15:39:32 +03:00
Author
Owner

@budtmo commented on GitHub (Nov 6, 2017):

Hi @mehrdad-abdoli ,

Thank you, happy to hear that this project helps you. no, I don’t have this feature right now.

<!-- gh-comment-id:342266742 --> @budtmo commented on GitHub (Nov 6, 2017): Hi @mehrdad-abdoli , Thank you, happy to hear that this project helps you. no, I don’t have this feature right now.
Author
Owner

@mehrdad-abdoli commented on GitHub (Dec 2, 2017):

I do it myself by :
send PR and name as capabilities in test run

editing src/record.sh:
function start() {
PR="$(curl -s localhost:4723/wd/hub/sessions | jq -r '.value[0].capabilities.PR')"
name="$(curl -s localhost:4723/wd/hub/sessions | jq -r '.value[0].capabilities.name').mp4"
mkdir -p $VIDEO_PATH/$PR
echo "Start video recording"
ffmpeg -video_size 1599x899 -framerate 15 -f x11grab -i $DISPLAY $VIDEO_PATH/$PR/$name -y
}

for record.sh in compose file I added this volume:

  • /home/record.sh:/root/src/record.sh
<!-- gh-comment-id:348698972 --> @mehrdad-abdoli commented on GitHub (Dec 2, 2017): I do it myself by : send PR and name as capabilities in test run editing src/record.sh: function start() { PR="$(curl -s localhost:4723/wd/hub/sessions | jq -r '.value[0].capabilities.PR')" name="$(curl -s localhost:4723/wd/hub/sessions | jq -r '.value[0].capabilities.name').mp4" mkdir -p $VIDEO_PATH/$PR echo "Start video recording" ffmpeg -video_size 1599x899 -framerate 15 -f x11grab -i $DISPLAY $VIDEO_PATH/$PR/$name -y } for record.sh in compose file I added this volume: - /home/record.sh:/root/src/record.sh
Author
Owner

@budtmo commented on GitHub (Dec 4, 2017):

Hi @mehrdad-abdoli ,

Could you maybe raise the PR for it? It would be great.

<!-- gh-comment-id:348905630 --> @budtmo commented on GitHub (Dec 4, 2017): Hi @mehrdad-abdoli , Could you maybe raise the PR for it? It would be great.
Author
Owner

@mehrdad-abdoli commented on GitHub (Dec 11, 2017):

@butomo1989
PR is created : https://github.com/butomo1989/docker-android/pull/51

<!-- gh-comment-id:350651536 --> @mehrdad-abdoli commented on GitHub (Dec 11, 2017): @butomo1989 PR is created : https://github.com/butomo1989/docker-android/pull/51
Author
Owner

@eyal919 commented on GitHub (Dec 2, 2018):

Is this ready yet?
It will be nice to do something like:

function start() {
mkdir -p $VIDEO_PATH
name="$(curl -s localhost:4723/wd/hub/sessions | jq -r '.value[0].capabilities.videoName').mp4"
or even the session id:
name="$(curl -s localhost:4723/wd/hub/sessions | jq -r '.value[0].id').mp4"
echo "Start video recording"
ffmpeg -video_size 1599x899 -framerate 15 -f x11grab -i $DISPLAY $VIDEO_PATH/$name -y
}

<!-- gh-comment-id:443518279 --> @eyal919 commented on GitHub (Dec 2, 2018): Is this ready yet? It will be nice to do something like: function start() { mkdir -p $VIDEO_PATH **name="$(curl -s localhost:4723/wd/hub/sessions | jq -r '.value[0].capabilities.videoName').mp4"** or even the session id: **name="$(curl -s localhost:4723/wd/hub/sessions | jq -r '.value[0].id').mp4"** echo "Start video recording" ffmpeg -video_size 1599x899 -framerate 15 -f x11grab -i $DISPLAY $VIDEO_PATH/$name -y }
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-android#33
No description provided.