VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Hello,

    i have the following problem. my tv-harddisk-recorder (kathrein 923) saves files in .ts format (with h264 codec). But as you can imagine, are there sometimes problems in the connection over satellite when it saves the file. (so the file has some picture or audio missings)

    So here is the problem. I want to decode my .ts files to put in on DVD. But the.ts files seem to be buggy from the recorder.
    So i did the way over terminal with avconv.

    1. avconv -ss 00:34:08 -i file.ts -target pal-dvd -target pal-dvd -t 1:15:00 -map 0:0 -map 0:1 -acodec copy file.vob
    So, i am doing h264 to mpeg2 stream and the audio is an mp2 192kbit stream which i copy
    Alternatives are, to use the ac3 stream but i tested a lot of constellations.

    When i did this and use a dvdautorig software (dvdstyler, devede, dvdauthor gui) the software cancels with
    ERR: Cannot infer pts for VOBU if there is no audio or video and it is the
    ERR: first VOBU.

    2. The problem seems to be the buggy fle. Because when i demux the video to mpeg2 and the audio seperate mp2 and put it then in the tool (which it puzts together again), i get no errors.
    The problem here is, that the video to audio is not synchron

    So when i am doing the first, the file sounds good and synchron, but i can not build an dvd.
    Doing the second, i got the dvd but not synchron.

    Can you give me an advice what i should or could do, to solve the problem.

    If you need more information, please say it to me. (i didnt want to load every debug info in my first post)

    Thanks in advance
    Marcus
    Quote Quote  
  2. hello again, just got the time to pick up everything, so here are the different 2 ways.
    The First which is not working but the file is synchron, and the second which is working but is not synchron:

    ---> So first way, just doing conversion of the file to pal-dvd
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    C:\Users\htpzc\Videos>C:\Users\htpzc\Downloads\lib av-win64-20121110\libav-win64-20121110\usr\bin\avconv.exe -i deichkin.ts -t 00:01:00 -target pal-dvd outfile1.vob
    avconv version v9_beta2-198-g4b60fac, Copyright (c) 2000-2012 the Libav developers
    built on Nov 10 2012 08:44:17 with gcc 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5)
    [h264 @ 00000000017566C0] non-existing PPS referenced
    [h264 @ 00000000017566C0] non-existing PPS 0 referenced
    [h264 @ 00000000017566C0] decode_slice_header error
    [h264 @ 00000000017566C0] no frame!
    [NULL @ 00000000017585A0] start time is not set in estimate_timings_from_pts
    [NULL @ 000000000175A4A0] start time is not set in estimate_timings_from_pts
    [mpegts @ 0000000001707FE0] PES packet size mismatch
    Last message repeated 3 times
    Guessed Channel Layout for Input Stream #0.1 : stereo
    Guessed Channel Layout for Input Stream #0.2 : stereo
    Input #0, mpegts, from 'deichkin.ts':
    Duration: 02:18:48.27, start: 66086.736078, bitrate: 10158 kb/s
    Program 28306
    Program 28307
    Program 28308
    Program 28309
    Program 28310
    Program 28311
    Program 28325
    Stream #0.0[0x157d]: Video: h264 (High), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0.1[0x157e](deu): Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.2[0x157f](mis): Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.3[0x1580](deu): Subtitle: [6][0][0][0] / 0x0006
    Stream #0.4[0x1582](deu): Audio: ac3, 48000 Hz, stereo, s16, 448 kb/s
    Stream #0.5[0x87b]: Data: [11][0][0][0] / 0x000B
    Stream #0.6[0x942]: Data: [5][0][0][0] / 0x0005
    Program 28326
    Program 28327
    Program 28328
    Program 28329
    Program 28330
    Program 28331
    Program 28385
    Program 28394
    Program 28395
    Program 28396
    Output #0, dvd, to 'outfile1.vob':
    Metadata:
    encoder : Lavf54.19.0
    Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, 6000 kb/s, 90k tbn, 25 tbc
    Stream #0.1(deu): Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s
    Stream mapping:
    Stream #0:0 -> #0:0 (h264 -> mpeg2video)
    Stream #0:1 -> #0:1 (mp2 -> ac3)
    Press ctrl-c to stop encoding
    [mpeg2video @ 0000000001732580] rc buffer underflow
    frame= 1500 fps= 93 q=2.0 Lsize= 48170kB time=60.02 bitrate=6574.8kbits/s
    video:43974kB audio:3278kB global headers:0kB muxing overhead 1.943675%

    ---> Then starting the dvdauthor (the xml and menu is a default one and i just put in the filename of the vob)
    ---> The warnings are shortened!
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    C:\Program Files (x86)\DVDStyler\bin>dvdauthor -o "C:\Users\htpzc\AppData\Local\Temp\dvd-out" -x "C:\Users\htpzc\AppData\Local\Temp\dvd-tmp\dvdauthor.xml"
    DVDAuthor::dvdauthor, version 0.7.0.
    Build options: gnugetopt iconv freetype fribidi fontconfig
    Send bug reports to <dvdauthor-users@lists.sourceforge.net>

    INFO: default video format is PAL
    INFO: Converting filenames to cp1252
    INFO: dvdauthor creating VTS
    STAT: Picking VTS 01

    STAT: Processing C:\Users\htpzc\AppData\Local\Temp\dvd-tmp\menu1-0.mpg...

    INFO: Video pts = 0.500 .. 1.020
    INFO: Audio[0] pts = 0.500 .. 0.980
    INFO: Audio[32] pts = 0.500 .. 0.500
    INFO: Audio[33] pts = 0.500 .. 0.500
    STAT: VOBU 2 at 0MB, 1 PGCs
    CHAPTERS: VTS[1/1] 0.000
    INFO: Generating VTSM with the following video attributes:
    INFO: MPEG version: mpeg2
    INFO: TV standard: pal
    INFO: Aspect ratio: 16:9
    INFO: Resolution: 720x576
    INFO: Audio ch 0 format: ac3/2ch, 48khz drc, 'de'

    STAT: Processing C:\Users\htpzc\Videos\outfile1.vob...
    WARN: Discontinuity of 2 in audio channel 0; please remultiplex input.
    WARN: Previous sector: 1.012 - 1.044
    WARN: Current sector: 1.044 - 1.076
    WARN: Audio pts for channel 0 moves backwards by 2; please remultiplex input.
    WARN: Previous sector: 2.004 - 2.036
    WARN: Current sector: 2.036 - 2.068
    WARN: Discontinuity of 2 in audio channel 0; please remultiplex input.
    WARN: Previous sector: 3.508 - 3.540
    WARN: Current sector: 3.540 - 3.572
    WARN: Audio pts for channel 0 moves backwards by 2; please remultiplex input.
    WARN: Previous sector: 4.596 - 4.628
    WARN: Current sector: 4.628 - 4.660
    ...
    ...
    ...
    WARN: Discontinuity of 2 in audio channel 0; please remultiplex input.
    WARN: Previous sector: 59.348 - 59.380
    WARN: Current sector: 59.380 - 59.412
    WARN: Audio pts for channel 0 moves backwards by 2; please remultiplex input.
    WARN: Previous sector: 60.212 - 60.244
    WARN: Current sector: 60.244 - 60.276
    ERR: Cannot infer pts for VOBU if there is no audio or video and it is the
    ERR: first VOBU.


    --------------------------------------------------------------------------------------------------------------------------------------------------------
    ---> You see, the audio seems to be not fine, but there only warnings. The Error is at the end
    ---> NOT WORKING
    --------------------------------------------------------------------------------------------------------------------------------------------------------

    ---> 2. Doing it the demux way
    ---> First the video (i shortened the output, so only the ouput message)
    --------------------------------------------------------------------------------------------------------------------------------------------------------

    C:\Users\htpzc\Downloads\libav-win64-20121110\libav-win64-20121110\usr\bin\avconv.exe -i deichkin.ts -t 00:01:00 -target pal-dvd -map 0:0 outfile2.mpeg
    ...
    Output #0, dvd, to 'outfile2.mpeg':
    Metadata:
    encoder : Lavf54.19.0
    Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, 6000 kb/s, 90k tbn, 25 tbc
    Stream mapping:
    Stream #0:0 -> #0:0 (h264 -> mpeg2video)
    Press ctrl-c to stop encoding
    [mpeg2video @ 000000000412CAE0] rc buffer underflow
    frame= 1500 fps=104 q=2.0 Lsize= 44836kB time=60.72 bitrate=6049.0kbits/s
    video:43974kB audio:0kB global headers:0kB muxing overhead 1.960636%

    ---> Then the audio (i shortened the output, so only the ouput message)
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    C:\Users\htpzc\Downloads\libav-win64-20121110\libav-win64-20121110\usr\bin\avconv.exe -i deichkin.ts -t 00:01:00 -map 0:1 -acodec copy outfile3.mp2
    ...
    Output #0, mp2, to 'outfile3.mp2':
    Metadata:
    encoder : Lavf54.19.0
    Stream #0.0(deu): Audio: mp2, 48000 Hz, stereo, 192 kb/s
    Stream mapping:
    Stream #0:1 -> #0:0 (copy)
    Press ctrl-c to stop encoding
    size= 1405kB time=60.02 bitrate= 191.7kbits/s
    video:0kB audio:1405kB global headers:0kB muxing overhead 0.000000%

    ---> Then putting them together in our vob file
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    C:\Users\htpzc\Videos>C:\Users\htpzc\Downloads\lib av-win64-20121110\libav-win64-20121110\usr\bin\avconv.exe -i outfile2.mpeg -i outfile3.mp2 -target pal-dvd outfile4.vob
    avconv version v9_beta2-198-g4b60fac, Copyright (c) 2000-2012 the Libav developers
    built on Nov 10 2012 08:44:17 with gcc 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5)
    [mpeg @ 000000000161FA80] max_analyze_duration reached
    Input #0, mpeg, from 'outfile2.mpeg':
    Duration: 00:00:59.96, start: 1.760000, bitrate: 6125 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    [mp3 @ 000000000166D0E0] max_analyze_duration reached
    [mp3 @ 000000000166D0E0] Estimating duration from bitrate, this may be inaccurate
    Guessed Channel Layout for Input Stream #1.0 : stereo
    Input #1, mp3, from 'outfile3.mp2':
    Duration: 00:00:59.92, start: 0.000000, bitrate: 192 kb/s
    Stream #1.0: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
    Output #0, dvd, to 'outfile4.vob':
    Metadata:
    encoder : Lavf54.19.0
    Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, 6000 kb/s, 90k tbn, 25 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s
    Stream mapping:
    Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video)
    Stream #1:0 -> #0:1 (mp2 -> ac3)
    Press ctrl-c to stop encoding
    [mpeg2video @ 00000000040975A0] rc buffer underflow
    frame= 1500 fps=287 q=2.0 Lsize= 47586kB time=59.93 bitrate=6504.6kbits/s
    video:43397kB audio:3278kB global headers:0kB muxing overhead 1.952763%


    ---> And the last step -- the authoring with the new file
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    C:\Program Files (x86)\DVDStyler\bin>
    dvdauthor -o "C:\Users\htpzc\AppData\Local\Temp\dvd-out" -x "C:\Users\htpzc\AppData\Local\Temp\dvd-tmp\dvdauthor2.xml"
    DVDAuthor::dvdauthor, version 0.7.0.
    Build options: gnugetopt iconv freetype fribidi fontconfig
    Send bug reports to <dvdauthor-users@lists.sourceforge.net>

    INFO: default video format is PAL
    INFO: Converting filenames to cp1252
    INFO: dvdauthor creating VTS
    STAT: Picking VTS 01

    STAT: Processing C:\Users\htpzc\AppData\Local\Temp\dvd-tmp\menu1-0.mpg...

    INFO: Video pts = 0.500 .. 1.020
    INFO: Audio[0] pts = 0.500 .. 0.980
    INFO: Audio[32] pts = 0.500 .. 0.500
    INFO: Audio[33] pts = 0.500 .. 0.500
    STAT: VOBU 2 at 0MB, 1 PGCs
    CHAPTERS: VTS[1/1] 0.000
    INFO: Generating VTSM with the following video attributes:
    INFO: MPEG version: mpeg2
    INFO: TV standard: pal
    INFO: Aspect ratio: 16:9
    INFO: Resolution: 720x576
    INFO: Audio ch 0 format: ac3/2ch, 48khz drc, 'de'

    STAT: Processing C:\Users\htpzc\Videos\outfile4.vob...
    STAT: VOBU 96 at 44MB, 1 PGCs
    INFO: Video pts = 0.540 .. 60.540
    INFO: Audio[0] pts = 0.534 .. 60.470
    STAT: VOBU 100 at 46MB, 1 PGCs
    CHAPTERS: VTS[1/1] 0.000
    INFO: Generating VTS with the following video attributes:
    INFO: MPEG version: mpeg2
    INFO: TV standard: pal
    INFO: Aspect ratio: 16:9
    INFO: Resolution: 720x576
    INFO: Audio ch 0 format: ac3/2ch, 48khz drc, 'de'

    STAT: fixed 2 VOBUs
    STAT: fixed 100 VOBUs
    INFO: dvdauthor creating table of contents
    INFO: Scanning C:\Users\htpzc\AppData\Local\Temp\dvd-out/VIDEO_TS/VTS_01_0.IFO
    INFO: Creating menu for TOC

    STAT: Processing C:\Program Files (x86)\DVDStyler\data\empty_pal_ac3.mpg...
    WARN: unknown mpeg2 aspect ratio 1
    WARN: unknown mpeg2 aspect ratio 1
    WARN: unknown mpeg2 aspect ratio 1
    WARN: unknown mpeg2 aspect ratio 1
    WARN: unknown mpeg2 aspect ratio 1
    WARN: unknown mpeg2 aspect ratio 1
    WARN: unknown mpeg2 aspect ratio 1
    WARN: unknown mpeg2 aspect ratio 1
    WARN: unknown mpeg2 aspect ratio 1
    WARN: unknown mpeg2 aspect ratio 1

    INFO: Video pts = 0.184 .. 6.184
    INFO: Audio[0] pts = 0.184 .. 6.200
    STAT: VOBU 10 at 0MB, 1 PGCs
    CHAPTERS: VTS[1/1] 0.000
    INFO: Generating VMGM with the following video attributes:
    INFO: MPEG version: mpeg2
    INFO: TV standard: pal
    INFO: Aspect ratio: 16:9
    INFO: Resolution: 720x576
    INFO: Audio ch 0 format: ac3/2ch, 48khz drc, 'de'

    STAT: fixed 10 VOBUs


    -----------------------

    Hopefully you can help me how i can fix that.
    Thank you
    Marcus
    Quote Quote  
  3. Member
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Search PM
    Hi,

    Try running your .ts through MPEG2Repair before trying to burn to DVD. If that doesn't work, try HDTVtoMPEG2, then use the output file to burn the DVD.

    Hope this helps.
    Quote Quote  
  4. Erm, he said they're H264 not MPEG2

    The best way to "clean up" h264 .ts recordings is with VideoRedo H264 suite in my experiance. Don't know of any similar free tools for h264 as those for MPEG2.
    Quote Quote  
  5. hello again,

    so, i tested the tools which you said.
    mpeg2repair and hdtvtompeg2 did not work with the file.
    videoredo did the job good, fixed it and after that did a dvd conform file.

    but i wanted to know what the problem is. so i decided do install a linux on my system and work with the original libraries.
    and look, it worked. so i did a few tests and saw that the codec which you get for windows is not working fine with the files.

    So my result is: videoredo is a good tool (but it is commercial and realy expensive)
    Do it under linux and you get what you want

    Thank you for your help.
    You can close the thread or mark it as solved
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!