105

Here is the one line solution: ffmpeg -i input.mp4 -c copy -map 0 -segment_time 00:20:00 -f segment output%03d.mp4 Please note that this does not give you accurate splits, but should fit your needs. It will instead cut at the first frame after the time specified after segment_time, in the code above it would be after the 20 minute mark. If you find that ...


11

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, you'll need to sign it first https://ubuntu.com/blog/how-to-sign-things-for-secure-boot) sudo depmod -a Load the videodev drivers sudo modprobe videodev sudo ...


10

I found the answer. It turns out I was having problems because I didn't have the proper FFmpeg installed, but a fork of ffmpeg. This code works for me: ffmpeg -i fff.avi -acodec copy -f segment -segment_time 10 -vcodec copy -reset_timestamps 1 -map 0 fff%d.avi fff.avi is the name of the source clip. Change -segment_time 10 to the general duration you want ...


9

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 filter for motion blur


9

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 it (or move it). Just select the audio instead of the video. Tested in Pitivi 0.96


8

There is a pretty extensive number of applications which you could use to do this. Avidemux Avidemux is a free video editor designed for simple cutting, filtering and encoding tasks. It supports many file types, including AVI, DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Openshot Video Editing program OpenShots Features include: * ...


8

Identify stream numbers: $ ffmpeg -i in.mp4 ... Stream #0:0: Video: ... Stream #0:1: Audio: ... Stream #0:2: Audio: ... Use -map _file_:_stream_ to select which streams to process and output $ ffmpeg -i in.mp4 -map 0:0 -map 0:2 -vcodec copy -acodec copy out.mp4 see: https://ffmpeg.org/ffmpeg.html#Advanced-options


8

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 * -ss start time in seconds or in hh:mm:ss * -to end time in seconds or in hh:mm:ss * -c codec to use */ Here's the source and list of Commonly used FFmpeg ...


7

Faced the same problem earlier and put together a simple Python script to do just that (using FFMpeg). Available here: https://github.com/c0decracker/video-splitter, and pasted below: #!/usr/bin/env python import subprocess import re import math from optparse import OptionParser length_regexp = 'Duration: (\d{2}):(\d{2}):(\d{2})\.\d+,' re_length = re....


7

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 ignore_err -i input.mp4 -r 24 -codec:v libx264 -vsync 1 -codec:a aac -ac 2 -ar 48k -f segment -preset fast -segment_format mpegts -segment_time 0.5 -...


6

You can use PiTiVi. PiTiVi will let you to flexibly adjust the volume of parallel audio tracks (among many other typical tasks: splice, rejoin, add a new soundtrack, fade the soundtrack in and out, fade the image in and out, etc). On top of doing what you need (unless I understood it wrong) it is quite easy to use and comes with most linux distros. ...


6

If you're looking for opensource professional level software unfortunately currently there is nothing like that. We're all waiting for lightworks gnu/linux port. It'll be opensource. They announced about public beta 3 months ago, but still nothing was published. Hope it'll be available soon. However, there are some a little bit amateur level software: ...


6

There are two kinds of media files streamable non-streamable The main difference is how the two file-formats embed meta-information. with non-streamable formats, the meta-informationc ("header") is stored at a specific position in the file, usually at the beginning, sometimes at the end. You cannot simply concatenate such files, as the meta-information ...


6

You probably want to use -acodec copy to copy the original audio, instead of -an: # Adjust vcodec/crf as desired ffmpeg -i infile.mp4 -vf "transpose=1" -acodec copy -vcodec h264 -crf 23 outfile.mp4


6

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-warping + blending). Make smooth motion videos (simple blending between frames). Leverage new frames/increase in frame rates to make fluid slow motion ...


5

Here is a solution using yad, bash only (no php), with one dialog: #!/bin/bash eval $(yad --width=400 --form --field=input:FL --field=start --field=end --field=output:SFL "" "00:00:00" "00:00:00" "" | awk -F'|' '{printf "INPUT=\"%s\"\nSTART=%s\nEND=%s\nOUTPUT=\"%s\"\n", $1, $2, $3, $4}') [[ -z $INPUT || -z $START || -z $END || -z $OUTPUT ]] && ...


4

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 powerful than avconv, including fading for audio and video, so the solution is ffmpeg -i input.mts -map 0:0 -map 0:3 -ss 0:0:07 -to 0:59:57.5 -vf 'fade=t=in:st=...


4

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


4

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 quality further beyond what the source provides is by using sound editing software to remove noise or use other features. You didn't mention why you re-encoded the ...


3

Not very quicktime-like, but this is what I do: You can use avconv (Or ffmpeg, with a slightly different syntax than the one below), first open the file in any player, take the time at the start point, then the time at the end point, and then in a terminal: avconv -ss 0:01:00 -i source.mp4 -codec:a copy -codec:v copy -t 00:02:00 a.mp4 For ffmpeg, it has ...


3

I tried doing the task in Blender and PiTiVi. This is from 2013, so the software has likely changed since then. Blender Score: 3/5 I am using this well written tutorial on the Video Sequence Editor in Blender as a reference. I actually toyed with 3D modeling in Blender before. I never realized it can be used as a video editor. I sort of know some of the ...


3

I used Avidemux (GUI) several times, and ffmpeg (console). In Avidemux, you choose "Audio" -> "Select tracks" in the main menu; then save you video as a new file. Interestingly enough, in some cases Avidemux produced "better" output than ffmpeg. just in case, Avidemux and ffmpeg are in the standard Fedora Linux repository. (I'm sure they are standard in ...


3

I would recommend doing as you said, extract the audio, use Audacity or something similar to "cuff" the audio, then use ffmpeg to re-add the audio without re-encoding the video. Their are multiple methods for censoring words in Audacity. - First, the method you specified, you can simply reverse the audio. - You can select the audio, mute it with Generate >...


3

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, $(( ... )). The arithmetic expression inside $(( ... )) will be evaluated and the whole arithmetic expansion will be replaced by the resulting value, as a string of ...


2

Just use what is built into ffmpeg to do exactly this. ffmpeg -i invid.mp4 -threads 3 -vcodec copy -f segment -segment_time 2 cam_out_h264%04d.mp4 This will split it into roughly 2 second chucks, split at the relevant keyframes, and will output to the files cam_out_h2640001.mp4, cam_out_h2640002.mp4, etc.


2

-vn or -an will remove all the video or audio tracks. Supplying -vn -acodec copy will remove video; -an -vcodec copy will remove all audio. -vcodec copy specifies that ffmpeg should do a straight copy the existing video track (and not do any processing/encoding of it). If you don't specify it, then it will still work but ffmpeg may re-encode the existing ...


2

Be sure to check out MLT and it's videostab2 filter.


2

Is it because the missing -map option, which designates the input streams as a source for the output file. I'm using ffmpeg 2.6.1 and is able to split the video with -segment_times: ffmpeg -i foo.mp4 -segment_times 10,20,30,40 -c copy -map 0 -f segment %03d.mp4 If you need more elaborate splitting, you can use OpenCV to read the original video and write ...


2

There is a developer saying that the libdv module is deprecated in the later builds, here. Excerpt: A next thing I saw was in the configuration wizard that the DV module (libdv) is not checked (so not installed). But if I look in Synaptic then I see that libdv4 version 1.0.0-6 is installed. (0010239) pez4brian (developer) 2014-08-16 17:...


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