21 votes

How can I use ffmpeg to split MPEG video into 10 minute chunks?

Just use what is built into ffmpeg to do exactly this. ffmpeg -i invid.mp4 -threads 3 \ -vcodec copy -f segment -segment_time 10:00 \ -reset_timestamps 1 \ cam_out_h264_%02d.mp4 ...
John Allard's user avatar
  • 1,368
20 votes

How can I use ffmpeg to split MPEG video into 10 minute chunks?

An Alternate more readable way would be ffmpeg -i input.mp4 -ss 00:00:00 -to 00:10:00 -c copy output1.mp4 ffmpeg -i input.mp4 -ss 00:10:00 -to 00:20:00 -c copy output2.mp4 /** * -i input file * -...
Niket Pathak's user avatar
14 votes
Accepted

FFMPEG - Interpolate frames or add motion blur

You can try ffmpeg -i source.mp4 -filter:v tblend -r 120 result.mp4 or this from https://superuser.com/users/114058/mulvya ffmpeg -i source.mp4 -filter:v minterpolate -r 120 result.mp4 There are ...
Offenso's user avatar
  • 156
13 votes
Accepted

How can I stream my desktop/screen to /dev/video1 as a (fake) "webcam" on Linux?

Solved. Steps to solve: Unload previous v4l2loopback sudo modprobe -r v4l2loopback git clone https://github.com/umlaeute/v4l2loopback/ make && sudo make install (if you're using secure boot, ...
dǝɥɔS ʇoıןןƎ's user avatar
13 votes

How can I use ffmpeg to split MPEG video into 10 minute chunks?

If you want to create really same Chunks must force ffmpeg to create i-frame on the every chunks' first frame so you can use this command for create 0.5 second chunk. ffmpeg -hide_banner -err_detect ...
alireza akbaribayat's user avatar
10 votes
Accepted

How can I remove the audio track of a media that I import into a Pitivi project?

From https://answers.launchpad.net/ubuntu/+source/pitivi/+question/132343: Simple! Select your clip, click the Ungroup button in the timeline toolbar, select the video (not the audio), and delete ...
Patrick Ziegler's user avatar
6 votes

FFMPEG - Interpolate frames or add motion blur

You can use Butterflow as it uses ffmpeg https://github.com/dthpham/butterflow It's a command-line tool that can: Increase a video's frame rate by rendering new frames based on motion (pixel-...
Mariano Argañaraz's user avatar
6 votes
Accepted

trim and fade in/out video and audio with avconv (or different tool)

I finally found the time to try the answer suggested by @Mario G., but it seemed extremely cumbersome. I need to do this many dozens of times. I read the documentation of ffmpeg and found it much more ...
Philippos's user avatar
  • 13.5k
4 votes
Accepted

How to stream a local video to webcam using ffmpeg?

Based on this AU Q&A titled: Is there any way ffmpeg send video to /dev/video0 on Ubuntu? you can do the following: $ ffmpeg -re -i trial_video.mp4 -map 0:v -f v4l2 /dev/video1
slm's user avatar
  • 370k
4 votes
Accepted

ffmpeg: extract audio only from a media file using the best presets (2.0)

No, there is no better way. When you copy the audio stream with -c:a copy, you are not doing any re-encoding, so you are getting the exact same quality in the source. The only way to improve the ...
Munzir Taha's user avatar
  • 1,490
3 votes
Accepted

What does (($count+1)) do in this script?

It increments the value of the variable count by one. The line reads count=$(($count+1)) This is an assignment to the variable count. The value that is assigned is an arithmetic expansion, $(( ... ...
Kusalananda's user avatar
  • 334k
2 votes
Accepted

Video editor w/ stabilization?

As said here, you can use FFmpeg with vid.stab. If your video is named input.mp4 execute those 2 steps: ffmpeg -i input.mp4 -vf vidstabdetect=shakiness=10:accuracy=15:result="mytransforms.trf" -f ...
Anthony O.'s user avatar
2 votes

FFMPEG - Interpolate frames or add motion blur

ffmpeg -i input.mp4 -filter:v "minterpolate=mi_mode=2" output.mp4 is for simple dynamic fast frame interpolation using a little bit of motion blur and calculations.
Official Diamond Clan's user avatar
2 votes

simplest non-raid way of pooling nvme ssd drives on a single node - glusterfs?

GlusterFS seems like a pretty bad choice; you need none of the features it brings (that's why nobody uses it on single nodes, it makes no sense), and you get all of the performance and complexity ...
Marcus Müller's user avatar
2 votes
Accepted

Which video editor for Linux has the video speed control effect?

You can change the speed of parts of a video with Kdenlive. However you can only set a specific speed for a specific part so if you want to have it slowly increase or decrease the speed you need to ...
mYnDstrEAm's user avatar
  • 4,248
1 vote
Accepted

Using ffmpeg to Compressed a Two Frame Video

Your question is answered in the ffmpeg examples. You can use something like this: ffmpeg -loop 1 -framerate 1 -i banner.png -i audio.wav -map 0 -map 1 -c:v libx264 -crf 16 -c:a aac -b:a 92k -...
Hermann's user avatar
  • 6,158
1 vote

correctly splitting an avi file

Many video codecs encode video frames in two or three different ways: I-frames, P-frames, and B-frames. In short, only I-frames hold enough data to make a video starting point. With -vcodec copy, the ...
L. Levrel's user avatar
  • 1,503
1 vote

ffmpeg output.mp4 with size 0

When you see a problem with software you try to launch with php, take your command and launch it directly in a console/terminal and don't forget to replace all variables by the good information. Now ...
thesweetiger's user avatar
1 vote

trim and fade in/out video and audio with avconv (or different tool)

Trim: ffmpeg -i input.mts -ss 00:00:20.0 -c copy -t 00:00:30.0 output.mkv Seek 20 seconds -(i)n input.mkv (and discard, by default) let it play for 30 seconds and discard everything else from there. ...
Mario G.'s user avatar
  • 109
1 vote

Hardware accelerated h.264 transcoding on i.MX6

In case no ready-to-use tool turns up: Googling finds an open-source library called libimxvpuapi to access the i.MX6 VPU, including an example program for encoding (where the source frames are ...
dirkt's user avatar
  • 32.4k
1 vote
Accepted

Incorrect scene change detection with avconv

First of all, -vf needs to be specified after the input in order to affect it, and it seems to be the only reason avconv worked for the second command: it must have discarded your filter without even ...
undercat's user avatar
  • 1,857
1 vote
Accepted

FFMPEG glue MPEG TS

What parameters should be passed to make result movie smooth with the same quality ? You probably need to regenerate the timestamps. Each clip has a separate timestamp stream, so when you concatenate ...
Warren Young's user avatar
  • 72.1k
1 vote

FFMPEG - Interpolate frames or add motion blur

I know that my question asked about converting video to a higher framerate with interpolated frames, so this answer can never be the "true" answer, but I have since found the Smooth Video Project (SVP)...
Programster's user avatar
  • 2,257
1 vote

FFMPEG - Interpolate frames or add motion blur

you can try with Slowmovideo. look the demo: https://www.youtube.com/watch?v=YAVRnEg0Vps
esteban's user avatar
  • 11
1 vote

How can I use ffmpeg to split MPEG video into 10 minute chunks?

ffmpeg -i input.mp4 -force_key_frames expr:gte(t,n_forced*600) -f segment -segment_time 600 -reset_timestamps 1 -map 0 -segment_format_options movflags=+faststart output_%03d.mp4 To split the video ...
Yashik's user avatar
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible