Log in

View Full Version : MTS de/remuxex to MP4 playback prob


audyovydeo
7th September 2009, 10:46
I'm demuxing my new camera's AVCHD Lite MTS files via TSmuxer or DGAVCIndex, and remuxing with mp4box/Yamb.

all MTS files play back perfectly with VLC, all mp4 files simply do not (stay stuck at frame 1).

I'm changing nothing at all : stream stays PAL 50p.

Anyone has any idea why this could be ?

thanks
audyovydeo

PS : just muxed to MKV and the problem remains. This being my first experience with MTS files, I'm quite baffled.

Guest
7th September 2009, 12:52
AVCHD Lite uses frame repeat flags (pic struct 7). Maybe some players have a problem with it. It really has only 25fps of information and it gets doubled by repeats to 50fps. We could write a utility to delete the repeat flags and see what happens then. Can you link a sample?

audyovydeo
7th September 2009, 14:16
AVCHD Lite uses frame repeat flags (pic struct 7). Maybe some players have a problem with it. It really has only 25fps of information and it gets doubled by repeats to 50fps. We could write a utility to delete the repeat flags and see what happens then. Can you link a sample?

Do you want me to upload the original MTS, or the remuxed mp4 file ?

I've done some more testing, changing the fps flag :

MTS@50fps > OK
mp4@50fps > problem
mp4@25fps > problem
mkv@50fps > problem
mkv@25fps > OKish

notice this is on 2 different machines, a Pentium4 and a Core2. VLC 1.0.1.

thing is, mp4 is my container of choice (I voted for its support in DGAVCdec back when ...), and thus far I have yet to find footage that does not play back correctly on my Core2 at least.

TSMuxer 1.0.6.xx, mp4box 0.4.6-dev, vlc 1.0.1, etcaetera...

cheers
audyovydeo



PS : the cmdline given by TSMuxer gui :

MUXOPT --no-pcr-on-video-pid --new-audio-pes --demux --vbr --vbv-len=500 V_MPEG4/ISO/AVC, "00006.MTS", fps=50, insertSEI, contSPS, track=4113 A_AC3, "00006.MTS", track=4352

7ekno
7th September 2009, 14:17
It's actually VLC ;)

Use H264TSto to remux them to MKV and play them with a decent player (The KMPlayer, MPC-HT, etc play them fine) :P

Samples will be exactly the same as these (http://forum.doom9.org/showthread.php?p=1318234#post1318234) DG :)

The freeze in VLC comes from VLC internal splitter and frame 0 and 1 being different, then 1 & 2 having the dupe flag (so it freezes on frame 1, not knowing how to handle the dupe flag) ...

7ek

audyovydeo
7th September 2009, 14:44
Thanks 7ekno, I confirm my camera's a Panasonic.
Not so fast in liquidating vlc, however :

I have just gone through the steps with another clip :

001.MTS
> TSremux > 001_50fps.264 > mp4box > 001_50fps.mp4
> TSremux > 001_25fps.264 > mp4box > 001_25fps.mp4
.............................................> mkvmerge > 001_50fps.mkv
.............................................> mkvmerge > 001_25fps.mkv

the source file and 001_25fps.mkv play back correctly with VLC *and* MPC-HC.

so, I suspect more a signaling flag problem than a VLC prob.

??
audyovydeo