wereHamster
20th June 2006, 17:20
I have a somewhat complex problem. I have lots (gigabytes) of raw YUV video data in a simple proprietary (but easy to demux) file format. I've heard that AVI doesn't properly support VFR video, that's why I'm saving the stream in my own proprietary format (and also a reason is that ffmpeg/libavcodec/libavformat is a bitch to use... really.. only doxygen generated API doc.. nothing else for programmers) and I can't afford the files being corrupt (which can happen quite often when using the ffmpeg libs and not setting the right options).
Now, I have hacked a x264 demuxer for my raw files and I'm using the H264 lossles mode to encode the video and store it in mp4 files (that works quite well.. see http://forum.doom9.org/showthread.php?t=112615 ). But.. I'd like to edit those videos.. add sound, cut, mix etc... and I have yet to find a video editor (for windows/linux) that natively supports h264 (in lossless mode, QT7 doesn't) in mp4 containers (and I'm not even talking about VFR streams).
Adobe Premiere Elements 2.0 can't import my mp4 files (I have ffdshow and the Haali demuxer installed and WMP can play back those files without problems). That's why I've used ffmpeg (the cmdline tool) to convert my mp4 to uncompressed CFR AVI (that's what APE 2.0 can reliably import). But when exporting the edited video to compressed (xvid/ffv1/h264 etc) AVI, it corrupts the files, only uncompressed export works.
I want to keep the h264 encoded files as reference somewhere (archive them on DVDs, the compressed/lossless h264/mp4 format is quite handy), so the mp4 => avi conversion is only done for editing.
My questions:
1) How can I improve my workflow?
2) When converting from mp4 to CFR AVI, what framerate is best (let's assume I will also export to PAL DVD or HD)?
3) What external applications can I use to convert the final uncompressed AVI to H264/AAC MP4 ?
[Edit]:
Update: APE 2.0 can't handle AVI files bigger than 2GB (it can import, but it won't read beyond 2GB), same with Windows Media Player. But QuickTime/MPlayer/VLC can play the file without problems. And no, I am not willing to split the file into <2GB chunks because now we live in a world where we have 64bit CPUs and unsigned 128bit integers but the stupid application still uses a signed! 32bit int.
All I want is to edit my video and export to H264/AAC in a MP4 container, but none of the currently available tools can do that.
thanks
Now, I have hacked a x264 demuxer for my raw files and I'm using the H264 lossles mode to encode the video and store it in mp4 files (that works quite well.. see http://forum.doom9.org/showthread.php?t=112615 ). But.. I'd like to edit those videos.. add sound, cut, mix etc... and I have yet to find a video editor (for windows/linux) that natively supports h264 (in lossless mode, QT7 doesn't) in mp4 containers (and I'm not even talking about VFR streams).
Adobe Premiere Elements 2.0 can't import my mp4 files (I have ffdshow and the Haali demuxer installed and WMP can play back those files without problems). That's why I've used ffmpeg (the cmdline tool) to convert my mp4 to uncompressed CFR AVI (that's what APE 2.0 can reliably import). But when exporting the edited video to compressed (xvid/ffv1/h264 etc) AVI, it corrupts the files, only uncompressed export works.
I want to keep the h264 encoded files as reference somewhere (archive them on DVDs, the compressed/lossless h264/mp4 format is quite handy), so the mp4 => avi conversion is only done for editing.
My questions:
1) How can I improve my workflow?
2) When converting from mp4 to CFR AVI, what framerate is best (let's assume I will also export to PAL DVD or HD)?
3) What external applications can I use to convert the final uncompressed AVI to H264/AAC MP4 ?
[Edit]:
Update: APE 2.0 can't handle AVI files bigger than 2GB (it can import, but it won't read beyond 2GB), same with Windows Media Player. But QuickTime/MPlayer/VLC can play the file without problems. And no, I am not willing to split the file into <2GB chunks because now we live in a world where we have 64bit CPUs and unsigned 128bit integers but the stupid application still uses a signed! 32bit int.
All I want is to edit my video and export to H264/AAC in a MP4 container, but none of the currently available tools can do that.
thanks