14:42
I know video files can (and do) contain frames that are encoded out of order, which is why dts and pts exist, but can you send your frames in an arbitrary order, with their correct pts, and expect the video file to play?
Specifically I'm wondering about concatenating video files, can I decode both inputs in parallel and send the frames with the correct merged pts as they get decoded? And if so, what would the playback performance implications (...)
12:41
What steps are needed to stream RTSP from FFmpeg?
Streaming UDP is not a problem, but as I want to stream to mobile devices which can natively read RTSP streams, I couldn't find any setup which tells what exactly is needed. Do I need an RTSP streaming server like LIVE555 or can I use FFmpeg only?
My Command:
ffmpeg -i space.mp4 -vcodec libx264 -tune zerolatency -crf 18 -f rtsp -muxdelay 0.1 rtsp://192.168.1.200:1234
I get an Input/Output error.
Do I need a SDP description to use RTSP?
And if yes where do I have to put (...)
05:38
When I make the next upload, if the duration of the clip is very short it generates a corrupt file and if it is a little longer, for example 19 seconds, it generates a file that starts from second 8
const passThroughStream = new PassThrough();
const response = await new Promise((resolve, reject) =>
const command = ffmpeg()
.input(`$import.meta.env.BUCKET_URL$m3u8S3`)
.inputOptions([`-ss $TIME_OFFSET`])
.outputOptions([`-t $end - start`, '-c:v libvpx', '-c:a libvorbis', '-f webm'])
.on('start', (commandLine) => (...)
05:53
I tried to use QSV hardware decoding under ffmpeg, using the integrated graphics 730 on my computer. Here's the code I used to initialize the decoder
const AVCodec* codec = NULL;
int ret;
int err = 0;
// Create the QSV hardware device.
ret = av_hwdevice_ctx_create(&hw_device_ctx, AV_HWDEVICE_TYPE_QSV, "auto", NULL, 0);
if (ret < 0)
char error_string[AV_ERROR_MAX_STRING_SIZE];
av_make_error_string(error_string, AV_ERROR_MAX_STRING_SIZE, ret);
LError("Error creating QSV device: ", error_string);
return NULL;
// (...)
03:19
i've been trying to create a transport stream using FFMPEG, when i tried it in VLC it was working immediately, however when i stream from FFMPEG to VLC i can't get it to work, here's my string:
ffmpeg -re -i http://ip-of-shoutcast-stream:port?listen -c:a aac -b:a 128k -ar 44100 -ac 2 -vn -f mpegts udp://ip-of-destination-pc:1234?pkt_size=1316
In VLC i use the same network source i used when VLC was streaming in the main PC:
udp://ip-of-main-pc:1234
But it doesn't play or show any errors, the orange bar only goes back and (...)
03:21
I'm using FFMPEG to convert to stream to UDP local network but not able unless I define pkt_size
ffmpeg -re -i test.mp4 -f mpegts udp://127.0.0.1:23000?pkt_size=1316
Is there a way or work around to omit that option? I have an device encoder aplication without pkt_size option. So only if pkt_size is defined (and equal) VLC is able to capture.
I want VLC to work this way if possible
ffmpeg -re -i test.mp4 -f mpegts udp://127.0.0.1:23000 (...)