h264 mkv to .ts conversion problems.

*nix specific usage questions
pcboy
New Cone
New Cone
Posts: 2
Joined: 01 Apr 2008 18:33

h264 mkv to .ts conversion problems.

Postby pcboy » 01 Apr 2008 18:45

Hi.

I've a freebox and some HD mkv (h264 + AC3 streams).
I know that freebox could only play h264 streams if they are in a .ts file.
So i've done that:

Code: Select all

vlc -v2 File.mkv --sout file/ts://File.ts
But. During the vlc conversion, I can see these warnings:

Code: Select all

[00000294] mux_ts private warning: packet with too strange dts (dts=1207067960982460,old=1207067961023460,pcr=1207067961023460) [00000294] mux_ts private warning: packet with too strange dts (dts=1207067976080460,old=1207067976122460,pcr=1207067976122460) [00000294] mux_ts private warning: packet with too strange dts (dts=1207067977164460,old=1207067977206460,pcr=1207067977206460) [00000294] mux_ts private warning: packet with too strange dts (dts=1207068016787460,old=1207068016829460,pcr=1207068016829460) [00000294] mux_ts private warning: packet with too strange dts (dts=1207068017872460,old=1207068017914460,pcr=1207068017914460) [00000294] mux_ts private warning: packet with too strange dts (dts=1207068018372460,old=1207068018414460,pcr=1207068018414460) [00000294] mux_ts private warning: packet with too strange dts (dts=1207068018831460,old=1207068018873460,pcr=1207068018873460) [00000294] mux_ts private warning: packet with too strange dts (dts=1207068019165460,old=1207068019206460,pcr=1207068019206460) [00000294] mux_ts private warning: packet with too strange dts (dts=1207068022043460,old=1207068022084460,pcr=1207068022084460) [00000294] mux_ts private warning: packet with too strange dts (dts=1207068022335460,old=1207068022376460,pcr=1207068022376460) [00000294] mux_ts private warning: packet with too strange dts (dts=1207068022585460,old=1207068022627460,pcr=1207068022627460) [...]
When I play the .ts file with mplayer, I can see these errors :

Code: Select all

[h264 @ 0x8811f40]warning: first frame is no keyframe [h264 @ 0x8811f40]reference picture missing during reorder [h264 @ 0x8811f40]reference picture missing during reorder [h264 @ 0x8811f40]reference picture missing during reorder [h264 @ 0x8811f40]reference picture missing during reorder [h264 @ 0x8811f40]reference picture missing during reorder [h264 @ 0x8811f40]reference picture missing during reorder [h264 @ 0x8811f40]reference picture missing during reorder [h264 @ 0x8811f40]reference picture missing during reorder [h264 @ 0x8811f40]reference picture missing during reorder [h264 @ 0x8811f40]reference picture missing during reorder [...]
The file plays fine, but there is a lot of poor frames, with a lot of macro-blocks. It alternates, very good HD frames, and very bad and malformed frames. It's like the file is not good.
I've tested the conversion with a lot of different HD mkv movies (which have 100% good frames when I play them), and it's the same.
On my freebox, it's like with mplayer, a lot of bad formed frames.
It's a problem with the vlc conversion, but where ?


Thanks for your help.


PS:
Gentoo 2.6.23-hardened-r8
Vlc compiled with these USEs flags:
X a52 aalib alsa cdda cddb daap dvb dvd fbcon flac gnome httpd libcaca live matroska mp3 mpeg ncurses ogg opengl optimisememory png rtsp stream svg theora truetype v4l vcd vorbis win32codecs wxwindows x264 xinerama xml xv

vlc-0.8.6e-r1
media-video/ffmpeg-0.4.9_p20070616 (with these USEs: X a52 aac encode imlib ogg theora truetype v4l vorbis x264 xvid zlib)

pcboy
New Cone
New Cone
Posts: 2
Joined: 01 Apr 2008 18:33

Re: h264 mkv to .ts conversion problems.

Postby pcboy » 16 Apr 2008 12:47

Ok, thanks for the answer.

If you want to convert your HD mkv files to .ts on Linux, look at this page: http://pcboy.info/index.php?target=news ... 00907&id=6

To put it in a nutshell, download http://pcboy.info/files/mkv2tsLinux.tar.gz , extract it, and run ./mkv2tsLinux.sh Sample.mkv Sample.ts .
You need to have wine on your system.


Goodbye.
Maybe VLC will be one day capable to do that without any problem.
Last edited by pcboy on 29 Aug 2009 15:26, edited 2 times in total.

Ux64
Blank Cone
Blank Cone
Posts: 42
Joined: 17 Nov 2007 18:00
Operating System: Ubuntu 64 bit

Re: h264 mkv to .ts conversion problems.

Postby Ux64 » 20 Apr 2008 15:34

Thanks. I'll have to try this. Because h264 playing with VLC doesn't work properly.

viewtopic.php?f=13&t=45546&p=145181&hil ... 64#p145181

Harl
New Cone
New Cone
Posts: 7
Joined: 19 Sep 2008 22:00

Re: h264 mkv to .ts conversion problems.

Postby Harl » 12 Oct 2008 20:55

I have exactly the same problem. I want vlc to mux from mkv to transport stream - audio transcoding to mpeg, no video transcoding, keep original h264. The result is a mess.
Is this going to be fixed ?


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 8 guests