Are there any plans to support the AVCHD format in the Haiku Media Player, since FFmpeg already includes an AVCHD decoder in its libavcodec library? Haiku will not recognise the AVCHD file extensions M2TS, MTS and M2T, and must be renamed to MP4 before attempting to play the files in Media Player. Apparently, the current VLC media player will play AVCHD video files, although I have not tried it yet myself. The latest BeOS revision is 0.8.6c, so I have my doubts it will work in Haiku.
sounds like avchd is supported if all you’re doing is renaming files (rather than converting them). have you tried dragging and dropping into mp? you should be able to change your filetype associations in your preferences.
the codec is recognized, but the container isn’t. not right away, at least. i’ve had similar trouble with mkv in the past (under linux, where nearly every format under the sun is recognized)
When the file extension is changed to mp4, Media Player will attempt to play the file, albeit with macroblocking, stuttering, freezing and 100% CPU on a dual core system. First step would be to get the system to recognise the correct file extensions as media files even though it can’t process them in software. Even in a Windows based dual core system, the files play poorly unless you implement DXVA or CUDA using the CoreAVC codec. I’ll try the files with the latest VLC in Windows tonight and report back the results.
The codec support on Haiku is currently a bit underwhelming. Basically what we currently have is based on the codecs supported by ffmpeg 0.10.2. This is the latest version we’re able to compile using gcc2.
The good news is that we’re not stuck on gcc2 and we could provide a more modern version of ffmpeg compiled using gcc4 and get a whole lot more codec support. Unfortunately nobody has yet stepped up to the plate and done that. There are some compatibility concerns for legacy BeOS apps that need to be considered, but, AFAIK it is possible to have two versions of ffmpeg, one for old gcc2 BeOS apps, and a second gcc4 version for modern apps including Media Player.
gcc2 must die ///////
It’s possible, but slightly more tricky than in other cases. ffmpeg APIs changes from a version to another, so we’ll have to add some #ifdefs to make up for that. Fortunately, this will affect only our ffmpeg plugin code, leaving all the Media Kit framework clean.
I resolved most of the playback issues by upgrading my PC. Originally I was using a Pentium D with Intel GMA 3000 GPU, and the system simply could not handle AVCHD video without stuttering and freezing. With my current system, a Core 2 Duo E8500 with Intel GMA 4500 GPU, I can now play these files with Haiku Media Player and minimal playback issues. It isn’t as smooth as on my Windows PC, with ATI Radeon HD, using the CoreAVC codec and DXVA, but it isn’t so bad either. Now all we need is for Haiku to recognise the file extensions associated with AVCHD as valid media files and perhaps tweak hardware acceleration for the imbedded Intel GPU’s.
would libav work?