I have manged to create the config file for my remote using irrecord -f
Now when i execute:
stbt record --source-pipeline=v4l2src --sink-pipeline='ximagesink sync=false' --control-recorder=file:///dev/stdin --control=lirc::lirc0 (where lirc0 is name of my remote in the lirc.conf file)
i get the stbt-record screen with the video playing and message
Waiting for keypresses from standard input...
but when i press any remote control button keeping redrat in front it does not take any input
Also when i execute the same command the second time the stbt record screen does not pop up- with message
libv4l2: error setting pixformat: Device or resource busy
Waiting for keypresses from standard input...
how can i free the resource ??
Also i need to execute quite a lot of test cases i wanted to know how do i create testscript with names for individual test cases.
Also i just wanted to confirm the test-up
From STB AV cable goes to EasyCap DC60 frame graber, the frame grabber is connected to PC & redrat is directly connected to PC
stbt record --source-pipeline=v4l2src --sink-pipeline='ximagesink sync=false' --control-recorder=lirc:/var/run/lirc/lircd:lirc0 (what are you using here)
--control=lirc::lirc0 (what are you using here)
i have been using v4l2src and it has been working fine
stbt record --source-pipeline=v4l2src --sink-pipeline='ximagesink sync=false' --control-recorder=lirc:/var/run/lirc/lircd:lirc0
> --control=lirc::lirc0
as a matter of fact when i use this command i have been able to view live tv.
well i have also tried to replace control-recorder=file:///dev/stdin so what i can enter the test script using my keyboard and keeping the control=lirc::lirc0
so now when i write a command in test scrip and press enter the screenshot for live tv is captured but the command is not executed
I have also tried connecting one more redrat device while executing stbt record
control-recorder=lirc:/var/run/lirc/lircd:lirc0
> --control=lirc::lirc1
but this also did not help i am not able to understand where am i going wrong.
I have also tried connecting one more redrat device
> % ls /devting one more redrat device
Hi Lewis,
Yes even i suspect the same, some problem with "--control=lirc::lirc0" i have recorded raw input commands using irrecord -f , i have tried and the commands do get executed using irsend command.
Below is the remote control config file
begin remote
name lirc0
flags RAW_CODES
eps 30
aeps 100
gap 123749
begin raw_codes
name KEY_POWER
296 807 282 1532 277 1532
249 2806 249 1277 249 1277
249 1000 249 2113 249 13027
249 863 249 1835 249 726
249 1558 249 726 249 863
249 726 230 746 262
name BTN_0
295 807 281 1528 278 1531
251 2805 251 1277 251 1277
251 1001 251 2114 251 13026
251 861 251 2114 251 723
251 1559 248 726 262 2796
288 686 320 655 349
name BTN_1
295 807 281 1532 276 1532
250 2804 250 1278 250 1278
250 1002 250 2113 250 13027
250 861 250 1558 250 725
250 1558 250 725 229 1163
246 728 276 699 291
name BTN_2
290 807 282 1532 276 1532
249 2806 249 1278 249 1278
249 1002 249 2113 248 13027
248 862 249 1697 249 724
249 1558 249 724 242 1010
276 700 290 683 306
name BTN_3
297 806 283 1527 279 1529
249 2804 249 1278 249 1278
249 999 249 2111 249 13026
249 861 249 1418 249 724
249 1558 249 724 242 1289
275 699 306 669 335
name BTN_4
297 806 283 1527 279 1529
250 2805 250 1275 250 1275
250 1000 250 2113 249 13027
250 861 254 1277 254 721
262 1547 288 686 320 1349
347 628 378 597 407
name KEY_INFO
296 807 281 1532 277 1532
252 2806 252 1278 252 1278
252 1002 252 2113 252 13027
252 861 252 1140 252 723
252 1558 242 732 262 1548
289 684 320 655 349
name KEY_VOLUMEUP
295 807 282 1528 278 1531
254 2805 254 1279 254 1279
254 999 254 2113 252 13027
252 862 254 862 252 724
249 1559 260 714 291 1797
317 656 349 625 378
name KEY_VOLUMEDOWN
400 706 328 1480 280 1529
310 2748 306 1224 302 1229
254 998 254 2111 236 13039
259 854 290 2768 316 659
348 1460 375 877 405 1681
432 543 464 510 493
name KEY_CHANNELUP
295 807 282 1530 278 1530
254 2806 254 1278 254 1278
251 1000 254 2112 254 13027
250 862 254 723 254 723
251 1557 250 723 251 1976
260 714 291 682 320
name KEY_CHANNELDOWN
296 807 282 1527 279 1529
253 2804 253 1278 253 1278
253 999 253 2113 250 13027
253 861 253 1694 253 723
250 1558 260 993 290 683
320 655 349 625 378
name KEY_OK
451 656 374 1435 280 1528
257 2802 257 1274 359 1172
252 999 252 2111 252 13023
252 859 255 1970 274 700
305 1504 332 643 363 610
392 584 421 553 451
name KEY_SCROLLUP
296 807 282 1528 278 1531
251 2805 251 1279 251 1279
251 1003 251 2113 250 13027
250 861 251 1003 251 723
251 1559 250 723 242 1707
274 699 306 670 335
name KEY_SCROLLDOWN
296 807 281 1532 277 1532
249 2806 249 1280 249 1280
249 1003 249 2113 249 13025
249 862 249 1559 249 723
249 1559 247 1003 249 865
247 729 262 713 291
name BTN_5
296 807 282 1532 277 1532
252 2806 252 1281 253 1281
252 1000 252 2113 253 13026
253 862 253 1281 249 723
252 1558 249 1421 260 712
291 684 320 654 349
name BTN_6
296 807 282 1527 279 1529
249 2804 249 1275 249 1275
249 1000 249 2111 249 13026
249 861 253 1139 253 722
253 1558 260 1409 289 824
320 655 349 625 378
name KEY_G
297 807 281 1532 277 1532
251 2806 251 1281 251 1281
251 1003 251 2113 251 13027
251 862 251 1281 250 723
251 1559 251 1003 251 1141
261 714 291 684 320
name KEY_BACK
297 809 280 1532 277 1532
249 2806 249 1279 250 1279
249 1003 249 2113 249 13027
249 862 250 1140 250 724
250 1559 249 1003 239 1290
275 700 306 668 335
name BTN_7
297 807 281 1532 276 1532
249 2806 249 1279 253 1279
249 1002 249 2113 249 13027
249 863 253 1002 253 725
253 1558 249 1002 249 1420
249 725 244 730 276
name KEY_HOME
296 806 299 1511 279 1529
252 2804 252 1278 252 1278
252 1000 252 2113 249 13025
249 861 252 1418 252 723
252 1558 260 991 290 963
319 655 349 625 378
name KEY_RED
297 809 280 1532 277 1532
250 2806 250 1280 250 1280
250 1003 250 2113 250 13027
250 863 250 863 250 726
250 1559 250 1003 250 1559
249 726 250 726 247
name KEY_GREEN
296 807 282 1530 278 1530
250 2804 250 1275 250 1275
250 1001 250 2112 250 13027
250 861 250 1001 250 723
250 1558 245 1426 245 1005
261 714 291 683 320
name KEY_YELLOW
296 809 280 1532 276 1532
276 2784 254 1277 254 1277
254 1001 252 2113 252 13025
250 862 254 724 254 724
252 1557 252 1280 260 1407
289 686 320 656 349
name KEY_BLUE
296 807 282 1527 279 1529
250 2804 250 1279 250 1279
250 1001 250 2113 250 13026
250 861 252 724 250 724
242 1567 260 1409 289 1241
319 656 349 625 378
name KEY_0
297 807 282 1528 278 1531
248 2805 248 1278 252 1278
248 1001 248 2113 248 13026
248 861 252 1140 252 722
252 1558 260 1131 290 1101
319 655 349 625 378
name KEY_1
299 809 280 1532 277 1532
251 2806 251 1277 251 1277
251 1002 251 2113 251 13026
251 861 251 2530 251 722
251 1558 251 722 251 2392
260 714 291 683 320
name KEY_2
295 807 282 1530 278 1530
254 2806 248 1280 248 1280
252 1001 248 2113 248 13026
248 864 252 864 248 724
248 1561 245 1424 275 1115
304 671 334 640 363
name KEY_3
295 807 281 1528 278 1531
251 2805 251 1279 251 1279
251 1001 252 2112 252 13026
249 861 251 1418 251 723
262 1547 288 1242 319 654
349 627 378 597 407
name KEY_4
295 807 282 1532 275 1532
252 2806 252 1278 252 1278
252 1001 252 2113 252 13025
252 861 252 1278 252 723
252 1558 249 1281 246 869
275 699 291 683 320
name KEY_5
297 807 281 1528 278 1531
251 2805 251 1279 251 1279
251 1001 251 2113 251 13025
251 861 251 1141 251 723
251 1558 260 1271 290 963
319 655 349 625 378
name KEY_6
295 807 282 1532 277 1532
248 2806 248 1279 250 1279
250 1002 248 2113 250 13025
250 862 248 1002 248 723
248 1558 248 1282 248 1142
261 713 291 684 320
name KEY_7
296 807 281 1532 276 1532
249 2806 249 1279 251 1279
249 1002 249 2113 249 13027
249 862 251 1557 249 724
251 1557 249 1141 249 724
242 732 276 699 291
name KEY_8
297 807 282 1532 276 1532
276 2784 254 1277 254 1277
254 1001 251 2113 251 13023
254 861 254 1418 251 724
251 1557 251 1140 261 853
291 684 320 655 349
name KEY_9
297 807 282 1527 279 1529
255 2804 255 1279 255 1279
250 1001 250 2114 250 13027
250 862 250 1279 250 724
233 1576 260 1132 290 962
319 656 349 625 378
name KEY_MUTE
294 807 281 1528 278 1531
251 2805 251 1279 251 1279
251 1001 251 2113 251 13026
246 863 251 863 251 724
246 1561 246 1284 261 1269
290 684 320 655 349
end raw_codes
end remote
import stbt
stbt.press('KEY_HOME')
irsend LIST "" ""
it list reliance (its name of my remote which i have changed from lirc0 to reliance in order to avoid any confusion)
When i start gstreamer using : gst-launch v4l2src device=/dev/video0 ! xvimagesink it plays the current video and i am able to execute actions with my remote control
irsend SEND_ONCE lirc0 KEY_HOME:
i tried send this command and HOME is launched if i do it independently
if i launch gstreamer and then try sending the command, action is not executed.
and when i run the test.py it does not work.
i tried send this command and HOME is launched if i do it independently
if i use gst-launch v4l2src ! ximagesink sync=false to launch gstreamer
i do not get any video
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format
Additional debug info:
gstbasesrc.c(2830): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...
By independently i meant the stb is connected to tv and using redrat device i execute the command
i am using gst-launch v4l2src device=/dev/video0 ! xvimagesink
i just tried did not work gives me an output: