Questions tagged [ffmpeg]

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

137 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
2answers
1k views

Convert video to exactly the same format as another video

Suppose I have two video files A and B. Now I want to convert A to the same format (i.e. same container, same audio and video codec), same bitrate, size etc. as B. Is there a way to do this ...
6
votes
3answers
8k views

How to splice sections of a video with avconv?

I have figured out so far that you can cut a section from a video with avconv with a command like this (cuts from 1:00-3:00): avconv -ss 00:01:00 -i "input.avi" -t 00:02:00 -c:v libx264 -crf 23 "...
4
votes
1answer
565 views

Compile ffmpeg with hwaccel

I'm trying to compile ffmpeg with hwaccel support, but no matter the options I pass to the configure script, the enable hwaccels list always comes empty. Running ./configure --help says that, to ...
4
votes
0answers
990 views

Create virtual microphone and output sound to it

My goal is testing Video Room Application, so I'm going to create multiple virtual machines with virtual webcams and microphones. Webcam is working fine with v4l2loopback, but microphone is not. I'm ...
4
votes
0answers
782 views

Don't wait for audio stream with ffmpeg/avconv using named pipes

I have two named pipes, audio_conv and video, for s16le and h264 streams, respectively. I want to convert them to webm format on fly. Data to these pipes proceeds from my application, that parses ...
4
votes
0answers
2k views

How can I prevent ffmpeg intermmittent faulure with `AVC: nal size` error?

I am trying to open the NASA HDTV video stream from ustream.tv directly in vlc. The problem that I have is that it only works sometimes. The command I am using is below: ffmpeg -i "rtmp://...
3
votes
0answers
189 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 ...
3
votes
0answers
145 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 \ ...
3
votes
0answers
527 views

ffmpeg changed safe option again?

So in a previous version of ffmpeg it introduced a -safe 0 or -safe 1 option. I discovered this as I had a bash script that used ffmpeg with absolute paths i.e. in /dev/shm/. For the last 6 months or ...
3
votes
0answers
1k views

How to download portion of video with youtube-dl command? (2)

This question has already been posted. However, I want to know if it is possible to only download a portion of a youtube video using a combination of youtube-dl and ffmpeg without downloading the ...
3
votes
0answers
306 views

Encoding a video from Unix Timestamps + ms

I have a sequence of images that were taken from a camera that have been saved in a naming convention that contains the unix timestamp as well as milliseconds. For instance, 1333351808430.jpg (I typed ...
3
votes
0answers
310 views

Libav: Find out the exact time that the first frame coming from an RTSP stream was dumped into a file

I am dumping an RSTP stream from a web camera into a file using avconv: avconv -f rtsp -rtsp_transport tcp -i rtsp://user@password/ 192.168.1.4/stream.cgi -t 100 -c:v libx264 -s 1024x768 -an /home/...
3
votes
0answers
3k views

Determining media format/encoding for DLNA system

How do you determine what parameters are needed by a DLNA renderer and server? I have a Samsung TV that is a DLNA renderer. I also have a Western Digital NAS running Debian and have Twonky and ...
3
votes
0answers
1k views

Generating a slideshow under linux

Under Windows, one is able to generate a nice slideshow (crossfading between images, applying the Ken Burns effect on each image) on Windows using (Windows) Movie Maker. When I create a slideshow ...
2
votes
0answers
146 views

Script for ffmpeg webcam audio video recording

I've bought the very popular Logitech C920 for creating YouTube videos with ffmpeg. My desire is to build a script for easy recording without bothering with the powerful but rather cryptic ffmpeg ...
2
votes
0answers
134 views

Why is VLC Media Player playing videos like this?

Please see the short GIF recorded screencast of the problem in action. This is how all videos open and play, I cannot see a darn thing, just these big colored bars where the color is taken from the ...
2
votes
0answers
652 views

How do I calculate noise level of an audio file with ffmpeg?

Related questions on this site that unfortunately don't match my use case: Compare two audio files How to use sox or ffmpeg to detect silence intervals in a long audio file and replace them by zeros (...
2
votes
1answer
2k views

How to encrypt the ffmpeg output when generating video chunks?

I can openssl encrypt a ffmpeg video stream with ffmpeg -i video1.mp4-video1.mp4.mp4 -f ogg - | openssl enc -des3 > outptu.ogg.des3 Which strategy would you use to encrypt the ffmpeg output ...
2
votes
0answers
897 views

arm-linux-androideabi-gcc is unable to create an executable file on Windows 10

I am trying to configure ffmpeg for android on windows 10 through bash Ubuntu terminal. I am follow this tutorial But getting error. Error is C:/Users/BIP042.BIPADBBSR/AppData/Local/Android/Sdk/ndk-...
2
votes
0answers
913 views

Playback and simultaneous recording through external USB sound card

I've an external USB sound card (in my case it's a TerraTec Aureon 7.1 USB). I've looped the earphone-out to the line-in using a 3.5mm jack cable. I'm interested in starting the playback of a MP2 ...
2
votes
0answers
153 views

How to define ffmpeg's path during compilation of another software?

I'm trying to compile an opensource software that needs bleeding-edge ffmpeg, so I successfully compiled ffmpeg, but I don't want to run make install as it's not easy to be removed after my tests. ...
2
votes
0answers
1k views

Convert images and animated gifs to video

I use the following FFMpeg command to convert images to video. for file in %N; do ffmpeg -framerate 15 -pattern_type glob -i '*.jpg' -vf "scale=min(1920/iw\,1920/ih)*iw:min(1920/iw\,1920/ih)*ih,pad=...
2
votes
0answers
3k views

How to record v4l webcam with ffmpeg? Cannot find a proper format for codec 'none'

Goal is to capture video from my old usb webcam (device 0733:0430). Trying to save video gives this error. (I've tried both ffmpeg and avconv.) Command ffmpeg -f v4l2 -i /dev/video2 -s 160x120 tmp....
2
votes
0answers
466 views

how to install avxsynth on centos?

i am using centos 6 x86_64 and i am trying to install avxsynth for centos, but it always failed from link page i found that i have to install automake libtool MPlayer sudo apt-get install ...
2
votes
0answers
284 views

ffmpeg hardcode subs on flv

Giving up on trying to use videosub.js, I am now trying to hard code subtitles to the video file using ffmpeg. Have run into trouble with configuration files not found, when trying to hard code the ...
2
votes
0answers
221 views

Is there any remote GUI for ffmpeg?

I'm looking for some software with both Linux and Windows versions that can remotely run FFMPEG commands on my Linux server. Just like what transmisson-remote-gui does for Transmission. In summary, I ...
2
votes
0answers
2k views

Rotating a video (ubuntu 12.04)

I have a video, shot on my android phone, which I want to rotate 90 degrees clockwise for computer viewing. Here's what I expect should work: ffmpeg -i infile.mp4 -vf "transpose=1" -an -vcodec mpeg4 ...
2
votes
0answers
841 views

avconv/ffmpeg output through /dev/ttyAMA0

I tried to pipe streaming video from video4linux2 webcam connected to a Raspberry Pi through /dev/ttyAMA0 to a computer using an Arduino as a intermediary. First of all, is it possible? Because I was ...
2
votes
1answer
2k views

No way to record a live stream to WebM using ffmpeg?

I'm streaming from an mp4 source and so far I've managed to save clips as ogg (video: libtheora, audio: flac), but I'd like to save them in the WebM format. Unfortunately, WebM demands libvorbis for ...
2
votes
1answer
2k views

Ffmpeg problems on centOS 5.8 64 bit

I did install ffmpeg with winff, unsuccessfully when I try converting avi to x264, it says I don't have it. When I try to convert mp4 to Xvid I get unknown encoder 'libxvid'. It's like nothing really ...
1
vote
0answers
17 views

Mplayer only flushing every 256k

I am recording audio in a script in order to play it back later with a time shift. The script regularly checks if the stream is still active. Sometimes live radio streams get interrupted. In that ...
1
vote
0answers
17 views

How to increase the duration of the transition effect between multiple video cuts in this ffmpeg `-filter_complex` command

As instructed in Gyan's solution to this question, ffmpeg can be used to interleave two audio/video inputs with a lapse dissolve transition. For example, this command will divide each input into cut ...
1
vote
0answers
23 views

ffmpeg vaapi encode causes black bar on the right side

I'm trying to transcode an 854x480 h264 mp4 video to an h265 mp4 video using vaapi. The video does come out nice looking, And encodes very quickly. But there is a black bar on the right side of the ...
1
vote
0answers
139 views

How to significantly lower a video file size with ffmpeg without quality loss?

I see there are videos on youtube with 1080p resolution that are more than 10 minutes long and only 50-60 mb in size. I have a video only 3 minutes long and only 720p resolution but unable to bring ...
1
vote
0answers
17 views

How to record the lock screen and other users sessions?

After I log in to my Linux session I start recording my screen with the command recordmydesktop --fps 2 --no-sound --on-the-fly-encoding --compress-cache --no-frame --v_quality 10 But when I to go ...
1
vote
0answers
19 views

Which format my webcam produces

How can i find out which format (preffix) my USB webcam produces ? I want recording webcam to HDD with ffmpeg and i need save the capture record without reencoding because of CPU usage (i using ...
1
vote
1answer
59 views

How can I use checkinstall to replace multiple packages?

I'm building my own ffmpeg package using checkinstall, with all of the various ffmpeg libraries included. In the Ubuntu package repos these ffmpeg libraries are broken up into many separate packages. ...
1
vote
0answers
51 views

How to modify blended video durations with a -filter_complex command argument in ffmpeg

Building off the solution provided in this thread, I'd like to know how to make simple modifications to a complex command argument which uses ffmpeg to interweave two videos by dissolving them into ...
1
vote
0answers
193 views

Specify alsa device name or aloop for system ouput audio to be used as input in ffmpeg command

I am using Debian 9 with its version of ffmpeg. This is my ffmpeg command I use to screen record: ffmpeg -thread_queue_size 4096 -f alsa -i plughw:CARD=Device,DEV=0 -thread_queue_size 4096 \ -f alsa -...
1
vote
0answers
15 views

Suitable parameters for hours of screen capture

I need suitable parameters for very, very long screen captures using ffmpeg. Quality: Only occasionally needed. If text is readable, that's enough usually. I can use -qscale:v *[0-32]*, of which ...
1
vote
0answers
99 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 ...
1
vote
1answer
105 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 ...
1
vote
0answers
39 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 ...
1
vote
0answers
199 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 ...
1
vote
0answers
177 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 ...
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 ...
1
vote
1answer
944 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
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 ...
1
vote
2answers
163 views

Invoking ffmpeg iteratively

I call ffmpeg like this from Mac's terminal: $ find . -type f -name *.webm | while IFS= read -r f; do echo "$f"; ffmpeg -i "$f" "${f%.webm}".mp4 2> ~/Desktop/err; done Only the first file ...
1
vote
1answer
350 views

sox equivalent of silence removal in ffmpeg

If I have an audio file in .wav format, I can run sox on it as follows : sox in.wav out6.wav silence -l 1 0.1 1% -1 2.0 1% and this command works really really well for removing silence. Is there ...