Sometime Linux can really be annoying(I still like like it though).
So I’ve been trying to use recordmydesktop to record which saves natively in OGV. Unfortunately youtube doesn’t like OGV you need to convert to AVI.
So I tried the magical incantation that google seems to say and this happened:
jonasthomas@JTLapTop:~/Videos$ mencoder Issue436.ogv -ovc lavc -oac mp3lame -o Issue436.avi MEncoder 1.1-4.8 (C) 2000-2012 MPlayer Team success: format: 0 data: 0x0 - 0x67d9c7 libavformat version 54.20.4 (external) Mismatching header version 54.20.3 libavformat file format detected. [ogg @ 0x7f8a734c1600]Multiple fisbone for the same stream is not implemented. Update your Libav version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [ogg @ 0x7f8a734c1600]22 bytes of comment header remain [ogg @ 0x7f8a734c1600]truncated comment header, 1 comments not found [ogg @ 0x7f8a734c1600]max_analyze_duration reached [lavf] stream 1: video (theora), -vid 0 [lavf] stream 2: audio (vorbis), -aid 0 VIDEO: [theo] 1424x832 0bpp -nan fps 0.0 kbps ( 0.0 kbyte/s) [V] filefmt:44 fourcc:0x6F656874 size:1424x832 fps: -nan ftime:= -nan ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders libavcodec version 54.35.0 (external) AUDIO: 22050 Hz, 1 ch, floatle, 90.0 kbit/12.75% (ratio: 11248->88200) Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis) ========================================================================== Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [fftheora] vfm: ffmpeg (FFmpeg Theora) ========================================================================== MP3 audio selected. Movie-Aspect is 1.71:1 - prescaling to correct movie aspect. videocodec: libavcodec (1424x832 fourcc=34504d46 [FMP4]) [mpeg4 @ 0x7f8a72c19aa0]framerate not set Could not open codec. FATAL: Cannot initialize video driver. Movie-Aspect is 1.71:1 - prescaling to correct movie aspect. videocodec: libavcodec (1424x832 fourcc=34504d46 [FMP4]) [mpeg4 @ 0x7f8a72c19aa0]framerate not set Could not open codec. FATAL: Cannot initialize video driver.
So memcoder isn’t working. And FFmpeg doesn’t seem to be loaded in 14.04 for some reason or another… But I did find some instructions to get it loaded.
http://www.faqforge.com/linux/how-to-install-ffmpeg-on-ubuntu-14-04/
So looking for the magical incantation: http://ubuntuforums.org/showthread.php?t=1613179
So I tried this:
jonasthomas@JTLapTop:~/Videos$ ffmpeg -i Issue436.ogv -vcodec libx264 -vpre medium -crf 24 -threads 0 -acodec copy Issue436.mkv ffmpeg version N-77455-g4707497 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04) configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab libavutil 55. 11.100 / 55. 11.100 libavcodec 57. 20.100 / 57. 20.100 libavformat 57. 20.100 / 57. 20.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 21.101 / 6. 21.101 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 [ogg @ 0x26f8500] Broken file, keyframe not correctly marked. Input #0, ogg, from 'Issue436.ogv': Duration: 00:02:17.80, start: 0.000000, bitrate: 395 kb/s Stream #0:0: Data: none Stream #0:1: Video: theora, yuv420p, 1424x832 [SAR 1:1 DAR 89:52], 15 fps, 15 tbr, 15 tbn, 15 tbc Metadata: RECORDMYDESKTOP : 0.3.8.1 Stream #0:2: Audio: vorbis, 22050 Hz, mono, fltp, 89 kb/s File for preset 'medium' not found jonasthomas@JTLapTop:~/Videos$
Ok… Now I found this: http://ubuntuforums.org/showthread.php?t=1957290
This incantation seems to work.
jonasthomas@JTLapTop:~/Videos$ ffmpeg -i Issue436.ogv -vcodec mpeg4 -qscale 3 -acodec libmp3lame -aq 4 Issue436.mp4
Hoo… Hoo… Success.