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
1
vote
1answer
406 views

How can I stop ffmpeg from quitting when it reaches the end of a named pipe?

I'm using a program which continuously writes MPEG-TS video data to a file while it's running. I'm expecting it to run continuously for many days. I want to use ffmpeg to transcode this video data ...
0
votes
1answer
255 views

Flickering and artifacts when capturing screen using ffmpeg and x11grab

I'm using the following command to capture my screen: ffmpeg -f x11grab -video_size 1920x1080 -i :0.0+1920,0 -c:v libx264 artifact-test.mkv The resulting video contains flickering artifacts that look ...
1
vote
0answers
97 views

ffmpeg bash script doesn't not work with subtitles when it comes to a filename with spaces

Here is my current script #!/bin/bash while true do for f in *.mkv; do /home5/user/ffmpeg_folder/./ffmpeg-git-20181101-64bit-static/ffmpeg \ -i "$f" -c:v h264 -maxrate 12M -crf 16 -c:a copy -vf ...
0
votes
1answer
242 views

Connection refused to local ffserver

I am unable to send my desktop capture to a localhost ffserver: the connection to the local server is refused. # ffserver >/dev/null 2>&1 & # ffmpeg -video_size 1600x900 -framerate 20 -...
0
votes
1answer
75 views

Cannot send desktop capture to ffserver?

I am simply trying to send a ffmpeg stream consisting of a desktop capture to a local ffserver: # ffserver >/dev/null 2>&1 & # ffmpeg -video_size 1600x900 -framerate 25 -f x11grab -i :...
1
vote
0answers
229 views

FFmpeg playing encoded video stream [closed]

This is the m3u8 playlist file I'm trying to play. #EXTM3U #EXT-X-VERSION:03 #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:1981290 #EXT-X-KEY:METHOD=AES-128,URI="encrypted-file://KEY_1541348762",IV=...
1
vote
1answer
83 views

How to log a process's uptime and restarts

I know that I can check a process's uptime with the following: ps -o etime= -p "PID" where PID = pid number. I would like to write to a log when this process ends, and include it's uptime. The ...
0
votes
1answer
378 views

Splitting up a pcm file into minute using ffmpeg long chunks

I have a large pcm file with about an hour's worth of data. I want to split it up into minute long chunks. Is there a way to ffmpeg to do that pr some other utility? Basically going from 0 - 3600s I ...
0
votes
1answer
78 views

die 2 of 3 ffmpeg recordings (freebsd)

I need to write 1h capture udp to http stream to file for few streams all streams write to one hdd, RAM 8Gb bash script: #!/bin/sh ffmpeg -y -i http://192.168.1.36:7781/udp/232.0.3.12:1234 -c:a ...
0
votes
0answers
102 views

How to drop bad frames in video file?

I've got a video footage from a security cam in MP4 format that from time to time contains broken frames. When I export the video to JPG frames the broken frames can be easily identified: Is there ...
2
votes
1answer
993 views

How to speed up video to make timelapse?

I've got a video file with 1.0 FPS (i.e. one frame per second) and would like to re-encode it so that it plays ca 20x faster. A short 1 FPS sample is here: http://s3.aws.nz/cam-1537668742.mp4 I can ...
1
vote
2answers
63 views

List MP3 files and durations

So I want to show a list of MP3 files with their durations. ffprobe does show me a duration of a file. But its output is nasty. It puts everything into stderr and I have found no way to remove its "...
1
vote
1answer
176 views

How I can to cut line segment video with ffmpeg?

I want to cut video from long-video with ffmpeg, I use this command: ffmpeg -i /home/nantembo/VideoPerl/1.mp4 -f avi -vcodec copy -acodec copy -ss 0:14:47 -t 0:58:55 /home/nantembo/VideoPerl/2.mp4 ...
0
votes
2answers
115 views

How to parse ffmpeg's -b:a option?

When you convert and create a 320kbps mp3 file, you may execute ffmpeg -i original.wav -b:a 320K out.mp3 But why can -b:a designate the bit rate? I've read man ffmpeg and the official ffmpeg ...
3
votes
1answer
429 views

How to stream a local video to webcam using ffmpeg?

I have a local video and I want to stream it to a dummy webcam video device from v4l2loopback. I created the dummy device at /dev/video1. How to use ffmpeg to steam that local video trial_video.mp4 to ...
0
votes
0answers
33 views

Partially replace video stream while preserving audio stream

Consider a video file with one video and one audio stream. I want to replace the video stream partially while preserving the original audio stream. With partially I mean to replace certain seconds ...
0
votes
1answer
254 views

Is it possible to setup a ffmpeg cron job for a directory?

I need a way to automatically convert gif files to mp4. And set a directory and check for new files every 5min. Id like to use ffmpeg for the coverting and delete the gif after. ffmpeg -f gif -i cat....
1
vote
0answers
183 views

trim video files via audio track information

Is there a way to pass a folder of .mp4 files and trim them by audio track? Say the first 20 seconds has no loud audio and the last 20 seconds has no loud audio, is there a way to remove the first and ...
0
votes
1answer
166 views

Can I run ffmpeg -f x11grab for a specified amount of time?

I'd like to run ffmpeg -x11grab for a specified amount of time, sneding the output to a file. (This is on a Debian system, ffmpeg 7:4.0.2-1) I have already tried the -t switch, as below: ffmpeg -f ...
1
vote
1answer
72 views

ffmpeg truncates paths on output when there are dots involved when run on bash

If I have a path with dots in the path, for instance: /home/user/Documents/hello/test.testing_23-24.123/test.testing_23-24.124 ffmpeg can locate the file if you pass the file's path as an argument ...
3
votes
0answers
147 views

Pipe VNC viewer output to /dev device

Using VNCTiger as a VNC viewer, how can I pipe/forward (correct terminology?) the output to one of the /dev devices like video0? At the moment I use a basic vncviewer command to get the output, as ...
1
vote
1answer
62 views

Split 4 Track WAV file into 2 stereo WAV files

The audio recorder my friend has can record 4 tracks at the same time, but unfortunately i records into a 4-track WAV file. The problem i have is that the DAW i use only accepts mono or stereo WAV ...
3
votes
0answers
106 views

ffmpeg: Specifying audio stream as filter input

I am trying to use ffmpeg to make two videos play next to each other simultaneously with both videos' audio combined. This is the command I'm currently running: $ ffmpeg -i video0.mp4 -i video1.mp4 \ ...
1
vote
1answer
67 views

Problem in running vlc in Openindiana

3 days ago I upgraded vlc in Openindiana hipster 2018.04 . The problem is that vlc will open but cannot play anything. I thought that it is due to ffmpeg package So, I removed my ffmpeg by pkg://...
1
vote
0answers
147 views

ffmpeg pipe webcam to output h264

I am trying to pipe the output of ffmpeg from the webcam to stdout. I need this to work on both OS X and Linux, Right now I have this command: ffmpeg -f avfoundation -framerate 30 -i "0" -target ...
0
votes
1answer
562 views

FFMPEG run a video filter and copy only 1 subtitle stream

I've got an .mkv with 1 video stream, 2 audio streams, and 12 subtitle tracks. I want to turn it to greyscale, just use the first audio track, and use the eng subtitle track 6 (according to ffmpeg -i ...
2
votes
1answer
131 views

What permission am I missing here?

I am trying to download the ffmpeg package and all of its dependencies into a directory on my computer. I use this code to do it sudo apt-get download $(apt-rdepends ffmpeg|grep -v "^ ") It works ...
3
votes
3answers
2k views

Chromium “FFmpegDemuxer: open context failed” when playing audio

When I try to play audio in chromium (e.g. in google translate or any icecast radio station) it gives this error in terminal [69:97:0711/164208.951104:ERROR:render_media_log.cc(30)] MediaEvent: ...
0
votes
2answers
809 views

FFMPEG: change input without stoping proccess

how i can change input on ffmpeg without stop process on linux Debian 9? im user decklink input and i need to change to file mp4 input. ffmpeg -f decklink -i 'DeckLink Mini Recorder' -vf setpts=PTS-...
2
votes
1answer
585 views

youtube-dl: Optimum settings for speech quality - podcasts or audiobooks

There is a huge YouTube playlist containing speeches. I wish to convert them all into the best audio format OPUS with minimum file size. For speech audio tracks they recommend a Bitrate of 24 (mono) ...
0
votes
1answer
460 views

ffmpeg add video to the start and end of another

So I am using the following to convert all our videos in /home/vids to mp4 and output them in /home/vids2 but now I would like to add another video that plays before and after each video in /home/vids....
1
vote
1answer
249 views

ffmpeg mass transcode videos in directory

I have loads of videos named different things and different extensions (some mp4 some wmv etc). I would like to run the command below but on every video in a specific directory and then save that in ...
0
votes
2answers
70 views

In nested directories, extract JPG from each MP4 frame, leaving JPGs in MP4's directory

I have this script, which creates a directory for each file, and moves the file into the directory. #!/bin/bash for file in *; do if [[ -f "$file" ]]; then mkdir "${file%.*}" mv "$file" "${...
1
vote
1answer
314 views

Mass convert audio files to a specified bitrate, but only if their bitrate is higher than that bitrate using ffmpeg

I have a bunch of audio files in a directory some are 128Kbps , some are higher. I want to convert the ones with a bitrate higher than 128Kbps to 128Kbps to save space. I tried writing a shell script ...
1
vote
1answer
210 views

Error during static build of libvorbis and libmp3lame

I'm having trouble trying to build a static binary of ffmpeg - I've got almost the whole build working, with the exception of two libs - libvorbis and libmp3lame. These two libs are failing during ./...
0
votes
1answer
66 views

ffcast and compton - a shadowy problem

So I have compton, a composite manager that I use to make things look prettier, mostly to add shadows to windows, and make things transparent. I also have ffcast, which I currently am using to make ...
1
vote
1answer
91 views

Trouble with ffmpeg and find

I want to convert my entire music library (in the current folder, I'd like to convert the subfolders too) to Opus using FFmpeg. The converted files should go to a folder in ~/Desktop/Opus and keep ...
1
vote
2answers
2k views

Can I stream from multicast to one client with ffmpeg?

I'm trying to do streaming from a source (tv box transmitting in multicast in this source rtp://@X.X.X.X:Y) to Internet (to my mobile phone as example or another device inside of my LAN) but I can not ...
4
votes
3answers
2k views

Convert all found m4a to mp3

I'm trying to covert all m4a to mp3 my code look like this: find . -name '*.m4a' -print0 | while read -d '' -r file; do ffmpeg -i "$file" -n -acodec libmp3lame -ab 128k "${file%.m4a}.mp3"; done ...
0
votes
1answer
397 views

ffmpeg; copy stream 1 encode stream 2

I have a video that first audio stream is aac and the second is DTS. I want to copy the first one but re-encode the second one to aac. The code I use usually is: #!/bin/bash ffmpeg -hide_banner -...
1
vote
1answer
723 views

ffplay streaming webcam h264 reconnect

I am watching webcam streams on Linux using ffplay over Wi-Fi Because Wi-Fi not so good, or when the webcam is restarted, ffplay streaming stops but ffplay does not discover this How can I make ...
1
vote
1answer
116 views

ffmpeg screenshot files recursively

if [ -d "$1" ]; then echo If files are media, screenshots will be made to ~/Screenshots for media in $(find "${1%/}/"* -name '*.mkv' -or -name '*.mp4'); do ffmpeg -hide_banner -loglevel panic -ss 00:...
0
votes
1answer
67 views

Programs started to fail suddenly with messages pertaining to shared memory

No idea why this is happening it's the first time I see this error. There seems to be enough space left in ram and drive. First vnc fails now if I don't run it with -noshm option. Second one that ...
0
votes
0answers
316 views

Make fails to find include files but they're there

I have configured ffmpeg for Android using the following configuration: ./configure --arch=arm --target-os=android --enable-cross-compile --cross-prefix=/Android/Sdk/ndk-bundle/toolchains/arm-...
0
votes
0answers
3k views

ffmpeg “moov atom not found” when merging MP4 & MKV

I am trying to merge an MP4 file (which contains only video), with a MKV file (which contains only audio). I am using this command: ffmpeg -i video.mp4 -i audio.mkv -c copy output.mp4 But I am ...
0
votes
1answer
375 views

ffmpeg does not accept variable name read from file [closed]

I am attempting to batch download a number of videos using ffmpeg. A list of the site addresses and save names is stored in a text file in the following format. "site",filename.mp4 The code that I ...
0
votes
1answer
909 views

What is this ffmpeg dependency error telling me and how do I fix it?

At some point, I had an error with dependencies and had to remove some forcefully with pacman -Rdd libvpx libx264. I have since reinstalled them, however I get this error upon each yaourt -Syua: ...
1
vote
1answer
865 views

Ffmpeg - youtube-dl

I have try to use ffmpeg to download youtube media in mp3. ffmpeg -i <url> -f mp3 output.mp3 It's working with other urls, but not with youtube-dl retrived youtube video urls. Ffmpeg returns ...
0
votes
1answer
261 views

How can FFmpeg record from FIFO without an “invalid data” error?

I have an internet calling infrastructure that can result in audio being played through speakers in the following way: aplay -r 48000 -c 1 -f S16_LE - < contact/call_out Here, call_out is a FIFO ...
2
votes
1answer
344 views

How do I tell aptitude that a package was installed manually?

I installed a package (don't remember which one but that shouldn't be too important) and needed "the real" ffmpeg so I purged the debian package for ffmpeg and installed the other version manually. ...