Genymobile / Genymobile/scrcpy

Stream output on Redroid in Ubuntu server

Open
#6,399 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
150k
Forks
13.8k
Avg merge
4d 13h
Merged PRs (30d)
2

Description

I using command bellow for start stream device but not working. It has error

Command
```
scrcpy --serial=localhost:8009 --no-playback --no-control --video-bit-rate=4M --max-fps=30 --output=- --output-format=h264 | /usr/bin/ffmpeg -f h264 -i pipe:0 -f rawvideo -pix_fmt yuv420p -vf fps=30 -
```

Errors:
```

root@118411epyc:~/scrcpy# scrcpy --serial=localhost:8009 --no-playback --no-control --video-bit-rate=4M --max-fps=30 --output=- --output-format=h264 | /usr/bin/ffmpeg -f h264 -i pipe:0 -f rawvideo -pix_fmt yuv420p -vf fps=30 -
scrcpy: unrecognized option '--output=-'
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
[h264 @ 0x632e54772540] missing picture in access unit with size 52
[extract_extradata @ 0x632e54781940] No start code is found.
pipe:0: could not find codec parameters
Input #0, h264, from 'pipe:0':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264, none, 1200k tbn
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))
[h264 @ 0x632e54790940] No start code is found.
[h264 @ 0x632e54790940] Error splitting the input into NAL units.
Error while decoding stream #0:0: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
```

Version:
```
root@118411epyc:~/scrcpy# scrcpy --version
scrcpy 3.3.3

Dependencies (compiled / linked):
- SDL: 2.0.20 / 2.0.20
- libavcodec: 58.134.100 / 58.134.100
- libavformat: 58.76.100 / 58.76.100
- libavutil: 56.70.100 / 56.70.100
- libavdevice: 58.13.100 / 58.13.100
- libusb: - / 1.0.25
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the exact scrcpy 3.3.3 command and pipeline shown in the issue, then check the command-line help and output-related documentation for --output and --output-format. Compare scrcpy's emitted stream with the FFmpeg errors. Done means determining whether this invocation is supported and documenting the required usage or confirming a reproducible bug.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c, ubuntu
Domain
audio-video-rtc, cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.