getting started, .ogv file conversion

Started by winderz-free, September 27, 2012, 02:50:17 PM

Previous topic - Next topic

winderz-free

Hi All,

I'm new to video editing, but have a new computer with enough processor to do the job now.

I run Xubuntu, 12.04. I used RecordMyDesktop to capture a video of my desktop. It saved the file in a .ogv format.

I did read the beginners wiki. But, no mention of .ogv format being supported.

From the wiki, it appears I have to first open the video file, but no matter where I drop the file on the Avidemux screen, I get an error.

I can only guess at this point....that the .ogv file must be converted to some other format type. I did install the proprietary drivers and files, so I believe I should be able to convert to other more modern formats.

What software do I use to convert, and which format is lossless??? I do need to preserve the original video resolution if possible.

TIA

Art

Jan Gruuthuse

Try this: start terminal:
ffmpeg -i {filename}.ogv {new_filename}.mp4
filename name of your recording
I use on ubuntu 12.04.1 Kazam screencaster available from software center. And have the choice of VP8/webm or  H264/mp4 encoding for recording desktop.

winderz-free

I installed ffmpeg without difficulty.

But, when I ran the command, I got the following error and the file length of the resultant output was 0 bytes long:

artie@1234:~/Desktop$ ffmpeg -i criticalmass1.ogv criticalmass1.mp4
ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
  built on Jun 12 2012 16:52:09 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[ogg @ 0x19aa7a0] max_analyze_duration reached
Input #0, ogg, from 'criticalmass1.ogv':
  Duration: 00:07:46.53, start: 0.000000, bitrate: 2214 kb/s


Do I need to try avconv instead??

TY.

Art

Jan Gruuthuse

No not for now, did you get the file criticalmass1.mp4 and can you do something with it?

winderz-free

QuoteNo not for now, did you get the file criticalmass1.mp4 and can you do something with it?

I got the file, on my desktop, right next to the source file.

But, it was an empty file, zero bytes long.

I'm really concerned about preserving the quality of the video. I have read where others tried similar solutions, but many say the video plays slower or faster and that the video duality is much poorer than the original.

What next?

TIA

Art

winderz-free

Hi Jan,

I just tried the same command, and got different results, for reasons unknown. Maybe I didn't select all the output, so my paste didn't paste the entire output.

But, here's the output:

artie@1234:~/Desktop$ ffmpeg -i criticalmass1.ogv criticalmass1.mp4
ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
  built on Jun 12 2012 16:52:09 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[ogg @ 0x8537a0] max_analyze_duration reached
Input #0, ogg, from 'criticalmass1.ogv':
  Duration: 00:07:46.53, start: 0.000000, bitrate: 2214 kb/s
    Stream #0.0: Data: skeleton
    Stream #0.1: Video: theora, yuv420p, 1680x1040 [PAR 1:1 DAR 21:13], 15 fps, 15 tbr, 15 tbn, 15 tbc
    Stream #0.2: Audio: vorbis, 22050 Hz, mono, s16, 89 kb/s
[buffer @ 0x853f00] w:1680 h:1040 pixfmt:yuv420p
[aac @ 0x8566c0] Too many bits per frame requested
Output #0, mp4, to 'criticalmass1.mp4':
    Stream #0.0: Video: mpeg4, yuv420p, 1680x1040 [PAR 1:1 DAR 21:13], q=2-31, 200 kb/s, 90k tbn, 15 tbc
    Stream #0.1: Audio: aac, 22050 Hz, mono, s16, 200 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.2 -> #0.1
Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
artie@1234:~/Desktop$


Sorry for the error.

TY.

Art

Jan Gruuthuse

OK, then you should try:
avconv -i criticalmass1.ogv criticalmass1.mp4

winderz-free

#7
It looks like I got the same results, the very thing that I need (high video resolution) is the same thing that the program refuses to do-argh.

I looked at the properties of the source video, but the software on the forum wouldn't allow me to attach a file.



I'd really like to have it be 50 or more frames per second, but it appears that RecordMyDesktop doesn't support more than 15 frames per second. The source video has a black background, so it should compress nicely when converted to an mp4 or avi.

Here's the output from the terminal mode:

artie@1234:~/Desktop$ avconv -i criticalmass1.ogv criticalmass1.mp4
avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
  built on Jun 12 2012 16:52:09 with gcc 4.6.3
[ogg @ 0xe737a0] max_analyze_duration reached
Input #0, ogg, from 'criticalmass1.ogv':
  Duration: 00:07:46.53, start: 0.000000, bitrate: 2214 kb/s
    Stream #0.0: Data: skeleton
    Stream #0.1: Video: theora, yuv420p, 1680x1040 [PAR 1:1 DAR 21:13], 15 fps, 15 tbr, 15 tbn, 15 tbc
    Stream #0.2: Audio: vorbis, 22050 Hz, mono, s16, 89 kb/s
[buffer @ 0xe73f00] w:1680 h:1040 pixfmt:yuv420p
[aac @ 0xe76740] Too many bits per frame requested
Output #0, mp4, to 'criticalmass1.mp4':
    Stream #0.0: Video: mpeg4, yuv420p, 1680x1040 [PAR 1:1 DAR 21:13], q=2-31, 200 kb/s, 90k tbn, 15 tbc
    Stream #0.1: Audio: aac, 22050 Hz, mono, s16, 200 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (theora -> mpeg4)
  Stream #0:2 -> #0:1 (vorbis -> aac)
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
artie@1234:~/Desktop$


I'm going to look at the manpage for avconv, maybe the video resolution can be forced to the higher setting in the terminal command.

What next???

TIA

Art


Jan Gruuthuse

have you considered using Kazam screencaster: output there H264/MP4

winderz-free

I hadn't considered using another screen capture program. It seems like a simple issue to me though. I think I could work with the 'recordmydesktop' software IF I could just get the ogv file converted over to mp4 or avi.

I did look at KAZAM, the reviews for it are stellar +++++. I don't know what "H264/MP4" is, I'm a newbie who just wants to get some knowledge of editing video without going in all the way::>

I'm going to download KAZAM now.

I'll post results here, whether good or bad.

Regards,

Art




winderz-free

Kazam works fine, I selected mp4 output format, and out came an mp4!!!

I still think it's unfortunate that I can't figure out how to convert the ogv video file that I already have (without losing much video quality).

But, the recordmydesktop software will have to be tabled until I can figure out how to convert video formats.

TY all the help, I appreciate it very much.

Art

Jan Gruuthuse

I does not like the audio part of the ogv recording? Perhaps mkv is not so picky:
avconv -i criticalmass1.ogv criticalmass1.mkv
If that fails try force audio to mp3 output
avconv -i -i criticalmass1.ogv -c:a libmp3lame criticalmass1.mp4

styrol

Quote from: winderz-free on October 01, 2012, 12:16:51 PM
I still think it's unfortunate that I can't figure out how to convert the ogv video file that I already have (without losing much video quality.
Try Handbrake instead of FFmpeg (Avconv).

Quote[aac @ 0xe76740] Too many bits per frame requested
Or specify audio bitrate (it may help): -acodec libfaac -ab 96k

winderz-free




avconv -i criticalmass1.ogv criticalmass1.mkv

artie@1234:~/Desktop$ avconv -i criticalmass2.ogv criticalmass2.mkv
avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
  built on Jun 12 2012 16:52:09 with gcc 4.6.3
[ogg @ 0x135f7a0] max_analyze_duration reached
Input #0, ogg, from 'criticalmass2.ogv':
  Duration: 00:07:46.53, start: 0.000000, bitrate: 2214 kb/s
    Stream #0.0: Data: skeleton
    Stream #0.1: Video: theora, yuv420p, 1680x1040 [PAR 1:1 DAR 21:13], 15 fps, 15 tbr, 15 tbn, 15 tbc
    Stream #0.2: Audio: vorbis, 22050 Hz, mono, s16, 89 kb/s
[buffer @ 0x135ff00] w:1680 h:1040 pixfmt:yuv420p
[libvorbis @ 0x1362740] oggvorbis_encode_init: init_encoder failed
Output #0, matroska, to 'criticalmass2.mkv':
    Stream #0.0: Video: mpeg4, yuv420p, 1680x1040 [PAR 1:1 DAR 21:13], q=2-31, 200 kb/s, 90k tbn, 15 tbc
    Stream #0.1: Audio: libvorbis, 22050 Hz, mono, s16, 200 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (theora -> mpeg4)
  Stream #0:2 -> #0:1 (vorbis -> libvorbis)
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height



avconv -i -i criticalmass1.ogv -c:a libmp3lame criticalmass1.mp4


First try it thought the duplicate '-i' was a filename, so I deleted the duplicate '-i' and tried again.

Got this error:

artie@1234:~/Desktop$ avconv -i criticalmass2.ogv -c:a libmp3lame criticalmass2.mp4
avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
  built on Jun 12 2012 16:52:09 with gcc 4.6.3
[ogg @ 0x22127a0] max_analyze_duration reached
Input #0, ogg, from 'criticalmass2.ogv':
  Duration: 00:07:46.53, start: 0.000000, bitrate: 2214 kb/s
    Stream #0.0: Data: skeleton
    Stream #0.1: Video: theora, yuv420p, 1680x1040 [PAR 1:1 DAR 21:13], 15 fps, 15 tbr, 15 tbn, 15 tbc
    Stream #0.2: Audio: vorbis, 22050 Hz, mono, s16, 89 kb/s
Unknown encoder 'libmp3lame'
artie@1234:~/Desktop$


I tried to install 'libmp3lame' with sudo apt-get, but it said 'no file found'. I opened synaptic and searched, and got a hit with 'libmp3lame0', but nothing when searching for 'libmp3lame'. Synaptic said my system already had 'libmp3lame0' installed.

So, I tried the following:

avconv -i criticalmass2.ogv -c:a libmp3lame0 criticalmass2.mp4

Which produced the following:

avconv -i criticalmass2.ogv -c:a libmp3lame0 criticalmass2.mp4
avconv version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
  built on Jun 12 2012 16:52:09 with gcc 4.6.3
[ogg @ 0x148c7a0] max_analyze_duration reached
Input #0, ogg, from 'criticalmass2.ogv':
  Duration: 00:07:46.53, start: 0.000000, bitrate: 2214 kb/s
    Stream #0.0: Data: skeleton
    Stream #0.1: Video: theora, yuv420p, 1680x1040 [PAR 1:1 DAR 21:13], 15 fps, 15 tbr, 15 tbn, 15 tbc
    Stream #0.2: Audio: vorbis, 22050 Hz, mono, s16, 89 kb/s
Unknown encoder 'libmp3lame0'


This is turning out to be a nightmare......argh.

Any other suggestions???

TIA.

Art





Jan Gruuthuse