![]() :/ I think I may have wrong configurations on mplayer. I heard vp9 could have very low latency too, but I apparently don't know how to use the options in ffmpeg, cuz I get really bad latency values.Īnyway, to get back to the topic, 127.0.0.1 instead of localhost doesn't help, and with ffmpeg://udp://ip:port it doesn't work either. On localhost, I'm close to no latency at all with mpeg2video, when I have almost 1sec latency with h264. I read the ffmpeg streaming guide and the different codec's encoding guides to try to get the best parameters for each of them, but the difference is noticeable: ffmpeg -an -sn -s 1280x720 -r 30 -f x11grab -i :0.0 -vcodec libx264 -crf 18 -tune zerolatency -preset ultrafast -pix_fmt yuv420p -profile:v baseline -b:v 8000 -f mpegts threads 4 udp://127.0.0.1:4242įfmpeg -s 1280x720 -r 30 -f x11grab -i :0.0 -vcodec mpeg2video -b:v 800k -f mpegts -threads 8 udp://127.0.0.1:4242įfmpeg -t 5 -s 1280x720 -r 30 -f x11grab -i :0.0 -vcodec libvpx-vp9 -an -crf 18 -b:v 1M -f webm -threads 8 udp://127.0.0.1:4242 I actually tried a lot of different codecs, especially vp9, h264 and mpeg2, but the best low latency i got were with mpeg2video. I tried with rtp protocol instead, didn't work either.ĭoes anyone have an idea what i'm doing wrong? No stream found to handle url udp://localhost:4242 ![]() Get_path('sub/') -> '/home/XXXXX/.mplayer/sub/'įilename for url is now udp://localhost:4242 Now instead of playing the stream with ffplay, i'd like to use the mplayer benchmark to get some information on the latency: mplayer -msglevel all=6 -benchmark udp://localhost:4242īut I get this output instead: Playing udp://localhost:4242. I am using this command line to generate and send the stream: ffmpeg -s 1280x720 -r 100 -f x11grab -i :0.0 -vcodec mpeg2video -b:v 8000 -f mpegts udp://localhost:4242Īnd I'm successfully using ffplay to receive and read it in real time: ffplay -an -sn -i -fflags nobuffer udp://localhost:4242?listen Im trying to compare latency between different video codecs using ffmpeg and mplayer's benchmark.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |