FFMPEG - Not finding codec parameters

I'm trying to convert a sequence of images into a mpeg movie via FFMPEG, although I keep getting an error saying that it could not find the code parameters (Video: mjpeg). A Google search did not...

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

adding silent audio in ffmpeg

I'm trying to use ffmpeg to add a silent audio track to a MOV file. I created a silent audio track longer than the video, and intend to use the -shortest option with ffmpeg. Using SoX v14.3.1, I...

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 convert .mov to .ogv

I have some troubles converting my .mov to a .ogg file using FFmpeg. This command should work, right? ffmpeg -i test.mov -s 640x320 -vcodec libtheora -acodec libvorbis out.ogv It gives me this...

Where is my ffmpeg stream getting saved to?

I'm just starting to explore ffmpeg (ultimately for use with openCV), and I'm running this command: [email protected]:/# ffmpeg -f video4linux2 -r 25 -s 640x480 -i /dev/video0 /out.avi At which...

ffmpeg hangs when run in background

If I run ffmpeg as follows: ffmpeg -i H264-media-4.264 4.avi It works OK (i.e. 4.avi created OK). However, if I try to run it in background: ffmpeg -i H264-media-4.264 4.avi & it hangs! (and...

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

Android ffmpeg Issue :- <filepath> : No such file or directory

I am using FFMPEG tool to merge IMAGE & AUDIO files. Its working only in SAMSUNG GALAXY TAB II. I had tried in many android devices & emulators but unfortunately it had not worked in any of...

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

ffmpeg seek calculating wrong byte range?

I'm running into an issue while trying to extract thumbnails from a movie file at a specific timestamp. Generally I've had no issues with this, but I've come across a set of movie files that are...

FFmpeg, error hardcoding subtitles

I'm trying to use ffmpeg to hardcode subtitles, but it gives this error: No such filter: 'subtitles' Error opening filters! My ffmpeg command and complete console...

FFMPEG: How to chose a stream from all stream

I try to convert a UDP stream (that genrated from DVB signal) to HLS m3u8 file with this code: ffmpeg -i udp://239.1.2.1:60001 -acodec aac -strict -2 -vcodec libx264 -hls_wrap 100 -f hls...

FFMPEG to create an MPEG-DASH stream with VP8

I'm trying to use FFMPEG to stream a live video feed from my webcam /dev/video0. Following scattered tutorials and scarce documentation (is this a known problem for the encoding community?) I...

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

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

Merge audio of multiple movies by ffmpeg command

I want to merge 3 video files to one. my problem is that i can hear the audio only from 2. one of them is muted. The command i did will show the 3 movies each one next to each other and should...

Making a video (.mp4) using every Nth numbering plotted images (.png) with ffmpeg

I have images file in format starting with number 10000 with every 500 step as shown here "Qen_10000.png, Qen_10500.png, Qen_11000.png, Qen_11500.png..." until Qen_80500.png I want to combine them...

How to convert aac to ogg opus keeping bit rate and sample rate unchanged

I'm trying to convert a .aac file to .opus but after inspecting with ffprobe I get different bit and sample rates. While input file's audio stream bit rate is 245995, the output file's audio...

Saving files on google colab

I am processing videos stored on my google drive on google colab using moviepy. I want to save the trimmed video in my current working directory on gogle drive, but I am unable to do so. Below is...

Converting mkv to mp4 with ffmpeg sometimes loses video

How can I create a universal as possible command line to convert mkv to mp4? I fixed an issue where sometimes I'd lose audio (I think) and now I'm losing video. This is the command I currently use...

FFMPEG does not produce output a valid mp4 when called from Java

I am merging an image with an audio file into a mp4-video using the ffmpeg-command: ffmpeg -y -r 30 -loop 1 -i <path/to/image.png> -i <path/to/audio.aac> -shortest -acodec copy -vcodec libx264...

Better performance ffmpeg android

I'm running this command on ffmpeg for android: -i MYVIDEO -map 0:s:0? -c:v copy -preset veryfast -c:a copy -hls_flags single_file outputFile.m3u8 -frames:v 1 -q:v 2 outImage.jpg -y this is the...

FFMPEG Removing audio from video makes the video short

I was trying to remove audio from video using FFmpeg, the command I used is: ffmpeg -i video.mp4 -an -c copy no_sound.mp4 But the length of the final video is less than the original...

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

FFmpeg v4l2 copying unstable

Prelude I am using ffmpeg 4.2.2 on an Ubuntu 20.04 machine to clone the feed of a USB webcam (v4l2 device as /dev/video0) so that multiple applications may access the feed. I used this ffmpeg...

ffmpeg encode video produce incorrect mediainfo encoding settings

I've been trying to do batch encode videos to H265 format. I am using media-autobuild_suite to build ffmpeg and have already updating ffmpeg to the latest version. ffmpeg version...