I would like to easily be able to convert a MKV video to MP4 video in Ubuntu. Is there any way I can easily do this at all?
I have hundreds of videos in a folder that I want to make a gif for. Each videos length is different but all videos are longer than 30 seconds. I want to take 10 3 second gif images from a video over the course of the video. For example if the video is 25 minutes long a 3 second recorded gif should be taken every 2.5 minutes (150 seconds).
The finished gifs must also have the same name as the video but ending in .gif all videos are .mp4
The gifs should be 560x340
It would be nice to do this with one command to.
I am trying to cut a long video into several small pieces. Any recommended tools can do the task?
I am trying to convert an MKV file to MP4 to be compatible with my PS3. I am using:
avconv -i file.mkv -c copy file.mp4
It fails and I get the following error:
[mp4 @ 0x8a17c00] pts < dts in stream 0
av_interleaved_write_frame(): Invalid argument
The file is h264 video and ac3 audio.
I am trying to convert mythtv recorded mpg (mpeg2) files into streamable mp4 files. Converting to an mp4 is simple, however, the entire file must be converted first before it is usable. Even using conversion tools that put the "mov atom" at the start of the file for quick streaming require that the entire mp4 be encoded before that happens.
I read on avconv docs that "The mov/mp4/ismv muxer supports fragmentation." which can put a "fake" mov atom at the start of the file and then puts a new one at each keyframe throughout the file so the video can be streamed while it is being transcoded or if the conversion is interrupted.
I believe I have followed the avconv instructions (http://libav.org/avconv.html#MOV_002fMP4_002fISMV) on how to convert a file, but continue to get errors that indicate the encoder does not understand the parameters. Below is my command, and the error output it generates. I have exhausted google and myself searching for answers and have come up blank so any help would be greatly appreciated.
System running ubuntu 12.04x64 with avconv version 0.8.1-4:0.8.1-0ubuntu1.
Command:
avconv -i 1081_20111227200000.mpg -f mp4 -movflags frag_keyframe+empty_moov -c:v libx264 -c:a copy output.mp4
Error:
[mp4 muxer @ 0x36772e0] [Eval @ 0x7fffeddb69b0] Undefined constant or missing '(' in 'frag_keyframe'
[mp4 muxer @ 0x36772e0] Unable to parse option value "frag_keyframe+empty_moov"
[mp4 muxer @ 0x36772e0] Error setting option movflags to value frag_keyframe+empty_moov.
Output #0, mp4, to 'output.mp4':
Stream #0.0: Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=-1--1, 90k tbn, 29.97 tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, 384 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Stream #0:1 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?)
I have tried different muxers (-f parameters like h264 etc) and had other errors like the movflag wasn't even supported (logical).
Am I missing a package, dependency, or just the point? Thanks in advance.