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 (...)
22:42
I'm writing a Java app that uses at some point an ffMPEG command in the console. This command needs to do the following:
Take the input file from DDTV/episodes-unconverted/example.[mpg/avi]
Make it 1280x780. (If it's 4:3, add pillar boxes, if it's 16:9... just you know do nothing I guess)
Add the watermark DDTV/DDTVwatermark.png at 10px from the bottom, and 10px from the right, at 33% transparency to the video.
Output it to (...)
21:48
There are hundreds of videos that we'd like to add a small FFmpeg watermark to the bottom right during the first 5 seconds of each video. I don't know if there's a way to automate the command to all files in the folder, and if there is a way to make the output filename the same as the original video, or adding a -2 to the new filename. Some videos may have different file formats.
Not sure if there's an app that can facilitate this for someone not well versed in programming, or can help do it to all the videos with one command. This could potentially be done in (...)
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 (...)
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 (...)