Search found 51 matches

by navilor
Sat Nov 11, 2017 10:21 pm
Forum: Usage
Topic: Poor quality encoded MP4 video
Replies: 2
Views: 1506

Re: Poor quality encoded MP4 video

I've been in the streaming media industry since 2008. Use CRF 23 to find your bitrate and then perform a two pass bitrate based encode if you want to stream your content. I wrote a blog post on this very topic. https://videoblerg.wordpress.com/2017/11/10/ffmpeg-and-how-to-use-it-wrong/ Neflix uses C...
by navilor
Sat Nov 11, 2017 10:17 pm
Forum: Usage
Topic: How do I dump a network stream to a file?
Replies: 8
Views: 5273

Re: How do I dump a network stream to a file?

Video needs to be put into a container such as MP4, MKV, TS or AVI. You can record the raw RTSP stream using Tcpreplay, however playback may be difficult because you would have to replay the stream and have FFmpeg reconnect to it. http://tcpreplay.appneta.com/ I've been in streaming media since 2008...
by navilor
Sat Nov 11, 2017 8:43 pm
Forum: Usage
Topic: FFmpeg and how to use it wrong
Replies: 2
Views: 1656

FFmpeg and how to use it wrong

I've been in the streaming media industry since 2008 and I see a lot of bad information regarding how to use FFmpeg. My focus is creating H.264 video with stereo AAC audio in an MP4 container that conforms to streaming media specifications. I wrote a blog on this that should help debunk a lot of bad...
by navilor
Mon Nov 06, 2017 12:08 am
Forum: FFmpeg Examples
Topic: example code for re-stream
Replies: 1
Views: 5316

Re: example code for re-stream

Your bitrate is really low and you are not specifying an audio codec. ffmpeg -i "http://hls.com/example.m3u8" -ar 44100 -vcodec libx264 -r 25 -b:v 500k -f flv "rtmp://rtmp.com/stream" Never I never trust my input. This would be an example for you to look at as a base for creating a better bitrate an...
by navilor
Sun Nov 05, 2017 10:19 pm
Forum: Other
Topic: Loop back and forth through frames
Replies: 1
Views: 1781

Re: Loop back and forth through frames

You might be able to use concat with the video only loop option. There are two entirely different sets of information on how to use concat. https://ffmpeg.org/ffmpeg-filters.html#concat https://trac.ffmpeg.org/wiki/Concatenate More information regarding the loop option. https://ffmpeg.org/ffmpeg-fil...
by navilor
Sun Nov 05, 2017 10:13 pm
Forum: Other
Topic: Looking for a devloper for help me out
Replies: 1
Views: 1095

Re: Looking for a devloper for help me out

Several things can cause latency. 1) Keyframe distance. The further the keyframe distance the longer it will take to connect to the content if it is a live feed. If you are delivering Adaptive Birate (ABR) content then make sure that your keyframe distance is precise using "-vsync 1", "-f $fps", "-g...
by navilor
Sun Nov 05, 2017 9:58 pm
Forum: Other
Topic: ffmpeg command line question
Replies: 2
Views: 1328

Re: ffmpeg command line question

The command line shown is wrong. Best practice is to define the file type at the end of the command. This: ffmpeg -f asf -i /home/NAME/Downloads/ptn/"FILE_NAME.AVI" -vcodec copy -acodec copy "FILE_NAME.AVI" Should look like this because defining the output type "-f asf" but creating an AVI file is w...
by navilor
Sun Nov 05, 2017 9:52 pm
Forum: Stream Recording
Topic: Continue recording to existing m3u8
Replies: 1
Views: 2792

Re: Continue recording to existing m3u8

No, but you can combine the captured TS files together using Concat. https://trac.ffmpeg.org/wiki/Concatenate You should also save the content as TS files for easier manipulation. Below is a simplified version of what you are looking for. /root/bin/ffmpeg -i STREAM-LINK.m3u8 -c copy -f mpegts -y out...
by navilor
Sun Nov 05, 2017 9:46 pm
Forum: Stream Recording
Topic: RTMP to MP3 Live
Replies: 2
Views: 4219

Re: RTMP to MP3 Live

Give this a whirl to exclude video and encode audio to an mp3 file using libmp3lame.

Code: Select all

ffmpeg -i [rtmp-url] -vn -acodec libmp3lame -ab 192000 -af "aresample=async=1:min_hard_comp=0.100000:first_pts=0" -f mp3 -y rtmprecording.mp3
by navilor
Sun Nov 05, 2017 9:41 pm
Forum: Stream Recording
Topic: incorrect video
Replies: 1
Views: 2198

Re: incorrect video

You made the mistake of trusting your source content. FFmpeg cannot convert both the video track and the audio track at the same time for this piece of content. Your content is extremely broken likely due to UDP packet loss between the source and capture. I have never seen content this broken in my ...
'