Tag Info

New answers tagged

0

After several hours of attempting various solutions with atrim and adelay, which none worked correctly for me, I ended up taking this route. Worked like a charm. Create [s1]. N is the number of seconds (to match video offset (itsoffset)) aevalsrc=0:d=N[s1] Concat [s1] and overlayvideo’s audio (where [s1] is placed before [1:a]): ...


1

What went wrong You're trying to map input streams that don't exist. Here are your input streams: Stream #0:0 Video: prores Stream #0:1 Audio: pcm_s24le Stream #0:2 Data: tmcd You're telling ffmpeg to map 0:0-0:11, but only 0:0, 0:1, and 0:2 exist. Example solution You can use the pan filter to turn a single multichannel stream into multiple single ...


3

I am unaware of any browser that natively supports MPEG-4 Part 2 video. I'm guessing Safari uses QuickTime to play your video. Use H.264 video instead. black video If you want a "blank" video that should be playable with any modern, sane browser you can use the color filter: ffmpeg -f lavfi -i color=d=60 -c:v libx264 -profile:v main \ -movflags ...


0

figured out the issue. if you type in dir in the ff prompt window, check what FOLDER it is referencing. For me it was actually referencing the bin folder, not the folder the ffmpeg batch file is in. I put the video file in the "bin" folder and it found it with no issues.


0

You can use a different print format (or "writer"). The default, without the keys (nk=1) and wrapper (nw=1), appears to not add the extra space. $ ffprobe -v error -of default=nk=1:nw=1 -show_entries stream=height input.mp4 360 FFmpeg Wiki: FFprobe Tips FFprobe Documentation: Writers


0

After digging thru the stream with a few analysis tools, from what I can tell: With libx264, unless you instruct it to use CBR, you will get VBR by default.


-1

Using, FFMPEG.exe ( Full Details at: http://ubuntuforums.org/showthread.php?t=1614765 ) ffmpeg -i filenameee.m4a -acodec libmp3lame -ab 128k output.mp3


0

Have the fix. Needed to use overlay=eof_action=pass instead of overlay=0:0 Updated command, which works: ffmpeg -y -i myvideo.mp4 -r 30 -itsoffset 00:00:00.000 -i myoverlay.mov -filter_complex "[1:v]scale=640:360[ovrl], [0:v][ovrl]overlay=eof_action=pass[outv];[0:a][1:a]amix[outa]" -map [outv] -map [outa] -c:v libx264 -vcodec mpeg4 -r 30 -strict ...


0

avidemux can perform cutting for any kind of file. You'll obviously only be able to cut H.264 streams on keyframes, but that's the best you'll be able to get.


1

It is possible that your software is re-encoding the file. If you just want to copy a 5 second chunk of the movie, you can use this command: ffmpeg -i YourFile.mp4 -ss 00:10:25 -t 00:00:05 -acodec copy -vcodec copy Output.mp4 Where -i is the name of your file. -ss is the start position in Hours:Minutes:Seconds -t is how long a clip you want - again in ...


0

You can use the package equivsto create a pseudo-package, so that dpkg knows about your installed software. See https://www.debian.org/doc/manuals/apt-howto/ch-helpers.html


1

Here's my take on it. I'll take the iPhone 4 or newer (including all iPads) as the target : H.264 Main profile, level 3.1 ffmpeg -i input.mp4 -vcodec libx264 -profile:v main -level 3.1 -preset veryslow -crf 23 -x264-params ref=4 -acodec copy -movflags +faststart output.mp4 The values you are free to change : -crf 23 : The constant quality setting. ...


0

You will find all you need to know about ffmpeg and decoding on iOS devices on the ffmpeg man page: https://trac.ffmpeg.org/wiki/Encode/H.264 Make sure you are running a recent version of ffmpeg with the examples outlined in the link.


1

Here's a method using the concat filter: ffmpeg -i input.wmv -loop 1 -t 5 -framerate 30 -i image.jpg -t 5 -f lavfi -i anullsrc -filter_complex \ "[1:v]scale=640:-1,pad=iw:ih*(4/3):0:(oh-ih)/2,setsar=1/1[title]; \ [title][2:a][0:v][0:a]concat=n=2:v=1:a=1[v][a]" \ -map "[v]" -map "[a]" output.wmv This will letterbox the title instead of the main video. ...


0

Ok what I've eventually done is removing all the audio tracks in Subler, adding that "almost empty" container to my application and used MP4Box' add command to fill in the audio again. No ffmpeg needed here


0

Here's the full answer that I made according to my needs. Works only in bash or zsh, because I'm too lazy to get it written in perl. Code #!/bin/zsh mkv_sub_getshort() { sub=$1 sub="${sub%.${sub:e}}" sub="$(sed 's/^.*[[:punct:]]//g' <<< "$sub")" echo $sub } mkv_maker() { local c=0 for i in *srt; do ...


1

This worked for me on Windows 7: ffmpeg -f gdigrab -i desktop output.flv See FFmpeg gdigrab documentation for more info.


4

When re-encoding a file, you shouldn't just specify a bitrate. My guess is that ffmpeg tries to use the mpeg4 codec by default, and it refuses to use less than 2mbps because it simply can't go below with such a high resolution. I suggest you re-encode with the H.264 codec which you can do like this : ffmpeg -i ../../tos.avi -c:v libx264 -b:v 500k ...


1

Doing a lossless screenshot at the 1mn mark : ffmpeg -i input.1080i.ts -vf yadif -ss 01:00 -vframes 1 screenshot.png (I'm sorry for using ffmpeg, but the avconv command should be very close - if not the same) However, you must first make sure that deinterlacing is the way to go. Just because the source is 1080i doesn't mean that it isn't progressive ...


0

The copy protection on the WTV files is tied in with your Windows installation. If you try to copy them to another computer they will not work. The conversion really needs to be done on the Windows PC. You should refer to the question How do I convert WTV (and DVR-MS) files into a smaller standard format?. There are answers there that refer to using only ...


1

Using ffmpeg: ffmpeg -i video.mp4 -i subtitle1.srt -i subtitle2.srt -map 0 -map 1 -map 2 \ -c copy -metadata:s:s:0 language=eng -metadata:s:s:1 language=ipk output.mkv This will stream copy (-c copy) all streams, so re-encoding is avoided. The default stream selection will only choose one stream per stream type, so -map is used to manually override that. ...


0

Use like this for AVI files -map 0 -acodec copy -metadata:s:a:0 title="English" -metadata:s:a:1 title="Hindi" The title keyword does the trick


0

I couldn't find a way to do this with the filters amgerge or pan, but amix does work. I have made this new part of the command bold below. C:\ffmpeg.exe -i C:\Wildlife2.mp4 -i C:\Wildlife3.mp4 -i C:\Wildlife4.mp4 -qscale:v 5 -filter_complex "[0:v]setpts=PTS-STARTPTS,pad=iw:1.5*ih[a]; [1:v]setpts=PTS-STARTPTS,scale=-1:ih/2[b]; ...


2

Using -ss after -i in ffmpeg takes ages! This is because you are seeking to a point in the output, not the input. Per the ffmpeg manual on seeking: Input seeking The -ss parameter needs to be specified somewhere before -i: ...The input will be parsed using keyframes, which is very fast... as compared with: Output Seeking The -ss ...


1

Thanks to Andreas Cadhalpun ffmpeg now has new filter: mpeg4_unpack_bframes (see ref). Usage is as simple as: ffmpeg -i INPUT.avi -codec copy -bsf:v mpeg4_unpack_bframes OUTPUT.mpg


0

FFmpeg doesn't have a stable built-in AAC encoder, so this command will just copy the audio stream in the same format to the output file. If VLC still doesn't like the audio codec, you can change the copy in -c:a copy to some other codec listed here. ffmpeg -i <input file> -c:a copy -c:v libx264 <output file> FFmpeg should automatically detect ...


0

Take a look at Handbrake. It's easy to use and has a high chance of supporting the file you want to convert.


1

Ignoring standards Oh, that awful, misleading thread. The ATSC A/52A (AC-3) standard (refer to sections 6.1.12 & 7.8, and also this post by pandy) provides detailed info about how proper downmixing should occur for AC-3. Note that the Low Frequency Effects (LFE) channel may be omitted when downmixing, and I believe that's what ffmpeg does. Changing ...


0

RTMP does not allow multicast natively and it will be a very painful project to implement multicasting by yourself on client side. But there are two solutions : You could try RTMFP multicast serverless solution. Here is a good example explained by Tom Krcha : http://tomkrcha.com/?p=1803 (just add a NetStream and attach the camera to it), Otherwise you ...


3

The problem is that you have a "special" hyphen followed by a space before the "g" in the middle of your command line, it is known as an "en dash" and it is confusing your parser. To compare: Hyphen: - Em dash: — En dash: – Your script should be (to the best of my knowledge): cd c:\ffmpeg\bin set inputFile="C:\park.mp4" set outputFile="C:\content\park" ...


1

First, check whether libvpx was actually enabled. My guess is no: $ grep LIBVPX config.h #define CONFIG_LIBVPX 1 #define CONFIG_LIBVPX_VP8_DECODER 1 #define CONFIG_LIBVPX_VP9_DECODER 1 #define CONFIG_LIBVPX_VP8_ENCODER 1 #define CONFIG_LIBVPX_VP9_ENCODER 1 Assuming this says 0 (meaning: disabled), figure out why by searching for "-lvpx" in config.log: ...


1

First thing I see: you have a space between the dash and the g for specifying gop length. I think FFmpeg believes you are trying to save an output with the name "-". Try deleting the space.


0

The latest version of avconv has support for 32 bit samples.


2

I believe you should be able to accomplish this using the select filter. However, when using a video filter, you will no longer be able to stream copy - instead, you will have to transcode the file by choosing a codec with the c:v flag. For example, to create a cut starting at the 90th frame, and producing an output that is 1000 frames long, and ...


0

There is no way to do exactly what you are asking. You can use -frames to process a desired number of frames but using a frame number as the starting position isn't possible.


-5

Dedicated video conversion software??? What is that? Is that something with GUI & often people pay for??? I would say that CLI is best for geeks while in GUI is for people who casually conver videos.In GUI based software you select some option & that software generate command & parameter to run free tools like that ffmpeg & x264 in ...


1

You can cut videos according to frame with handbrake (although it converts video). However it can't cut them automatically taking frame data from a CSV file. You need to select the start frame and end frame manually. Maybe x264.exe with command line can help.


8

There is no such thing as "perfect HD 720p quality video". 720p is by definition any progressive video with a height of 720 pixels. There are a million factors that affect the quality of any compressed video, far too many to detail here. In short, no, you will not get the best possible quality using the command line above. You have not considered any of the ...


2

I have used with success the following (newest FFMPEG Version at time of writing): -nostats -loglevel 0 Then it is absolutely quiet in my usage scenario.


1

Simply, you don't have an audio stream in your image videos created. There you have only a video stream. So when you try to get an audio stream from a source where an audio stream is not available you get this error. In yous first command you just create a video out of set of images and there is no audio involved. So in the output of that command will have ...


1

Wrong concat You're using the wrong concat (protocol, filter, and demuxer). You should use the filter or the demuxer, but in your case I recommend the filter since you're filtering and re-encoding anyway. As mentioned in the wiki link you provided: While the demuxer works at the stream level, the concat protocol works at the file level. Only certain ...


0

A video can only start decoding on an I-Frame, so the earliest you can start watching your video from the current position is the I-Frame you want. The application seems a bit hazy but if you're trying to get a human to do some sort of QA over a single intra-frame period then this is how I would go about it.


0

The scale filter is not yet able to use another arbitrary video as a reference for the scale input. You will have to acquire the "main input" width and/or height, then use that value in your scale filter. Since you did not mention your OS I can only give you a generic, unscripted solution. Example 1. Use ffprobe to get width and height of the main ...


0

You need to add alpha=1 to the fade filters.



Top 50 recent answers are included