Where OUTPUT is the file that you generated with FFMPEG. Some ffmpeg filters drop audio streams, and care must be taken to preserve the audio in the final output. This package uses the FFmpeg to package media content for online streaming such as DASH and HLS. And finally the output-destination specifies the format and container of the output media (streaming/non-streaming). Lastly, you should pack up the file for iPhone and iPod compatibility:ĪtomicParsley OUTPUT -iPod-uuid 1200 -overWrite Then run it again with "-pass 2" and it will use the log file for superior variable bitrate results. If you want, you can add "-pass 1" to the command and run it, and it will generate a log file. I don't understand many of them, but it looks nicer with them on. listen 1 tells FFmpeg to use the RTMP protocol as a server and wait for incoming connections. So we’re starting with our fist parameters of the FFmpeg command: -listen 1 -i rtmp:///stream01. All the other flags are h264 options for higher quality. RTMP is a common used protocol for this and it’s supported by most of the streaming clients. The -threads option gives you multithreading, I run a quad-core so I have it at 4. You can also specify a size with "-s widthxheight" for instance "-s 640x480". ab is audio bitrate, if you want to change that, and -b is the video bitrate. With FFmpeg, users can do the following: Convert between different file formats and codecs (i.e. The -vcodec and -acodec options specify the h264 encoder with aac audio. FFmpeg has a wide range of capabilities for live video streaming. Next, you can use this command to encode the video:įfmpeg -y -i INPUT -vcodec libx264 -acodec libfaac -ab 128k -ac 2 -b 640k -threads 4 -flags +loop -cmp +chroma -partitions 0 -me epzs -subq 1 -trellis 0 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -maxrate 10M -bufsize 10M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 OUPUT This is the thread I followed for Ubuntu: You will find below the nf file, and the log output from the ffmpeg command. Read on to learn how to encode videos in to H264 for use by Flash 9, and also to stream to an iPhone in Safari, and be able to sync them onto an iPod.įirst, you need FFMPEG compiled with H264 support. I am trying to use ffmpeg to stream video using ffserver.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |