Log in

View Full Version : H.264 and hinting for streaming


Mordordotnet
15th October 2006, 14:12
Hi there,

I am able to create mpeg4 files using H.264+aac with ffmpeg on Linux. It actually works really well and seems to be MUCH faster than doing the same job with Quicktime 7 Pro.

I'd like to stream the results with Darwin Streaming Server, but I cannot find a way to hint my videos. I cannot even hint them with QT7 as it seems to choke on the inserted B-frames.

Any suggestions would be very much appreciated.

Cheers,

Drachir
15th October 2006, 16:28
Use MP4Box: http://gpac.sf.net

Mordordotnet
15th October 2006, 16:31
Use MP4Box: http://gpac.sf.net

I tried this, but there are no rpms available for RedHat Enterprise Linux (or CentOS) and I'm just not much of a coder and wasn't able to compile it properly myself (it compiled, but I am obviously missing some key libraries).

Any other suggestions?

Cheers,

Drachir
15th October 2006, 16:49
...it compiled, but I am obviously missing some key libraries ...
If it compiled, without an error, it should be OK. Where is the problem?

You can also try mp4creator from http://mpeg4ip.sf.net

Mordordotnet
15th October 2006, 17:54
If it compiled, without an error, it should be OK. Where is the problem?

You can also try mp4creator from http://mpeg4ip.sf.net

It complains about missing some shared libraries and exits.

mp4creater is interesting (just tried). It almost works. It segfaults if the original AVI is encoded with H.264 video. :(

Cheers,

Drachir
15th October 2006, 18:13
It complains about missing some shared libraries and exits.
What is the exact message you get from MP4Box? Your are using MP4Box at the same computer you compiled it on?


mp4creater is interesting (just tried). It almost works. It segfaults if the original AVI is encoded with H.264 video. :(

I thought you have created MP4 files with FFmpeg and want to hint them.

Mordordotnet
15th October 2006, 18:29
What is the exact message you get from MP4Box? Your are using MP4Box at the same computer you compiled it on?



I thought you have created MP4 files with FFmpeg and want to hint them.

Yes, the same computer. The original files were created with ffmpeg. So if I use mp4creator to list the tracks and then try something like:

mp4creator -extract=1 file.avi file.264

it segfaults. :(

Cheers,

Drachir
15th October 2006, 18:41
Don't create an AVI with FFmpeg. Your goal ist to create files for streaming with DSS. Create directly a MP4 file with FFmpeg.

To extract the raw H.264 stream from the avi try avi2raw from mpeg4ip.

Mordordotnet
15th October 2006, 23:40
Don't create an AVI with FFmpeg. Your goal ist to create files for streaming with DSS. Create directly a MP4 file with FFmpeg.

To extract the raw H.264 stream from the avi try avi2raw from mpeg4ip.


Sorry, that is my mistake. The files are .mp4 created with ffmpeg, not AVI. My ultimate goal is to create streamable H.264/aac video. My original input files are uncompressed AVI (each file is about 30gb). If there is a direct route to create hinted streamable files, that would be ideal. QT7-pro can do it, but it is VERY slow and I was hoping to have something Linux friendly so I can script it and convert several terabytes of video all at once.

Cheers,

bond
16th October 2006, 17:07
make sure to use latest svn ffmpeg. it should create perfect mp4 files when encoding (not when muxing!)

Mordordotnet
16th October 2006, 17:11
make sure to use latest svn ffmpeg. it should create perfect mp4 files when encoding (not when muxing!)

When you say *perfect* do you think that will cure my segfault problems with the tools to hint the tracks for streaming?

Cheers,

bond
16th October 2006, 17:25
yes :p

Mordordotnet
16th October 2006, 22:01
Bond, you are RIGHT! I grabbed the latest svn of ffmpeg and now all the tools are working as you would expect without random segfaults. Yeeha!

Thanks! I owe you a beer or three if you ever find yourself in NYC.

Cheers,