Add SRT subtitle to video with ffmpeg

I use ffmpeg to encode, and add subtitle to a video by following command $ ffmpeg -i hifi.avi -i hifi.srt -acodec libfaac -ar 48000 -ab 128k -ac 2 -vcodec libx264 -vpre ipod640 -s 480x240 -b 256k...

Convert .mov to .mp4 and keep alpha channel using FFMPEG

I am trying to convert a .mov file that is Quicktime with Alpha Channel to a .mp4 movie. I am using FFMPEG and I can successfully convert the video to a .mp4 video, but I loose the alpha...

FFmpeg saving rtmp live stream cuts off after 3 minutes

I was playing with ffmpeg and was able to save a live stream to a file. The command to do so is: ffmpeg -re -i "rtmp://<ip addr>/livestream live=1" -f h264 test.flv However, I have tested this...

ffmpeg watermark from java Runtime.exec cannot find output

I'm having a problem in sending a ffmpeg command to add a watermark to my video from Java using Runtime.exec(). The strange thing is that the same command is working perfectly from terminal.......

ffmpeg missing blend filter

I am working on android project using ffmpeg library. I followed instruction from: https://github.com/guardianproject/android-ffmpeg to build ffmpeg library for android. All are OK. Now, i am...

Convert mp3 -> Video with static image ( ffmpeg/libav & BASH )

Some years ago I used the following bash script to get a video out of mp3's and one image (so the image in the video was freezed over the length of the mp3), which worked out fine. i=0; for file...

ffmpeg determine correct codec to use

I am trying to use .y4m files that I feed into Chrome for playing. This is the only format that I can use. I have a set of .y4m files that are working for my use case, taken from here. For example...

ALSA buffer xrun induced by low quality source in ffmpeg capture

I am attempting to transfer some old Video 8 tapes to my computer, though an EasyCap USB stick and the motherboard's sound line-in, on Ubuntu. I believe the arguments are correctly laid out below...

How can I fix a damaged MP4?

I have a video of just under an hour recorded but it appears to be damaged somehow. The file format is h264 MP4 and the file size is 2.3 GB, so I'm confident that the information is there, just...

Convert yuv video to png frames using ffmpeg

I want to convert a yuv video to png frames using ffmpeg. The command I use is /root/bin/ffmpeg -i pirkagia_max_vid_qual_one.yuv -s 720x576 -r 25 -pix_fmt yuv420p -f image2 one/image-%3d.png I get...

unable to find a suitable output format for 'ffmpeg'

I am using ffmpeg library for android. I am passing one ffmpeg command for convert video format from .mp4 to .avi ffmpeg -r 20 -i /storage/emulated/0/WisperMedia/WisperVideos/sample.mp4 -b:v 20M...

ffmpeg conversion .dav to any video files

I am trying for days to convert .dav file (file generated by dvrs [image recorders]). I have tried several variations with ffmpeg and can not succeed. Command and console output: $ ffmpeg -i...

Convert mov with Alpha to VP9 Webm with Alpha Using ffmpeg

I am trying to convert a mov with alpha transparency to webm with alpha transparency, as seen here. I followed the steps explained here to no avail. From this answer I was able to remove all the...

Merging two audio files in Android using FFMPEG

I'm working on an application that takes two audio files, and merges them into the respected channels. The way they are being equalized are not as good as I had hoped, So I want to adjust the...

No such filter in ffmpeg

I am trying to create the slideshow with below command. Here is the command I have executed: ffmpeg -loop 1 -t 1 -i /sdcard/input0.png -loop 1 -t 1 -i /sdcard/input1.png -loop 1 -t 1 -i...

Could not find codec parameters for stream 0

When I run this command: ffmpeg -y -i ./in.mp4 -c:v png -f image2pipe -thread_queue_size 1024 -r 25 -t 186.75 -i - -filter_complex overlay=0:0 -c:v libx264 -pix_fmt yuv420p -movflags +faststart...

ffmpeg HLS transcoding and chunks upload to remote server

I am trying to create a so called origin server for storing the hls chunks and the manifest file on a remote server. The sending machine running ffmpeg is with IP: 192.168.178.50 and the web...

Speeding up/slowing down video ffmpeg

I want to change video speed using ffmpeg framework. I used this command for that: ffmpeg -y -i /storage/extSdCard/Video/1.avi -filter_complex [0:v]fps=50.0, setpts=0.5*PTS[v];[0:a]atempo=2.0[a]...

FFmpeg file not found exception, No such file or directory

I am getting the No such file or directory exception on video trimming. video path : /storage/emulated/0/Pictures/Instagram/Fast & Furious 7 - Get Low Extended Version Video.mp4 file name : Fast &...

Send chunks from MediaRecorder to server and play it back in the browser

With the following code in NodeJS I'm able to play a webm file served from server: app.get('/video', function(req, res){ res.writeHead(200,{ 'Connection': 'close', ...

FFmpeg on aws lambda - Invalid NAL unit size

I am trying to run below: 1- generate mp4 from one png image and a mp3 file 2- overlay another png image on top of the previous video A-On my local environment (mac) things work...

Trim Video with FFMPEg

In my application, I have the functionality to trim videos. I am using FFmpeg here. Below is my code Declared on top, FFmpeg ffmpeg; Loading library using the following code, try { if...

php video upload and ffmpeg won't create a thumbnail

I am trying to make a video upload feature for my project. But I have a problem with ffmpeg section. ffmpeg is already installed on my server. But i can not get any thumbnail. I have try to create...

Regular expression to parse ffmpeg info

Here is my code: Input #0, mpegts, from 'tcp://127.0.0.1:3456': Duration: N/A, start: 1809.522000, bitrate: N/A Program 256 Metadata: service_name : AIR_CH_521_6M ...

FFMPEG Could not find tag for codec pcm_s16be with MP4

I am desperately trying to cut an MP4 video with ffmpeg, following this [example] https://github.com/facebookresearch/VideoPose3D/blob/master/INFERENCE.md ffmpeg -i P1060513copy.mp4 -ss 3:12 -to...

FFmpeg seeking (-ss) not working on some devices

As the title states, -ss command is not working on some devices, like the Huawei Mate 10. Here is the command I'm using and how I get the values: Format formatter = new SimpleDateFormat("00:" +...

ffmpeg. Segmentation fault when input process end

Im using xvfb-run with katalon cli command to execute selenium tests inside docker container (ubuntu 16) xvfb-run --listen-tcp --server-num 44 --auth-file /tmp/xvfb.auth -s '-ac -screen 0...

FFMPEG rotation metadata sometimes goes clockwise and sometimes goes counterclockwise

I have two different machines with two different versions of ffmpeg installed. I'm trying to set the display matrix of a video to have a rotation value by using the -metadata:s:v:0 rotate=$theta...

FFmpeg eats all the memory and crash within a minute while recording chrome activity

I'm using ffmpeg to capture the activity of chrome (thanks to chrome driver) and record it into an mp4 file. However, the memory consumed by ffmpeg is quickly blowing up, and after a minute or so...

ffmpeg: Can't convert file due to missing pixel format info?

I'm new to ffmpeg and i've been having problems converting this kux file to mp4. I've converted other kux files in the same way before without issues but it seems that this one isn't working...

Relevant tags