LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need help converting a video to a different format. (https://www.linuxquestions.org/questions/linux-software-2/need-help-converting-a-video-to-a-different-format-4175502224/)

CamTheSaxMan 04-18-2014 04:43 PM

Need help converting a video to a different format.
 
I'm trying to edit a .ogv video in Avidemux, but alas! Avidemux can't handle the .ogv format. I want to convert this video to an uncompressed mpeg for editing, and I've tried avconv and ffmpeg, both of which fail with error messages.
Code:

cameron@Aspire-5920:~/Videos$ avconv -i out-13.ogv out-13.mpeg
p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/p11-kit-trust.so: /usr/lib/x86_64-linux-gnu/pkcs11/p11-kit-trust.so: cannot open shared object file: No such file or directory
avconv version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:53:28 with gcc 4.8.1
[ogg @ 0xf32a20] max_analyze_duration reached
Input #0, ogg, from 'out-13.ogv':
  Duration: 00:01:28.60, start: 0.000000, bitrate: 2666 kb/s
    Stream #0.0: Data: skeleton
    Stream #0.1: Video: theora, yuv420p, 1024x624 [PAR 1:1 DAR 64:39], 15 fps, 15 tbr, 15 tbn, 15 tbc
[buffer @ 0xf33100] w:1024 h:624 pixfmt:yuv420p
[mpeg1video @ 0xf39840] MPEG1/2 does not support 15/1 fps
Output #0, mpeg, to 'out-13.mpeg':
    Stream #0.0: Video: mpeg1video, yuv420p, 1024x624 [PAR 1:1 DAR 64:39], q=2-31, 200 kb/s, 90k tbn, 15 tbc
Stream mapping:
  Stream #0:1 -> #0:0 (theora -> mpeg1video)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
cameron@Aspire-5920:~/Videos$ ffmpeg -i out-13.ogv out-13.mpeg
p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/p11-kit-trust.so: /usr/lib/x86_64-linux-gnu/pkcs11/p11-kit-trust.so: cannot open shared object file: No such file or directory
ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:53:28 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[ogg @ 0x104ba20] max_analyze_duration reached
Input #0, ogg, from 'out-13.ogv':
  Duration: 00:01:28.60, start: 0.000000, bitrate: 2666 kb/s
    Stream #0.0: Data: skeleton
    Stream #0.1: Video: theora, yuv420p, 1024x624 [PAR 1:1 DAR 64:39], 15 fps, 15 tbr, 15 tbn, 15 tbc
File 'out-13.mpeg' already exists. Overwrite ? [y/N] y
[buffer @ 0x1051660] w:1024 h:624 pixfmt:yuv420p
[mpeg1video @ 0x104f380] MPEG1/2 does not support 15/1 fps
Output #0, mpeg, to 'out-13.mpeg':
    Stream #0.0: Video: mpeg1video, yuv420p, 1024x624 [PAR 1:1 DAR 64:39], q=2-31, 200 kb/s, 90k tbn, 15 tbc
Stream mapping:
  Stream #0.1 -> #0.0
Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
cameron@Aspire-5920:~/Videos$

What am I doing wrong? I don't know what a stream or a bitrate is, and what to put, so I'm at a loss. I just want to convert my video to an uncompressed mpeg, leaving all quality intact.

timl 04-18-2014 05:19 PM

I have never come across the ogv format but i have used ffmpeg to fiddle with formats - mostly flv to mp3 - so is ffmpeg worth a go? This is a very simple tutorial converting ogv to flv but it might point you in the fight direction.

Cheers

http://www.debianadmin.com/how-to-co...ng-ffmpeg.html

bat999 04-18-2014 06:55 PM

...

jdkaye 04-19-2014 12:30 AM

This video may help you.
jdk

andrew.46 04-28-2014 04:34 AM

I do not use avidemux but I see from the docs that it will take huffyuv as an import format so perhaps the following would do:

Code:

ffmpeg -i input.ogv -c:v huffyuv -an out-13.mpeg
I see that avidemux also supports FFmpeg's lossless video codec ffv1 so this would be another good choice...

Enindu 04-28-2014 04:42 AM

How about MEncoder? It helped me.
https://wiki.archlinux.org/index.php/MEncoder
http://jmscrk.com/blog/video-conversion-ogv-mp4

DJ Shaji 04-28-2014 04:43 PM

um, on your system, actually, ffmpeg and avconv point to the same program, which is not ffmpeg. See here for details.

Anyhow, the answer to your problem is simple:

Code:

ffmpeg -i file.ogv -b:v 3M -vcodec mpeg4 outfile.mp4


All times are GMT -5. The time now is 05:41 PM.