Tag Info

New answers tagged

0

For coding in mp3, in gentoo I have added the "mp3" USE flag, it's add the lame support. USE="mp3" emerge ffmpeg


1

The problem is that by default ffmpeg does not include libvpx. after executing brew reinstall ffmpeg --with-libvpx the problem is gone. This answer helped me: http://stackoverflow.com/a/13629348/1418097


0

I know this is probably not the answer you are looking for but why not use video editing software to do this? Video editing can take different frame rates, codecs, etc and combine them into the target format and it will be playable by ordinary software. A number of programs offer batch mode if you need to add the disclaimer to a bunch of videos. There ...


1

I'm fairly certain that the ffmpeg version you're using is quite outdated. Please download a static build for your system from the official homepage and use the path to the new ffmpeg instead of the old /usr/bin/ffmpeg. For example, if you downloaded your static build, you could put it to /usr/local/bin/ffmpeg, make it executable (chmod ugo+x ...


2

Based on the following line: Parse error, at least 3 arguments were expected, only 1 given in string 'ell.mp4 -b:a 192K -vn BIO06.1-Anatomy-of-the-Cell.mp3' It appears that the shell is thinking all of ell.mp4 -b:a 192K -vn BIO06.1-Anatomy-of-the-Cell.mp3 is a single token, and it's not recognizing the spaces. I'm willing to bet those aren't space ...


1

You need to put everything in single quotes, and escape every single quote with '\'' So, foo'bar test.mp4 would be specified as: file 'foo'\''bar test.mp4' You can imagine it as the string being split where the first pair of single quotes end, and then continued later: 'foo' \' 'bar test.mp4' This is also explained in the documentation: ...


1

ffmpeg treat GIFs as movies, not a single images. Always. Therefore we have to concat videostreams instead of batching the frames. Here is the solution: ffmpeg -f concat -i filelist.txt -c:v libx264 mymovie.mp4 filelist.txt accordingly to the ffmpeg manual should be the next format: # some comment file '/path/img000001.gif' file '/path/img000002.gif' ...


0

There is no format that can play on every device and browser. HTML5 is getting us closer, but there is still debate on formats and codecs. My friends at Zencoder have a new blog post blog post (HERE) that addresses this exact issue. EDIT: you asked for more specifics. Again, it depends on what platforms you wish to target. I will cover a couple here. This ...


2

The -crf option probably has not been mapped yet for this encoder. Until then use -x265-params private option for this encoder: ffmpeg -i input.mkv -codec:v libx265 -x265-params crf=28 -codec:a copy out.mkv This may change in the future, so always refer to the documentation first: ffmpeg -h encoder=libx265 Also see: FFmpeg: How to generate a .mp4 ...


0

stream selection Default stream selection behavior is to select one stream type per input. For example, as in your input, if it contains two audio streams, then only the stream with the most number of channels will be selected. You can tell ffmpeg to include all streams with the -map option: ffmpeg -i input.avi -metadata title="Moonshine" -metadata ...


1

I'm assuming you're on windows; why not use the "start" command with a lower than normal priority, eg /LOW. It will still use 100% of the CPU when it can, but only if nothing else wants it.


1

Before installation, run Try Ubuntu, Mint or whatever, and check which one suits your video requests. Because you can find out a lot about what suits you particular task at this stage. You know, there a lot of more or less different or similar Linux distributions and who knows which covers your requests better. So,if you are not a big fan of a deep digging ...


0

I had a similar problem and the -re option resolved it for me. This tells ffmpeg to act as a frame grabber would act.


1

From ffmpeg's docs: Using a glob pattern ffmpeg also supports bash-style globbing (* represents any number of any characters). This is useful if your images are sequential but not necessarily in a numerically sequential order as in the previous examples. ffmpeg -r 1 -pattern_type glob -i 'test_*.jpg' -c:v libx264 out.mp4 So, as long as your files are ...


1

The solution I am working on is to use AppleScript to automate the HDPVRCapture (costs money) GUI, then post-process the resulting file using ffmpeg. I have managed to press the "Record" button of HDPVRCapture using this AppleScript: tell application "System Events" tell process "HDPVRCapture" click button "Record" of window 1 end tell end ...


2

You can use one filtergraph to rule them all: ffmpeg -i input.avi -i logo.png -filter_complex \ "[0:v]scale=854:-2[scaled]; \ [scaled][1:v]overlay=5:5[out] \ -map "[out]" -map 0:a -c:v libx264 -c:a copy output.mkv [0:v] refers to the video stream(s) of the first input (input.avi in this example). [1:v] is the video from the second input (logo.png in ...


0

WhooHooo, I understood the problem! So this is the fix. In my case FFMPEG was hanging on one of the problematic streams and thus wasn’t going forward to start recordings of the rest of the streams in the list. Basically with FFMPEG you have to execute command for each stream in a separate thread. Basically setup main method in your jar to start separate ...


1

I suggest to do that way: Create black background with the same duration and resolution as output video should be Add alpha channel to each video Add fade to alpha effect to each video Use overlay on each video with black background So the command for adding crossfade to 2 video (5 sec) each should be: ffmpeg -i 1.mp4 -i/2.mp4 -f lavfi -i color=black ...


0

You could use dmMediaConverter with Split option. It is a free ffmpeg gui. http://dmsimpleapps.blogspot.com/2014/04/dmmediaconverter.html


0

Convert capture.sh into a batch file. On another note, why not do say capture.sh &; wine whatever.exe ?


0

Problem solved. I wasn't removing the audio, so presumably it was playing the, near empty, audio file for the full time of the video. ffmpeg -i input.mp4 -filter:v "setpts=0.5*PTS" -an output.mp4 -an removes the audio from the video.


0

Did you give google a try? Look here They suggest to use -async or -vsync depending on your requirement, or -map in combination with -itsoffset Using a recent ffmpeg with the following command should do the work: ffmpeg -y -f video4linux2 -s 320x240 -i /dev/video0 -itsoffset 2 -f alsa -i "plughw:CARD=U0x46d0x825,DEV=0" -ac 2 -strict experimental ...


1

The problem was in the color space of the tiff image. ffmpeg copies the color space from the mpeg file, which was YUV encoded. exif data of the tiff file showed it was 'YCbCr', which is YUV. The resulting tiff file could be viewed by some applications, but other applications (notably, photoshop) reported it broken. Not sure if that is a bug in ffmpeg. So I ...


0

The two videos must be exactly the same coding as far as - frame scale size, Aspect ratio, Frames per second and bitrate is concerned. Try using eRrightSofts Super(c) converter. It is a very extensive GUI for ffmpeg. It also has "MediaInfo" embedded in it, so you can check your movies to see if they are exactly the same. The authors do not claim ...


1

Well, Vorbis is not video. It's an audio codec, typically embedded in the Ogg container format. Maybe that's where the confusion comes from. You want to use Theora with libtheora. Also, you should specify both video and audio codecs, rather than having ffmpeg choose one. I typically add -shortest to tell ffmpeg to stop encoding whenever there are no more ...


1

you are only mapping the first 3 tracks. ffmpeg.exe -i ..\..\validate\20140225095504.mp4 -map 0:0 -map 0:1 -map 0:2 ... Normally it should work, but have you tried to map all 5 tracks? Also i've noticed that the metadata has changed in your output file. Original: handler_name : Video Stream Output: handler_name : VideoHandler The same for ...


0

Actually the filter can handle it directly. You need only to pass -2 instead of -1 to the filter: e.g. -vf scale="-2:720" I was surprised to find this out in a bug report from 3 years ago.


1

ffprobe -i some_video -show_entries format=duration -v quiet -of csv="p=0" will return the video duration in seconds.


0

i face that problem but i solve it by for Sony Bravia kdl-47r500a make sure to do Save as to the .SRT file and change the encoding to utf-8 then click save put the .SRT file in the same folder of the movie and rename it same as the movie name exactly


-1

If you just want to convert it, use a program called Format factory (link here: http://www.pcfreetime.com/) It can convert the file straight to mp4 for you, and you can set it to small size


0

Turns out it was a performance issue. Tried to record a full screen video (720p) playing on my screen, on an i7 CPU laptop, and I can't see the output video having this wobbly/laggy look. Then again, on my desktop computer, when I just play the video on browser, I don't get any lag too. So it becomes laggy during the recording process, and in the output ...


1

You can do this using MLT melt https://archive.org/download/IMB_SF_R35_C8/IMB_SF_R35_C8_512kb.mp4 in=400 \ -track https://archive.org/download/IMB_SF_R19_C9/IMB_SF_R19_C9_512kb.mp4 in=450 \ -filter chroma key=0x00ff0000 variance=0.45 \ -transition composite This plays a background video and a green-screen clip of a dog as a second track ...


3

Your ffmpeg version is outdated. You have two options: Download a recent static build from their download page Compile it yourself according to the Wiki instructions The new versions recognize b:v as an option. Also, you should update your command. This is the old one: ffmpeg -i input.mp4 -f mp4 -vcodec flv -r 25 -b:v 300000 \ -s 854x480 -aspect ...



Top 50 recent answers are included