Linked Questions

247 votes
6 answers
472k views

Cut part from video file from start position to end position with FFmpeg [duplicate]

I have a video file of 30 minutes, but I want to extract a video from 00:09:23 to 00:25:33. I can define the startposition with -ss, but I couldn't find one for the end position. Any help please?
x74x61's user avatar
  • 2,871
69 votes
6 answers
144k views

FFMPEG convert flv to mp4 without losing quality [duplicate]

Currently I'm converting .flv flash files to .webm and .mp4 files to be used with an HTML5 video player. _ I use this ffmpeg command for WEBM: ffmpeg -i filename.flv -vcodec libvpx -acodec libvorbis ...
Chad Whitaker's user avatar
57 votes
2 answers
205k views

Handbrake settings to convert MKV to MP4 while retaining the original quality

I have a ton of MKV files I need to convert to MP4 and my chosen software is Handbrake. I'm stuck on which settings would be best for the conversion. I want to retain full quality. Do I just convert ...
orange's user avatar
  • 900
34 votes
1 answer
66k views

Converting FLV to MP4 Using FFMPEG and Preserving the Quality

Im trying to use ffmpeg to convert my flv files to mp4 to play them on iOS devices but the converted video has a much worse quality than the original one. Here is the command i use: ffmpeg -i input....
user avatar
22 votes
2 answers
81k views

What's the difference between FFmpeg's "-vcodec copy" and "-sameq"?

What is the difference between using -vcodec copy and -sameq with FFmpeg? Do they do the same thing?
tony_sid's user avatar
  • 14.5k
20 votes
3 answers
64k views

How can I re-encode H.264 video with minimal quality loss?

I have a lot of MPEG-TS files (.TS container but H.264 video) and playback is fine except that when you skip forward/backward or fast forward it's very sluggish and gets pixelated, etc. I've been ...
SofaKng's user avatar
  • 1,235
12 votes
2 answers
16k views

What parameters should I be looking at to reduce the size of a .MOV file?

My Canon 60D creates .MOV files when recording video and I've found out that the .MOV container has an H264 video stream and a PCM audio stream. I've used ffmpeg and GSpot to look at some of my ...
Ward - Trying Codidact's user avatar
5 votes
3 answers
16k views

Conversion from WebM to MP4 in Ubuntu is slow and bad quality

I have used the command ffmpeg -i input.webm -q:v 10 -c:a copy out.mp4 I also tried using avconv instead of ffmpeg. The conversion is successful but the quality is bad. Also it takes a lot of time. ...
dfordevy's user avatar
  • 147
3 votes
2 answers
14k views

FFMPEG add keyframes without reencoding

How can I add keyframes for FLV files without reencoding? I try to use this command, but do nothing: ffmpeg -i file.flv -vcodec copy -acodec copy -g 0 -y tmp.flv && yamdi -i tmp.flv -o out....
Zoltán's user avatar
  • 33
5 votes
2 answers
23k views

FFMPEG: Stream a file with original playing rate

I want to stream a file to the network using ffmpeg in it's original frame rate; so I can play the generated UDP stream using some receiver client such as VLC. I used this command: ffmpeg -i "...
sajad's user avatar
  • 175
6 votes
2 answers
12k views

Convert old videos to have smaller sizes

I have some videos from a few years ago,with various formats, such as avi, mpg, wmv, rm, rmvb, .... Their sizes are huge(more than 500 MB, and sometimes > 1GB). Given there may likely be some advance ...
Tim's user avatar
  • 17.3k
6 votes
2 answers
6k views

Cut (smart edit) .mts (AVCHD Progressive) files un Ubuntu Lucid

I have a bunch of .mts files containing AVCHD Progressive video recorded by a Panasonic camera, and I need software on Ubuntu Lucid with which I can remove the boring parts, and concatenate the ...
pts's user avatar
  • 7,390
1 vote
2 answers
4k views

ffmpeg with 720p video and y4m file

I was simulating a lot of videos in cif format, also all videos came with yuv format file. I used the expression below and it works well: ffmpeg -s cif -r 30 -i video.yuv -vcodec mpeg4 -g 12 -bf 2 -...
user avatar
4 votes
1 answer
2k views

Why does the quality of this video suck when converted with ffmpeg as opposed to mencoder?

Here's the command line that I'm using for both and the output. Any ideas? The bitrate of the two videos is comparable: both around 1500Kbps. ffmpeg command: ffmpeg -y -i aud.mp4 -acodec copy -i ...
Edward Dale's user avatar
  • 1,279
3 votes
1 answer
2k views

FFmpeg command converting M4V to FLV; video streaming is very slow

I am using this command to convert videos from M4V and AVI to FLV: ffmpeg -i 'video_1355440448.m4v' -s '640x360' -ab '64k' -ar '44100' -q:v '1' -f 'flv' -y video_1355440448.flv I have two servers: ...
Pradeep Singh's user avatar

15 30 50 per page