{"id":22370030,"url":"https://github.com/andreicherniaev/qprocess_bash_example","last_synced_at":"2025-07-21T03:32:22.983Z","repository":{"id":234721027,"uuid":"789420301","full_name":"AndreiCherniaev/QProcess_bash_example","owner":"AndreiCherniaev","description":"How start FFmpeg using QProcess with bash example","archived":false,"fork":false,"pushed_at":"2024-11-14T04:49:07.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T16:26:24.678Z","etag":null,"topics":["bash","example","qprocess","qt"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreiCherniaev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-20T13:54:50.000Z","updated_at":"2024-11-14T04:49:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"5df4be6b-e169-46ff-8c47-fccc18b99352","html_url":"https://github.com/AndreiCherniaev/QProcess_bash_example","commit_stats":null,"previous_names":["andreicherniaev/qprocess_bash_example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndreiCherniaev/QProcess_bash_example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiCherniaev%2FQProcess_bash_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiCherniaev%2FQProcess_bash_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiCherniaev%2FQProcess_bash_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiCherniaev%2FQProcess_bash_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreiCherniaev","download_url":"https://codeload.github.com/AndreiCherniaev/QProcess_bash_example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiCherniaev%2FQProcess_bash_example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266235397,"owners_count":23897179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","example","qprocess","qt"],"created_at":"2024-12-04T19:31:53.064Z","updated_at":"2025-07-21T03:32:22.960Z","avatar_url":"https://github.com/AndreiCherniaev.png","language":"C++","readme":"How start FFmpeg using QProcess with bash example. Output\n```\nnew QProcess state= QProcess::Starting\nnew QProcess state= QProcess::Running\nnew QProcess state= QProcess::NotRunning\nQProcess should finish\nQProcess finish ok;msg;libGL error: No matching fbConfigs or visuals found\nlibGL error: failed to load driver: swrast\nX Error:  GLXBadContext\n  Request Major code 152 (GLX)\n  Request Minor code 6 ()\n  Error Serial #63\n  Current Serial #62\nffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers\n  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)\n  configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-cuda --enable-cuda-sdk --enable-cuvid --enable-libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libnpp --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib\n  libavutil      56. 51.100 / 56. 51.100\n  libavcodec     58. 91.100 / 58. 91.100\n  libavformat    58. 45.100 / 58. 45.100\n  libavdevice    58. 10.100 / 58. 10.100\n  libavfilter     7. 85.100 /  7. 85.100\n  libswscale      5.  7.100 /  5.  7.100\n  libswresample   3.  7.100 /  3.  7.100\n  libpostproc    55.  7.100 / 55.  7.100\nInput #0, lavfi, from 'testsrc=size=1280x720:rate=1:duration=10':\n  Duration: N/A, start: 0.000000, bitrate: N/A\n    Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1280x720 [SAR 1:1 DAR 16:9], 1 fps, 1 tbr, 1 tbn, 1 tbc\nStream mapping:\n  Stream #0:0 -\u003e #0:0 (rawvideo (native) -\u003e mjpeg (native))\nPress [q] to stop, [?] for help\n[swscaler @ 0x6438de58b780] deprecated pixel format used, make sure you did set range correctly\nOutput #0, mjpeg, to 'input.yuvj422p':\n  Metadata:\n    encoder         : Lavf58.45.100\n    Stream #0:0: Video: mjpeg, yuvj422p(pc), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc\n    Metadata:\n      encoder         : Lavc58.91.100 mjpeg\n    Side data:\n      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A\n[Parsed_testsrc_0 @ 0x6438de576b80] EOF timestamp not reliable\nframe=   10 fps=0.0 q=1.6 Lsize=     324kB time=00:00:10.00 bitrate= 265.0kbits/s speed= 173x    \nvideo:324kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%\n```\n\nIf I change code to `process-\u003esetArguments({\"-c\", \"mistake here\"})` then output\n```\nnew QProcess state= QProcess::Starting\nnew QProcess state= QProcess::Running\nnew QProcess state= QProcess::NotRunning\nQProcess should finish\nQProcess finish with code;127;exitStatus;QProcess::NormalExit;msg;/usr/bin/bash: line 1: mistake: command not found\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreicherniaev%2Fqprocess_bash_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreicherniaev%2Fqprocess_bash_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreicherniaev%2Fqprocess_bash_example/lists"}