VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. I am now doing a video project which is aimed to convert DVB TS files to MP4 file.
    Since the recorded ts files from DVB device of TV-signals sometimes get "bad" frames (that is, somtimes no udp data from device at a period of time). However the recorded ts file has the correct timestamp data and after the "bad" data the video frame will match with the exact timeline.

    The problem is after i convert the ts file to mp4 using ffmpeg, the mp4 file will "delete" the bad data and this cause the timeline cannot match.
    is there any way to preserve the "bad" data in the mp4 file to ensure the same timeline as in the ts file?
    Thanks,
    Quote Quote  
  2. Have you tried with mp4box ? Or demuxing the streams first with TSMuxer ? Or converting to MKV with MKVMerge ? Or converting to either container with Avidemux ?
    Quote Quote  
  3. Thanks for response. Is there any instructions?
    Quote Quote  
  4. Member netmask56's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Search Comp PM
    Take a look at TSDoctor - not free but worth it if you are doing it on a regular basis.
    SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 11 Professional, QNAP NAS TS851
    Quote Quote  
  5. Thanks for response. Is there any instructions?
    TSMuxer has a GUI so it should be straightforward. (Just drag and drop the file, select “Demux” and run. Rename the output with _tsmuxer so you can know later on which file was created with what tool, if one of these methods happens to do the trick.)

    MPlayer is another tool that can demux video files, it's usually less picky (works with many formats and corrupted or non-standard files).

    Code:
    mplayer "filename.ts" -dumpvideo -dumpfile "filename_mplayer.264"
    mplayer "filename.ts" -dumpaudio -dumpfile "filename_mplayer.aac"
    (Quotation marks are required if there are spaces in the path of file name. Likewise, if you have to specify the path to mplayer.exe or another CLI tool you have to use quotation marks if there's any space in the path : "C:\Program Files\mplayer.exe")

    Basic command for MP4Box is :
    Code:
    mp4box -add "filename.ts" -new "filename_mp4box.mp4"
    (Other parameters can be found in the included help ( mp4box -h ) or on various forum threads.)

    If you demuxed the file with TSMuxer (or MPlayer) :
    Code:
    mp4box -add "video.264" -add "audio.aac" -new "filename_mp4box.mp4"
    MKVMerge also has a GUI (MKVToolNix), just drag and drop either the original MP4 or the demuxed streams, set the framerate and other parameters if required, and run.

    Avidemux also has a GUI. Drag and drop, select "copy" for video and audio, try MP4 and MKV for the container.

    Those are the only methods I know that wouldn't imply to completely re-encode the files. Maybe someone will come up with others.
    Last edited by abolibibelot; 30th Aug 2016 at 19:14.
    Quote Quote  



Similar Threads

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