Questions tagged [ffmpeg]

`ffmpeg` is a free software project aimed at producing tools (libraries and programs) for handling multimedia data.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

Is it possible to convert all video files in subdirectories on google drive using ffmpeg & rclone?

Currently I'm using this code whereby rclone fetches 1 file from my google drive, converts it using ffpmeg on a server and moves the converted files to the same folder. It's shown as below. Step 1 is ...
0
votes
0answers
8 views

Extract middle minute (Frames) from an audio using FFmpeg

I am trying to extract the middle x minutes from some audios using FFmpeg. So far the closest thing to this, that I can find is by specifying the start- and end-time of the extracted frames. ffmpeg -...
0
votes
1answer
71 views

FFmpeg succesfully installed but only plays videos MP4?

I installed FFmpeg (mplayer, mencoder, flvtool2, libogg, libvorbis, lame, ffmpeg-devel) on CentOs 7 Linux (plesk). No issues during installation. The absolute path: /usr/bin/ contains the binaries ...
0
votes
0answers
12 views

Merge and reduce video file with ffmpeg

I'm trying to merge an opus and webm to single webm video. but at the same time, I also want to reduce the video. I already add some command from this solution. It works from some people but not me. I ...
0
votes
1answer
39 views

How to pipe:/// through a .sh or Python script, or use some sort of setting files with FFMPEG

First post, so be kind please :) So a quick bit of history. I am using tvheadend, and the inbuilt transcoder murders my CPU, and provides average quality output (it's powered by ffmpeg), if I pipe ...
0
votes
2answers
42 views

Slicing a video with arbitrary seek times from an input file (playlist)

Example : Content of the playlist file: (0:00:00) Abcde efgh ijk (0:04:28) bcdea gefgh idjk (0:17:00) qbecde efgh ijk (0:27:40) hebcde efgh ijk (0:35:03) Abeds esdh dfk (0:49:16) dfhks ierkld sls (0:...
0
votes
2answers
45 views

use find -exec with a filename containing a dollar sign ($) [duplicate]

I have a directory with some .flac files: [test]$ ls 'test file (with $ign & parentheses).flac' 'test file with spaces.flac' I want to run an ffmpeg test command on those files, i used find ...
3
votes
1answer
33 views

ffmpeg: extract audio only from a media file using the best presets (2.0)

I was reading Cut part from video file from start position to end position with FFmpeg a few days back and I tried the following and it worked. While the video part was good, I am not sure if the ...
0
votes
3answers
89 views

Bash script in a Perl script hangs

I'm running a small bash script in a Perl script on a Mac, but the bash script seems to hang when finished. The Perl script doesn't pick up and continue. The bash script works great in a shell window. ...
1
vote
0answers
25 views

ffmpeg streaming runs ineeficiently when started via init.d startup script

I'm using ffmpeg to stream video/audio on raspberry pi 4, using the following command ffmpeg -re -f v4l2 -input_format h264 -thread_queue_size 512 -i ${video_device} -re -f alsa -thread_queue_size ...
0
votes
1answer
23 views

ffmpeg record video tape with audio

I'm trying to record video tapes to digital, using this command: ffmpeg -f v4l2 -video_size 720x480 -i /dev/video2 -channel_layout stereo -f alsa -i hw:1,0 -c:v libx264 -pix_fmt yuv420p -b:v 2M -crf ...
0
votes
1answer
22 views

How to trim input audio by FFMPEG?

The below command well works for trimming the output audio ffmpeg -i input.mp3 -af silenceremove=1:0:-50dB output.mp3 However, I am concating several mp3 files, ffmpeg -i 1.mp3 -i 2.mp3 -i 3.mp3 -...
0
votes
1answer
129 views

st: 1 edit list: 1 Missing key frame while searching for timestamp: 0 from file created with ffmpeg

I have created a new mp4 file by using concat on my mp4s with this: ffmpeg -protocol_whitelist file,tcp,http,pipe -f concat -i - -c copy ${videoName%/}.mp4 I then, want to reduce the file size of ...
1
vote
1answer
85 views

ffmpeg merge multiple sets of 2 videos in for loop

I am still pretty new to linux and have been trying very hard at getting this right. Please help me to get this right. I am trying to merge 2 videos (1 from each folder) multiple times in like a ...
0
votes
1answer
123 views

ffmpeg only outputs at bit depth s32p when converting from flac to alac

I'm trying to convert some audio files from FLAC to ALAC (m4a) using ffmpeg. For my environment (Apple & Sonos), the lowest common denominator seems to be as follows: ALAC (.m4a) encoding at ...
0
votes
0answers
21 views

Broadcast Camera stream over 5G Wifi network to multicast address using FFMpeg

I am trying to stream my Intel RealSense D435 RGB camera input to a multicast address on my network. Please note, video streaming, encoding, is very new to me - I do not understand much, when ...
0
votes
0answers
123 views

Stream Intel RealSense camera to network using Raspberry Pi 4 with FFMpeg

Good day all So I have trying to stream my Intel Realsense D435 camera to my local network. After reading up on many different sites, tutorials, etc I figured out the following: What can I do with ...
2
votes
1answer
33 views

ffmepg - How to reduce size of video with many still images

I have many videos that contain mostly still images with almost no motion. Only in some sequences there are animated scences with much motion. Now I want to reduce their filesize, but ffmpeg with crf ...
1
vote
1answer
37 views

ffmpeg video at 100 fps with 300 images gives 13 seconds

I have a sequence of images, named from 00001.png to 00322.png. I want to create a video from that image sequence, for which I have used the following command: ffmpeg -i %05d.png -c:v libx264 -vf fps=...
0
votes
0answers
46 views

Cut dvbsub from MPEG-TS with ffmpeg

I have a bunch of MPEG-TS files, originally created by a hardware TV-recorder. ffprobe lists their content like so: Input #0, mpegts, from 'recording.ts': Duration: 02:14:57.67, start: 87544.254878,...
1
vote
0answers
25 views

How can I burn embedded subtitles to a file using ffmpeg?

Most of the examples on the internet advice you to use an external file to burn subtitles into the video with -vf subtitles=subtitle.srt. How can I do that when the subtitles are embedded into the ...
0
votes
0answers
48 views

FFmpeg doesn't take input while overwrite question

My script basicly do convert videos (ex: mp4 --> mkv). Let's say there is a video file in working directory with name "1.mp4" and we want to create a new file "2.mkv". In this case script runs withour ...
0
votes
0answers
30 views

How to set bitrate for ffmpeg's native Opus encoder using youtube-dl?

I don't have libopus library. According to ffmpeg docs there is have basic control over bitrate settings. Passing params to ffmpeg with -postprocessor-args ARGS. --no-check-certificate --prefer-...
0
votes
2answers
44 views

Is there a way to safely break a long command line, which is inside quotes?

I wrote a command that is a little complicated. Because there are several ' ' and " " quotes. And escaping conditions like '\'' (that usage is obligatory for some reasons. I researched it a lot). And ...
0
votes
2answers
52 views

How can I open a new terminal session in a script, then interact with it?

I try to do like below: #!/usr/bin/env sh name="video.mp4" ffmpeg -i "$name" -acodec copy output.mp4 | mate-terminal I want to see the results in a newly opened terminal, but of course it doesn't ...
0
votes
0answers
64 views

Mpeg-4 AAc decoder not installed

MPEG-4 AAC MPEG-4 AAC decoder, H.264(Main Profile) decoder are required to play the file, but are not installed. The above error message shows whenever i want to play video on my ubuntu version 18.04....
0
votes
0answers
20 views

how to fix video/media file using ffmpeg

I know one can use ffmpeg can all kinds of different ways in which a file can be fixed. I get (sometimes) files where either the timestamp is wrong or the file duration is wrong or something else is ...
2
votes
1answer
66 views

Single quote problem in “sh -c” script launched from “find”

Now I am writing a script for a long time, but lately this problem has drives me crazy. I tried everything but couldn't solve it. find . -iname "*.mp4" -type f -exec ffmpeg -i "{}" -c:a "$ACODEC" -c:...
0
votes
1answer
16 views

ffmpeg creates a broken video

The video created by this command: ffmpeg -y -framerate 25 -i picture.png -i sound.wav -vcodec libx264 -crf 20 -preset medium -acodec aac -vf scale=1280:-2,format=yuv420p output.mp4 is not accepted (...
1
vote
0answers
13 views

merging part of a media file with subtitles for a media file?

I extracted part of a media file using the answer given at FFMpeg : Creating a video clip of approx. 10 seconds when video duration is unknown without audio- . In my case it is an .mkv file. The thing ...
1
vote
0answers
40 views

Command line VOB to AVI/MP4 with good quality and deinterlace

I have some VOB files, grabbed from DVDs. I need to make AVI/MP4 files for uploading online. The original resolution is 720p and I want 720p, but need to scale as the pixels are not square (720x480 to ...
0
votes
0answers
42 views

script for batch looping audio files in ffmpeg returns error

The following command concatenates a given file a number of times, then trims it. The numerical value can be adjusted for how many times the file is repeated in printf. "-t" is used to trim it to a ...
1
vote
1answer
24 views

Does ffmpeg support dropping chroma information when encoding dynamic scenes?

Video encoders use a lot of techniques to fit the bitrate restrictions. With high compression level even the simple MJPEG compression may partially or totally discard the chroma information. I wonder ...
-1
votes
1answer
28 views

Did I broke my video file with Windows Sub-System for Linux?

I did some basic operations to my video files using FFmpeg: ffmpeg -i input.mp4 -c:a copy -c:v copy output.mp4 And everything's fine. Until I accidently realized something. When I ls, I saw that one ...
0
votes
1answer
19 views

Blu Ray mkv's unable to preserve subtitles

I have recently ripped som blu ray discs using makemkv. I now want to change the size of the files using ffmpeg. I dont want to change the resolution, but the quality (i think it is crf as command). ...
0
votes
2answers
109 views

ffmpeg add new srt and delete old ones

I'm struggling to find a one line command to merge new subtitle and delete existing ones from video file. Example: test1.mkv (already contain softcoded subs, dont need them) test1.srt (only ...
0
votes
0answers
29 views

ffmpeg frames background extracted after subtitle burning differs from original backgrounds

I have noticed that after burning subtitles on a video: ffmpeg -i nosub.mp4 -vf subtitles=sub.srt withsub.mp4 when I extract frames using the same command and do an image substraction, I would ...
0
votes
0answers
142 views

ALSA Loopback not recording system audio on Xubuntu 18.04 in ffmpeg command

I have an ffmpeg script to do my screencasts. I have Debian 9 at the office and Xubuntu 18.04 at home. On those two operating systems, the following works to record system audio and from my microphone....
0
votes
0answers
45 views

How can I embed Subtitles into an MP4 Generated with ffmpeg

This isnt a duplicate of How can I embed subtitles into videos with ffmpeg? Im asking for something else, and that question didnt solve my problem. So im making a string Concatenation XAML App that ...
1
vote
2answers
378 views

Trim an audio file into multiple segments using `ffmpeg` with a single command

So far I have been using the following command to split an audio file from S to E: ffmpeg -i input.mp3 -ss S -to E -c copy output.mp3 Due to the fact that I need to split an audio file into multiple ...
2
votes
0answers
81 views

How to list packages that depend on a certain version of a dependency?

I heard that maybe upgrading to a newer version of FFMPEG than what's included in Debian by default might solve some of my problems. But I've had bad experiences with upgrading packages like that, ...
1
vote
0answers
46 views

How do I deal with a ${PWD##*/} variable for FFMPEG input when there's spaces in the folder name? [duplicate]

I have a .bash_profile script that uses FFMPEG to create a ProRes file from an image sequence. The name of the FFMPEG output file is taken from the current working directory. I'm fine taking the name ...
0
votes
0answers
40 views

ffmpeg “No match.” error on freebsd

im trying to split the 3D side by side video with this code.. ffmpeg -i sidebyside.mkv -filter_complex "split[l][r];[l]stereo3d=sbsl:ml[left];[r]stereo3d=sbsl:mr[right]" -map [left] -b:v 11600k -map ...
0
votes
1answer
117 views

Loop through folders and concatenate mp3 files with ffmpeg

I have many folders in one directory, each containing 2 mp3 files. Hereby I can find the files: first=$(find ./*/* -type f | sort | awk 'NR % 2 == 1') second=$(find ./*/* -type f | sort | awk 'NR % 2 ...
0
votes
0answers
16 views

Audio desynchronizing without warning messages with lame

Hello I recently tried to reencode a certain video with the following command: ffmpeg -y -i test.mkv -vf scale=720:-2 -c:v mpeg4 -vtag xvid -b:v 969k -pass 1 -an -f avi /dev/null && ffmpeg -...
0
votes
1answer
261 views

How can I reduce a video's size by lowering the quality as minimally as possible to archive purpose?

I am using convert.sh in Linux server as below, By using this shell, the original MP4 file has been changed to small size avi file(100% → 4~5%) compare to the original one. By the way its' resolution ...
0
votes
0answers
28 views

FFMPEG On AWS Linux Servers

I'm trying to run ffmpeg from aws lambda but my gif to mp4 conversion dont work. The mp4 output loses frames from the gif animation. os.system("/tmp/ffmpeg -i /tmp/2.gif -c:v libx264 -preset ...
0
votes
0answers
13 views

How can I use select inputs of a sound device for two different ffmpeg operations

I have a usb sound card with 8 audio inputs. I want to use ffmpeg to take channel 1 and 2 and record as a stereo input. I also want to take 3&4, 5&6 and 7&8 and record them as stereo ...
1
vote
1answer
57 views

How can I check from the command line to see if FFMpeg is actively playing audio?

Ffmpeg is showing its playing an icecast stream but there is no audio coming out. Restarting the program produces audio again. If an icecast feed goes away, ffmpeg keeps running even though theres no ...
0
votes
2answers
52 views

How to sort videos by codec and execute a command

So I have been trying filter out H265/HEVC and only show videos that are not the previous codec and then execute a command that I have that will transcode the video using my settings. Every time I ...

1
2 3 4 5
10