Search found 46 matches

by navilor
Sun Jan 07, 2018 9:24 pm
Forum: Usage
Topic: FFmpeg transfer from bad media
Replies: 4
Views: 839

Re: FFmpeg transfer from bad media

Demux the video then demux the audio to see if one or both are broken. ffmpeg -i H:\badfile.mp4 -vcodec copy -an e:\video.mp4 ffmpeg -i H:\badfile.mp4 -vn -acodec copy e:\audio.mp4 In a perfect world this is merely a PTS/DTS corruption issue and you can put everything back together. ffmpeg -i e:\vid...
by navilor
Sun Jan 07, 2018 8:17 pm
Forum: Suggestions
Topic: VMAF Filter
Replies: 4
Views: 3682

Re: VMAF Filter

This lib currently depends on pthread, which is not included with the builds right now. I'm trying to avoid adding pthread support because it's slower than FFmpeg's Windows threading implementation. Pthreads are required if you ingest UDP packets typically coming from live RTP, RTSP, or MPEG-TS fee...
by navilor
Mon Nov 13, 2017 1:48 am
Forum: Usage
Topic: Live streaming
Replies: 1
Views: 812

Re: Live streaming

It looks like you are having a problem decoding that content. The content may be bad. I never trust any content that comes across my desk. An early FFmpeg ticket agrees with this. https://trac.ffmpeg.org/ticket/19 Another post on a different website also shows the same errors you have. https://forum...
by navilor
Sun Nov 12, 2017 9:01 am
Forum: Usage
Topic: How do I dump a network stream to a file?
Replies: 8
Views: 2735

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

So basically you want an exact copy of the audio and video stream with the PTS/DTS timestamps kept the same, the metadata kept intact, and no additional data added such as writing application added to the output. A literal binary copy. Too bad FTP, SFTP, and HTTP are not options here. You might be i...
by navilor
Sun Nov 12, 2017 6:05 am
Forum: Usage
Topic: How do I dump a network stream to a file?
Replies: 8
Views: 2735

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

I have a cheap RTSP camera and this worked for me once I forced the output container to be asf using the -f option. I had to exclude the audio because the asf container apparently does not like the A-law (also known as G.711pcma_law) codec. The video codec is H.264. ffmpeg -rtsp_transport -tcp -i rt...
by navilor
Sat Nov 11, 2017 10:21 pm
Forum: Usage
Topic: Poor quality encoded MP4 video
Replies: 2
Views: 1110

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: 2735

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: 1179

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: 3102

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: 1290

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...