danielgtaylor / arista

Arista Transcoder
http://www.transcoder.org/
GNU Lesser General Public License v2.1
120 stars 19 forks source link

Cannot convert ogv to mp4 #157

Open ghost opened 11 years ago

ghost commented 11 years ago

I tried to convert an ogv file (from RecordMyDesktop) to mp4 without luck. It crashes with the error: "Conversion of out.mp4 to Generic Computer H.264 failed! Reason: Unable to construct pipeline! could not link videotee to queueX" (X changes every time I run the conversion).

I tried running arista-transcoder from the command line and this is what I got:

axel@freyr:~$ arista-transcode -v -p H.264 out.ogv 
arista.presets [517]: DEBUG Loaded device Sony Playstation (2 presets)
arista.presets [517]: DEBUG Loaded device Web Browser (3 presets)
arista.presets [517]: DEBUG Loaded device DVD Player (3 presets)
arista.presets [517]: DEBUG Loaded device Computer (4 presets)
arista.presets [517]: DEBUG Loaded device Android (6 presets)
arista.presets [517]: DEBUG Loaded device Apple iOS (4 presets)
arista.presets [517]: DEBUG Loaded device Nokia N Series (4 presets)
arista.queue [185]: DEBUG Found item in queue! Queue is Transcode queue: [Queue entry out.ogv -> H.264 mp4mux -> out-computer.mp4]
arista.discoverer [230]: DEBUG Discovering out.ogv
arista.transcoder [620]: DEBUG uridecodebin uri="file:///home/axel/out.ogv" name=dmux mp4mux name=mux ! queue ! filesink name=sink location="out-computer.mp4" dmux. ! queue ! ffmpegcolorspace ! videorate !    videoscale ! video/x-raw-yuv, width=\(int\)1360, height=\(int\)768, framerate=\(fraction\)15/1, pixel-aspect-ratio=\(fraction\)1/1\; video/x-raw-rgb, width=\(int\)1360, height=\(int\)768, framerate=\(fraction\)15/1, pixel-aspect-ratio=\(fraction\)1/1 ! x264enc pass=qual quantizer=21 me=umh subme=6 ref=3 threads=0 ! tee name=videotee ! queue ! mux.
Encoding out.ogv for computer (H.264) failed!
Unable to construct pipeline! could not link videotee to queue3

This are the contents of my computer.json file (which I have not modified):

{
    "make": "Generic", 
    "model": "Computer", 
    "description": "WebM, H.264/AAC and Theora/Vorbis for the computer", 
    "author": {
        "name": "Daniel G. Taylor", 
        "email": "dan@programmer-art.org"
    }, 
    "version": "1.9", 
    "icon": "file://computer.svg", 
    "default": "WebM", 
    "presets": [
        {
            "name": "Live Input H.264", 
            "description": "Constant bitrate fast H.264 / AAC in MP4",
            "container": "mp4mux", 
            "extension": "mp4", 
            "icon": "file://computer-live.svg", 
            "vcodec": {
                "passes": [
                    "pass=cbr bitrate=2048 subme=4 threads=0"
                ], 
                "container": "mp4mux", 
                "name": "x264enc", 
                "height": [
                    240, 
                    1080
                ], 
                "width": [
                    320, 
                    1920
                ], 
                "rate": [
                    1,
                    30
                ]
            }, 
            "acodec": {
                "passes": [
                    "bitrate=192000"
                ], 
                "container": "mp4mux", 
                "name": "faac", 
                "depth": [
                    8, 
                    24
                ], 
                "channels": [
                    1, 
                    6
                ], 
                "width": [
                    8, 
                    24
                ], 
                "rate": [
                    8000, 
                    96000
                ]
            }
        }, 
        {
            "name": "H.264", 
            "description": "H.264/AAC in MP4 for the computer",
            "container": "mp4mux", 
            "extension": "mp4", 
            "vcodec": {
                "passes": [
                    "pass=qual quantizer=21 me=umh subme=6 ref=3 threads=0"
                ], 
                "container": "mp4mux", 
                "name": "x264enc", 
                "height": [
                    240, 
                    1080
                ], 
                "width": [
                    320, 
                    1920
                ], 
                "rate": [
                    1, 
                    30
                ]
            }, 
            "acodec": {
                "passes": [
                    "bitrate=192000"
                ], 
                "container": "mp4mux", 
                "name": "faac", 
                "depth": [
                    8, 
                    24
                ], 
                "channels": [
                    1, 
                    6
                ], 
                "width": [
                    8, 
                    24
                ], 
                "rate": [
                    8000, 
                    96000
                ]
            }
        }, 
        {
            "vcodec": {
                "passes": [
                    "border=0 quality=40 keyframe-freq=30"
                ], 
                "container": "matroskamux", 
                "name": "theoraenc", 
                "height": [
                    240, 
                    1080
                ], 
                "width": [
                    320, 
                    1920
                ], 
                "rate": [
                    1,
                    30
                ]
            }, 
            "container": "matroskamux", 
            "name": "Theora", 
            "description": "Theora/Vorbis in Ogg for the computer",
            "extension": "mkv", 
            "acodec": {
                "passes": [
                    "quality=0.5"
                ], 
                "container": "matroskamux", 
                "name": "vorbisenc", 
                "depth": [
                    8, 
                    24
                ], 
                "channels": [
                    1, 
                    2
                ], 
                "width": [
                    8, 
                    32
                ], 
                "rate": [
                    8000, 
                    96000
                ]
            }
        }, 
        {
            "name": "WebM", 
            "description": "WebM for the computer",
            "extension": "webm", 
            "container": "webmmux", 
            "icon": "file://computer-webm.svg", 
            "vcodec": {
                "name": "vp8enc", 
                "container": "webmmux", 
                "width": [
                    120, 1920
                ], 
                "height": [
                    120, 1080
                ], 
                "rate": [
                    1, 60
                ], 
                "passes": [
                    "quality=6 threads=%(threads)s speed=2"
                ]
            }, 
            "acodec": {
                "name": "vorbisenc", 
                "container": "webmmux", 
                "width": [
                    8, 32
                ], 
                "depth": [
                    8, 24
                ], 
                "rate": [
                    8000, 96000
                ], 
                "channels": [
                    1, 2
                ], 
                "passes": [
                    "quality=0.4"
                ]
            }
        }
    ]
}
willartte commented 9 years ago

I know a guide to convert OGV to MP4, AVI, WMV, MKV, FLV, MP3, WAV, AAC, M4A, etc at: http://www.faasoft.com/articles/ogv-converter.html

It also helps you convert other video formats to OGV format.

aandreigromov commented 5 years ago

I use iDealshare VideoGo to convert OGV to MP4 or convert MP4 back to OGV. Here is the step by step guide https://www.idealshare.net/video-converter/ogv-converter-for-mac-windows.html It has both Mac and Windows version. It also helps to directly play, edit ogv files. It can convert between various video and audio formats like OGV, MP4, AVI, MOV, WMV, MPG, H.265, OGG, MKV, VOB, FLV, WebM etc.