bloginfo('name');

bloginfo('description');

YouTube and transcoding video with vixy.net

August 12th, 2008 by Blu:RayNe

I hate all those low quality videos from YouTube. You know there is that trick to concenate &fmt=18 to YouTube-URLs to have it access the new servers with higher quality videos and better bandwidth performance, but still that does not makes me happy.

Having FLV is ok for me, although I dislike non-standard container formats. But the point is copying those FLVs for friends often ends up by them complaining not beeing able to play the files on their Windows or Mac. The same problem persists on the iPod or my mobile phone that just understands 3GP in the moment.

So i end up having to convert the files… or transcoding them.

Conversion vs. Transcoding

Converting usally means decoding the video to a full video-picture – probably with or without any post-processing– and loosing the visual information that was artifically added again by encoding. Also, most of the  bitstream-information on the decoded stream is also lost, because you only see a the picture and not what abstract data is behind.

That is the place where transcoding comes into play: It transcodes the data be going deep into the input stream directly translating it the the output stream. The “visual step“ between encoding and deocoding is skipped, because not necessary. In the end we have not only faster conversion process, but have also retained all possible quality. 

Ok, if input and output en/decoding algorithms differ too much or you wanna resize the video you still have to convert the videos. Point is that the algorithms used in input and output stream have to be similar to each other (beeing often MPEG4 on nowadays video material).

I discovered vixy (which is based on ffmpeg) und does a nice job on transcoding. On windows and Mac you have a GUI limited to YouTube. The Online-Converter itself seems to be always overloaded. So, time to compile our FLV 2 MPEG4 Tool ourselves (for Ubuntu/Debian):

$ apt-get install apt-get install libavcodec-dev libavformat-dev libavutil-dev ffmpeg subversion
$ apt-get build-dep ffmpeg
$ mkdir flv2mpeg4
$ cd flv2mpeg4
$ svn co https://vixynet.svn.sourceforge.net/svnroot/vixynet/trunk/flv2mpeg4/ .
$ cd src
$ gcc -O3 -o flv2mpeg4 avformat_writer.c dcprediction.c flv2mpeg4.c fetch.c flvdecoder.c m4vencode.c mp3header.c -lavformat -lavcodec -lavutil -I/usr/include/ffmpeg -L/usr/lib
$ cp flv2mpeg4 /usr/bin

A last word to YouTube. I don’t suggest uploading to it in no way!

  • They manipulate view counters on videos with strong political content (e.g. 200 views and 300 comments?)
  • Everything you upload, belongs to them! Read the terms!
  • Quality still sucks  (it’s for the american market; but we have broadband here in germany!)
  • Servers are often damn slow, espacially at 23:00 CEST+1 when all americans go on the site
Filed under Linux, Netzwelt having 10 Comments »

10 Responses

  1. Jatnika says:

    Wow! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?

    rH3uYcBX

  2. Quick Facts says:

    Best you could edit the webpage subject title evølutiøn-515.net » Blog Archive » YouTube and transcoding video with vixy.net to something more specific for your webpage you create. I enjoyed the post still.

  3. Kasino spielen says:

    Theoretisch ist das eine gute Story, ich bin mir aber unsicher, ob das auch auf Dauer machbar ist!

  4. Weight Lifting Belt Prices says:

    Just thought i’d drop in to say i love your style of writing, flows really well and easy to read. Thanks for posting this

  5. Yankees says:

    I adore yours blog design, what theme do you use?? please comment back!

  6. buy artificial flowers online says:

    hoho your article reminds me of very funny thing my lad did, he walked into soaked napkin, screemed “homoo” and fell down… + food flew to plouse of by stander, this happened at our wedding lol…

    Anyways story short, you have written very nice post, makes me smile.

  7. 3D TV Packages says:

    We are a group of volunteers and starting a new scheme in our community. Your web site offered us with valuable information to work on. You’ve done a formidable job and our whole community will be grateful to you.

  8. Alastair says:

    What is up, awesome web-site. I really like your style. I just now ended cosmetic school and also set up my own personal webpage. Thanks for the amazing posting!

  9. HCG Levels in Early Pregnancy says:

    HCG Levels in Early Pregnancy Thanks for writing this, it was very handy and helped me quite a bit…

    Thanks for writing this, it was very handy and helped me quite a bit…

  10. seo says:

    I absolutely love your blog and find a lot of your post’s to be what precisely I’m looking for. Does one offer guest writers to write content for you? I wouldn’t mind publishing a post or elaborating on most of the subjects you write about here. Again, awesome web log!

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.