Add -b:v 500k or a higher number to the output options to control the bitrate.Add -re to stream files at their native rate.Usually, this option is not needed since it can be guessed for the output file extension. f mpegts forces the output format to be mpegts. -vcodec mpeg4 sets the ouput codec to Mpeg4 part 2, we can improve on this with Mpeg4 part 10 or H.264.By default, ffmpeg can be rather verbose. Tip: Adding -v 0 to ffmpeg sets the global log level to zero. Have no input options, and -vcodec mpeg4 -f mpegts as output options. This should play the video sample.mp4 although the quality is rather blocky. A simple test: open two terminals, in first run ffplay udp://127.0.0.1:23000 and in the secondįfmpeg -i sample.mp4 -vcodec mpeg4 -f mpegts udp://127.0.0.1:23000.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |