![]() For your reference, there are four available video encoders in FFmpeg as at the time of writing, namely: i. Defined video bitrates ( $video_bitrate$unit, where $unit can be either K or M, as you see fit) and audio bitrates ( $audio_bitrate$unit, where $unit should be in K, for AAC LC-based encodings) as shown above, with appropriate encoder settings passed to the vaapi encoders. ![]() Encoding to an output udp stream packaged as an MPEG Transport stream (see the muxer in use, mpegts), with the necessary parameters matching the output IP and port pairing respectively. We are taking a udp input, where $ingest_ip:$port_ip corresponds to a known UDP input stream, matching the IP and port pairing respectively, with a defined fifo size (as indicated by the '?fifo_size=n' parameter). VAAPI is available, and we will bind the DRM node /dev/dri/renderD128 to the encode session, and flags -global_header -fflags +genpts -f mpegts 'udp://$feed_ip:$feed_port' c:a aac -b:a $audio_bitrate$unit -ar 48000 -ac 2 \ c:v h264_vaapi -b:v $video_bitrate$unit -maxrate:v $video_bitrate$unit -qp:v 21 -sei +identifier+timing+recovery_point -profile:v main -level 4 \ ![]() init_hw_device vaapi=intel:/dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device intel -filter_hw_device intel \ You'll need to initialize your hardware accelerator correctly, as shown in the documentation below (perhaps we should create a wiki entry for this in time?):Īssume the following snippet: ffmpeg -re -threads 4 -loglevel debug \
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |