[MEncoder-users] Issues trying to concatenate video files
Jim Wiggs
jim.wiggs at gmail.com
Mon Dec 13 01:47:20 CET 2010
Folks,
I'm using gtk-recordMyDesktop to do simple screen captures combined with
voiceovers. As you may or may not know, recordMyDesktop saves in one
format, and one only, and that is ogg theora ".ogv". I want to concatenate
these videos with an existing .mp4 video using avidemux but I can't seem to
get an exact matchup in terms of both the video and the audio streams so
that I can successfully splice the files together. Here is the information
about the original video:
bash% ffmpeg -i TestVideo1.mp4
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6.2, Copyright (c)
2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-postproc --enable-swscale
--enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6.2
--prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook
--enable-libdc1394 --disable-armv5te --disable-armv6 --disable-armv6t2
--disable-armvfp --disable-neon --disable-altivec --disable-vis
--enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Apr 23 2010 15:08:34, gcc: 4.3.3
Seems stream 0 codec frame rate differs from container frame rate: 30.00
(30/1) -> 15.00 (15/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'TestVideo1.mp4':
Duration: 01:44:08.48, start: 0.000000, bitrate: 110 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 640x480, 15 tbr, 15 tbn, 30 tbc
Stream #0.1(eng): Audio: aac, 22050 Hz, stereo, s16
At least one output file must be specified
And here is the info on the .ogv file:
bash% ffmpeg -i Part1IntroSlide.ogv
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6.2, Copyright (c)
2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-postproc --enable-swscale
--enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6.2
--prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook
--enable-libdc1394 --disable-armv5te --disable-armv6 --disable-armv6t2
--disable-armvfp --disable-neon --disable-altivec --disable-vis
--enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Apr 23 2010 15:08:34, gcc: 4.3.3
[theora @ 0x8eaa520]7 bits left in packet 82
Input #0, ogg, from 'Part1IntroSlide.ogv':
Duration: 00:02:20.53, start: 0.000000, bitrate: 631 kb/s
Stream #0.0: Invalid Codec type -1
Stream #0.1: Video: theora, yuv420p, 640x480, PAR 1:1 DAR 4:3, 15 tbr,
15 tbn, 15 tbc
Stream #0.2: Audio: vorbis, 48000 Hz, stereo, s16, 499 kb/s
At least one output file must be specified
My objective is simple: I have two .ogv files, one "Intro" and one
"WrapUp", and I want to concatenate them with the .mp4 file to produce a
single mp4 Intro -> Main Video -> WrapUp.
I spent almost a day trying to do this by transcoding everything to mpeg1
format with mp2 audio, then concatenating the files. That "worked" but I
ended up with audio/video sync issues, where the video would start leading
the audio progressively more and more, plus there were audio dropouts, it
was a mess. I got the same result when I concatenated using mencoder:
mencoder -oac copy -ovc copy -of mpeg Part1IntroSlide.mpg TestVideo1.mpg
Part1ClosingSlide.mpg -o SplicedVideo1.mpg
It did not matter whether I used -forceidx or "-mc 0" or "-noskip" or any
combination of these.
Currently, I'm trying to transcode everything to the same format as the
main video, then use avidemux to do the splicing. I keep getting the result
that once I do the full concatenation, there is no audio. I can concatenate
the starting and ending pieces but once I splice in the main audio, the end
result is a file that has the precise video result I'm looking for but no
sound.
Can anyone help out, here? I'm running Ubuntu 9.04, but I have access to
a 10.04 LTS box if I need it. I've got both mencoder and ffmpeg installed,
as well as avidemux and the default totem video player to test videos once
they are complete.
I can provide additional information about the commands/parameters I've
been experimenting with if needed. Just let me know. On the other hand, if
anyone has already figured out a solution for this issue, that would be
great to hear, too.
many thanks,
Jim
More information about the MEncoder-users
mailing list