PDA

View Full Version : mkv2vob issues and ffmpeg issues


shon.miles@gmail.com
13th January 2008, 22:34
ffmpeg -r 25 -f h264 -i video.h264 -itsoffset 00:00:05.000 -f ac3 -i audio.ac3 -vcodec copy -acodec copy -f vob result.vob

I always get the same result, audio and no video, what am I doing wrong.

Here is the command I used to extract

mkvextract tracks video.mkv 3:video.h264 1:audio.ac3

Here is the mkvinfo for the video, what am I doing wrong, I have tried this with and without the itoffset for audio sync issue. I am trying manually because mkv2vob v1.4.1 is producing a vob that has audio about 5 seconds too early on some mkv files, and these files all play in sync on the PC in video player
------------------------------------------------------------
C:\Tools\mkv2vob v1.4\tools>mkvinfo video.mkv
+ EBML head
|+ Doc type: matroska
|+ Doc type version: 1
|+ Doc type read version: 1
+ Segment, size 8533376412
|+ Seek head (subentries will be skipped)
|+ EbmlVoid (size: 4025)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: libebml v0.7.7 + libmatroska v0.8.1
| + Writing application: mkvmerge v2.0.2 ('You're My Flame') built on Feb 21 20
7 23:40:55
| + Duration: 7831.440s (02:10:31.440000000)
| + Date: Wed Aug 08 17:53:58 2007 UTC
| + Segment UID: 0x8d 0x35 0xdd 0x5d 0xd3 0x01 0x80 0x64 0xa2 0x59 0x68 0xa2 0x
f 0x98 0xc4 0xa2
|+ Segment tracks
| + A track
| + Track number: 1
| + Track UID: 2942820745
| + Track type: audio
| + Enabled: 1
| + Default flag: 1
| + Forced flag: 0
| + Lacing flag: 1
| + MinCache: 0
| + Timecode scale: 1.000000
| + Max BlockAddition ID: 0
| + Codec ID: A_AC3
| + Codec decode all: 1
| + Default duration: 32.000ms (31.250 fps for a video track)
| + Language: eng
| + Audio track
| + Sampling frequency: 48000.000000
| + Channels: 6
| + A track
| + Track number: 2
| + Track UID: 3639997069
| + Track type: subtitles
| + Enabled: 1
| + Default flag: 0
| + Forced flag: 0
| + Lacing flag: 0
| + MinCache: 0
| + Timecode scale: 1.000000
| + Max BlockAddition ID: 0
| + Codec ID: S_TEXT/UTF8
| + Codec decode all: 1
| + Language: eng
| + A track
| + Track number: 3
| + Track UID: 1
| + Track type: video
| + Enabled: 1
| + Default flag: 1
| + Forced flag: 0
| + Lacing flag: 0
| + MinCache: 1
| + Timecode scale: 1.000000
| + Max BlockAddition ID: 0
| + Codec ID: V_MPEG4/ISO/AVC
| + Codec decode all: 1
| + CodecPrivate, length 172
| + Default duration: 40.000ms (25.000 fps for a video track)
| + Language: eng
| + Video track
| + Pixel width: 1920
| + Pixel height: 816
| + Interlaced: 0
| + Display width: 40
| + Display height: 17
|+ EbmlVoid (size: 1024)
|+ Cluster

jamos
16th January 2008, 00:54
ffmpeg -r 25 -f h264 -i video.h264 -itsoffset 00:00:05.000 -f ac3 -i audio.ac3 -vcodec copy -acodec copy -f vob result.vob

I always get the same result, audio and no video, what am I doing wrong.

Here is the command I used to extract

mkvextract tracks video.mkv 3:video.h264 1:audio.ac3

Here is the mkvinfo for the video, what am I doing wrong, I have tried this with and without the itoffset for audio sync issue. I am trying manually because mkv2vob v1.4.1 is producing a vob that has audio about 5 seconds too early on some mkv files, and these files all play in sync on the PC in video player
------------------------------------------------------------
C:\Tools\mkv2vob v1.4\tools>mkvinfo video.mkv
+ EBML head
|+ Doc type: matroska
|+ Doc type version: 1
|+ Doc type read version: 1
+ Segment, size 8533376412
|+ Seek head (subentries will be skipped)
|+ EbmlVoid (size: 4025)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: libebml v0.7.7 + libmatroska v0.8.1
| + Writing application: mkvmerge v2.0.2 ('You're My Flame') built on Feb 21 20
7 23:40:55
| + Duration: 7831.440s (02:10:31.440000000)
| + Date: Wed Aug 08 17:53:58 2007 UTC
| + Segment UID: 0x8d 0x35 0xdd 0x5d 0xd3 0x01 0x80 0x64 0xa2 0x59 0x68 0xa2 0x
f 0x98 0xc4 0xa2
|+ Segment tracks
| + A track
| + Track number: 1
| + Track UID: 2942820745
| + Track type: audio
| + Enabled: 1
| + Default flag: 1
| + Forced flag: 0
| + Lacing flag: 1
| + MinCache: 0
| + Timecode scale: 1.000000
| + Max BlockAddition ID: 0
| + Codec ID: A_AC3
| + Codec decode all: 1
| + Default duration: 32.000ms (31.250 fps for a video track)
| + Language: eng
| + Audio track
| + Sampling frequency: 48000.000000
| + Channels: 6
| + A track
| + Track number: 2
| + Track UID: 3639997069
| + Track type: subtitles
| + Enabled: 1
| + Default flag: 0
| + Forced flag: 0
| + Lacing flag: 0
| + MinCache: 0
| + Timecode scale: 1.000000
| + Max BlockAddition ID: 0
| + Codec ID: S_TEXT/UTF8
| + Codec decode all: 1
| + Language: eng
| + A track
| + Track number: 3
| + Track UID: 1
| + Track type: video
| + Enabled: 1
| + Default flag: 1
| + Forced flag: 0
| + Lacing flag: 0
| + MinCache: 1
| + Timecode scale: 1.000000
| + Max BlockAddition ID: 0
| + Codec ID: V_MPEG4/ISO/AVC
| + Codec decode all: 1
| + CodecPrivate, length 172
| + Default duration: 40.000ms (25.000 fps for a video track)
| + Language: eng
| + Video track
| + Pixel width: 1920
| + Pixel height: 816
| + Interlaced: 0
| + Display width: 40
| + Display height: 17
|+ EbmlVoid (size: 1024)
|+ Cluster


you have asked this question twice here. Are you saying it is not playing video on your ps3? by remuxing it into a vob it will not play on a pc, it will just play audio. It still should work on your ps3 if you have used mkvinfo to convert the lvl to 4.1 on the elementry video stream.

If you want to turn it into a mpeg2 that will play on your pc and your ps3 then I would just convert the video directly from the mkv

ffmpeg -i video.mkv -vcodec mpeg2video -sameq -acodec copy -f vob -copyts -y -f vob result.vob

where video.mkv should be changed to the name of your mkv file.

-copyts should fix your audio sync issue without having to manually pad it.
-sameq uses the same frame rate, etc. of the original video.

neuron2
16th January 2008, 01:03
@shon.miles@gmail.com

Stop cross-posting or strikes will follow.

http://forum.doom9.org/forum-rules.htm