PDA

View Full Version : [ubuntu] 10.04 LTS: OGV -> Youtube format?



Wilbefast
February 1st, 2012, 07:07 PM
Hi all,

I have a high-quality "OGV" file. I'd like to convert it to an equally high quality "???" file, such that "???" is supported by Youtube. OGV isn't, nor is MKV apparently. "FLV" is supported by Youtube but rapes, pillages and burns the quality to the ground. "MP4" and "AVI" are supported by Youtube, but after around 20 attempts with different methods and pieces of software, I still can't make the conversion.

I'm going completely insane - I know there's a licensing issue here: I'm prepared take full responsibility as I see no ethical/moral arguments at all to support copyright. Yet even with all the bad and ugly packages installed, I still can't make the conversion.

Please help :(

shantiq
February 1st, 2012, 07:28 PM
ogv and mkv are fine on YT but maybe yours contains something else i think i have read that ogv and mkv are only wrappers but do not tell us what is inside .....



would suggest



ffmpeg -i nameofyourfile to see what is in your file and to post it here





i downloaded this (https://secure.wikimedia.org/wikipedia/commons/wiki/File:Examplevideo.ogv)sample ogv and looked inside with ffmpeg

so
Input #0, ogg, from '1.ogv':
Duration: 00:03:57.21, start: 0.000000, bitrate: 1267 kb/s
Stream #0.0: Data: skeleton
Stream #0.1: Video: theora, yuv420p, 480x196 [PAR 1:1 DAR 120:49], 29.87 fps, 29.87 tbr, 29.87 tbn, 29.87 tbc
Stream #0.2: Audio: vorbis, 44100 Hz, stereo, s16, 224 kb/s
Metadata:
ENCODER : ffmpeg2theora-0.23


then turned it to mkv with ffmpeg thus


ffmpeg -i 1.ogv -vcodec copy -acodec copy 1.mkv


so first try this maybe and if YT still rejects it


then post results here of

ffmpeg -i nameofyourfile someone will know.....

Wilbefast
February 1st, 2012, 07:35 PM
Thanks for the reply - here's my output:


william@SATAN:~/Desktop$ ffmpeg -i test.ogv -theora copy -vorbis copy test.mkv
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.3, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5.1-1ubuntu1.3 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
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 Dec 21 2011 18:41:38, gcc: 4.4.3
[theora @ 0xd99870]7 bits left in packet 82
Input #0, ogg, from 'test.ogv':
Duration: 00:00:18.80, start: 0.000000, bitrate: 1298 kb/s
Stream #0.0: Video: theora, yuv420p, 1280x720, PAR 1:1 DAR 16:9, 30 tbr, 30 tbn, 30 tbc
Stream #0.1: Audio: vorbis, 44100 Hz, stereo, s16, 112 kb/s
ffmpeg: unrecognized option '-vtheora'

shantiq
February 2nd, 2012, 10:45 AM
william


you got this slightly wrong

you did
ffmpeg -i test.ogv -theora copy -vorbis copy test.mkv


when you should have done


ffmpeg -i test.ogv -vcodec copy -acodec copy test.mkv


run it again and see if resulting new mkv file goes on YT

Wilbefast
February 2nd, 2012, 04:54 PM
Oh, sorry, I thought "vcodec" meant "put the video codec here". The encoding worked, but the sound is really choppy: it comes and goes about once per second.

Good new though: I tried encoding again with Pitvi in MKV though (using theora and vorbis this time) and finally got the thing working on Youtube: https://www.youtube.com/watch?v=OTnTjxUkv_k

MKV + theora + vorbis is now my go-to format ;) thanks for the help!

William