LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-09-2006, 12:05 AM   #1
7.e.Q
LQ Newbie
 
Registered: Nov 2003
Posts: 25

Rep: Reputation: 15
[Questions] AVCodec/AVFormat - FFMPEG - Linux vs. Windows


Hello,

is anybody out here who has worked with FFMPEG, especially with the included libraries to read/write AVI files?

I got a problem which I was unable to solve yet: I wrote a program that converts an avi video stream (codec rawvideo, 24bpp, 25fps, QCIF [176x144]) into H.263 encoded RTP payloads. These payloads are written into a file on the harddisc. Works great under Linux. I can view this RTP file using MPlayer or VideoLAN (VLC).

Now the problem is, I ported this program to Windows using ffmpeg libraries I successfully translated under a MinGW environment (that started vcvars32.bat from MS Visual Studio 8) and the ported version of my program doesn't work under Windows as it does under Linux. It's 99% the same code as it has under Linux. But the RTP file seems somewhat scrambled. When I view it in MPlayer or VLC, there's just a green colored screen with some flashing light green lines. Also the raw encoded data I get back from avcodec_encode_video call (the buffer it returns) written to a file has the same effect.

Another effect I encountered was a variing size of encoded data under Windows where it has static sizes under Linux. For example under Linux frame #140 of the short sequence has always an encoded length of 1204 bytes. Under Windows the same frame varies somewhat in between 2100 and 2200 bytes everytime I start the program using always the same sequence. I don't understand that effect. When I use a program that calculates something and that always gets the same input data, it should always return the same values, shouldn't it? Well under Linux my program does. But it doesn't under Windows. So if anybody could help me, I would be very thankful.

Maybe there is an alternative solution for using FFMPEG under Windows (within Visual Studio .NET 2005) to convert an AVI file frame by frame to a bunch of H.263 encoded RTP Payloads?

Thanks in advance!

Greetings,
Hendrik
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
transcode has problems with avcodec.h (Suse 9.2) the-damian Linux - Software 0 12-03-2005 01:18 PM
avcodec and avformat libraries in ubuntu ivorytower27 Linux - Software 2 10-11-2005 06:43 PM
Migration from Windows to Linux questions? nihat10 Linux - Software 1 11-09-2004 09:26 PM
Windows is driving me nuts...i have questions about Linux Eterion Linux - Distributions 41 08-29-2003 01:12 AM
Linux + Windows HOWTO Questions Sadie Newlinux Linux - Newbie 1 04-23-2003 06:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration