12:47
Try to create thumbnail from video using ffmpeg
This command work perfectly:
ffmpeg -i test.mp4 -ss 00:00:00 -vframes 1 thumbnail.jpg
But I need to push video to ffmpeg from stdin, and find solution with pipe:
cat test.mp4 | ffmpeg -f mp4 -i pipe:0 -ss 00:00:00 -vframes 1 thumbnail.jpg
But it's not work for me. Error:
ffmpeg version 7.0 Copyright (c) 2000-2024 the FFmpeg developers
built with Apple clang version 15.0.0 (clang-1500.3.9.4)
configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.0 --enable-shared --enable-pthreads --enable-version3 (...)
16:01
I need to acquire a short RTP video stream (15 to 90 seconds) on a local on-premise small device. The device is not capable of creating natively a MP4 file by itself.
The device is simply saving RTP packets on a local dump file as received. This file is then sent to a remote server after the stream has ended.
I have no control on the local device (I cannot change its software or its behavior).
I need to convert this RTP "dump" file to MP4 format on the remote server, where I can run my own software.
I am trying to figure out a quick&dirty way to perform this (...)
13:10
When I concat videos in this command:
ffmpeg -f concat -safe 0 -i filelist.txt -c copy -y new.mp4
And filelist.txt is:
file 'video1_new.mp4'
file 'new3.mp4'
file 'video2_new.mp4'
I got
[mov,mp4,m4a,3gp,3g2,mj2 ⓐ 0x7fe0eec052c0] Auto-inserting h264_mp4toannexb bitstream filter
[mp4 ⓐ 0x7fe0eea04380] Non-monotonic DTS in output stream 0:1; previous: 9188352, current: 9187776; changing to 9188353. This may result in incorrect timestamps in the output file.
This warning results in unpredictable things while (...)
10:43
I try to generate thumbnail from video mp4 using Golang+ffmpeg.
Let me provide some steps:
Tried to generate using terminal ffmpeg -i test.mp4 -ss 00:00:00 -vframes 1 thumbnail.jpg - all works successfully
Tried to generate from golang and put result into stdout cmd := exec.Command("ffmpeg", "-i", "test.mp4", "-ss", "00:00:00", "-vframes", "1", "-f", "image2pipe", "-") - all works successfully
Trying to open video using os.ReadFile and bytes.NewReader and after that - cmd := exec.Command("ffmpeg", "-i", "pipe:", "-ss", "00:00:00", "-vframes", "1", "-f", (...)
10:50
I am runnig following command to forward webcam using ffmpeg to a remote IP over a cellular network
ffmpeg -i /dev/video0 -c:v libx264 -crf 35 -preset ultrafast -vf "eq=gamma=0.8" -f rtp "rtp://10.78.253.19:51372"
following command generate an sdp file which I can save in a txt file and its icon chane into vlc which I can run on remote desktop to play/see video
here is my sdp file view_camera.sdp
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 10.78.253.19
t=0 0
a=tool:libavformat 58.29.100
m=video 51372 RTP/AVP 96
a=rtpmap:96 (...)