![]() Here's the ffmpeg command I'm running with h264_v4l2m2m (the input stream is being piped in): ffmpeg -i -c:v h264_v4l2m2m -input_format yuyv422 -num_capture_buffers 32 -num_output_buffers 64 -b:v 3072k -c:a aac -b:a 384k -ac 6 -hls_time 0.8 -hls_list_size 20 -hls_flags delete_segments -hls_allow_cache 0 -hls_base_url stream/ outputpath.m3u8ĭoes anyone have any ideas how to fix the video for this? I've tried adding options like -pix_fmt yuv420p, -keyint_min 15, -g 15, but nothing seems to be making much of a difference.Īny help would be appreciated - I wouldn't be surprised if I'm approaching this entirely incorrectly. Using the h264_omx encoder, this is not a problem at all.įfmpeg was compiled on the box, and has the following configuration: $ ffmpeg -versionįfmpeg version N-104393-ga59f8ea2a9 Copyright (c) 2000-2021 the FFmpeg developersĬonfiguration: -arch=arm -target-os=linux -enable-gpl -enable-omx -enable-omx-rpi -enable-nonfree -enable-mmal -enable-libass -extra-ldflags=-latomic But if I rejoin, or I open another client, they are consistently audio only. If I happen to join and video is present, the stream is fine for as long as we keep the stream up. ![]() However, when I try to utilize h264_v4l2m2m with the live stream, if I don't join the stream immediately at the start, the stream is audio only. This is the Broadcoms library for H.264 hardware acceleration on the Raspberry Pi. I have run some benchmarks on flat files and noticed a fairly significant performance improvement if I switch to h264_v4l2m2m encoding - with no issues seen with the static files. I am currently using h264_omx which functions mostly as expected. codecs, and so on, so it can be traumatic figuring out what code to build. The app takes in a video stream and converts it from MPEG2 to h264 HLS. To demux a file, a software package such as FFmpeg or LibAV must be used. ![]() I am currently running a HLS streaming app on a Raspberry Pi 4 1GB.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |