VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Member
    Join Date
    May 2024
    Location
    Sweden
    Search PM
    So I have a .ts file and a converted .dvb sub file (.SRT TO .DVB) that I want to mux togheter using FFMPEG (latest version). The mux is a success and the file plays fine in VLC or other modern divce.However I have an older divce (around 10 yeras old) where playback has issues, whenever a line of subs is displayd the picture and and audio gets corrupted and frezzes up and as sson there are no lins everything looks good again and so on. Note that subs are displayd correctly and they are not affected by the issue, only picture and audio is.

    I have tried using diffrent command without any luck but here is the most basic command that should work:

    Code:
    ffmpeg -i <video file> -i <DVB file> -f mpegts -c:v copy -c:a copy -c:s copy -copyts <output file>
    Here is the output I get frome FFMPEG:

    Code:
    ffmpeg version 7.0-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers
      built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
      configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
      libavutil      59.  8.100 / 59.  8.100
      libavcodec     61.  3.100 / 61.  3.100
      libavformat    61.  1.100 / 61.  1.100
      libavdevice    61.  1.100 / 61.  1.100
      libavfilter    10.  1.100 / 10.  1.100
      libswscale      8.  1.100 /  8.  1.100
      libswresample   5.  1.100 /  5.  1.100
      libpostproc    58.  1.100 / 58.  1.100
    [mpegts @ 0000029209341000] stream 0 : no PTS found at end of file, duration not set
    Input #0, mpegts, from '\Tests\video.ts':
      Duration: 00:28:52.06, start: 0.980000, bitrate: 4992 kb/s
      Program 1
      Stream #0:0[0x1e1]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn
      Stream #0:1[0x1e2](swe): Audio: mp2 (mp3float) ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
    Input #1, mpegts, from 'ENG.dvb':
      Duration: 00:28:09.88, start: 0.160000, bitrate: 8 kb/s
      Program 1
        Metadata:
          service_name    : Service01
          service_provider: FFmpeg
      Stream #1:0[0x100](eng): Subtitle: dvb_subtitle (dvbsub) ([6][0][0][0] / 0x0006)
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Stream #0:1 -> #0:1 (copy)
      Stream #1:0 -> #0:2 (copy)
    Output #0, mpegts, to '\Tests\20735799_muxed.ts':
      Metadata:
        encoder         : Lavf61.1.100
      Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn
      Stream #0:1(swe): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
      Stream #0:2(swe): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Press [q] to stop, [?] for help
    [out#0/mpegts @ 000002920a155380] video:951379KiB audio:40595KiB subtitle:1389KiB other streams:0KiB global headers:0KiB muxing overhead: 3.385295%
    size= 1026992KiB time=00:27:25.74 bitrate=5112.1kbits/s speed=75.3x

    Can anyone help me out? I'm I missing something that is needed for older divaces (divece in question is a Samsung SMT-S5140 STB). Thx!
    Quote Quote  
  2. Retry with
    Code:
    ffmpeg -i <video file> -i <DVB file> -c:v copy -c:a copy -c:s copy <output file>
    You could also try mp4 or mkv as container, instead of ts.
    Quote Quote  
  3. Member
    Join Date
    May 2024
    Location
    Sweden
    Search PM
    Hi @ProWo,

    Didn't help, same result as before.

    I can add if I take a x.ts file that is playing fine on the old divce and just run it in FFMPEG with command below it will end up in same result, not playing well. So somthing FFMEPG does during the copy that is causing the issue.

    Code:
    ffmpeg -i <video file> -i <DVB file> -c copy <output file>
    Quote Quote  
  4. Dvd subs are normally split into 2 files, an idx and a sub file.
    Try loading the idx file at <DVB file>.
    Quote Quote  
  5. Member
    Join Date
    May 2024
    Location
    Sweden
    Search PM
    Subfile I have is a converted .srt into a mpeg-ts stream (compatibel with FFMPEG) with .dvb extention. I use a dedicated softwere for this conversion. So then I use FFMPEG to mux the files togheter. But I have also tryd using Subtitle Edit to convert det the .srt file to a idx and sub file but the oucome is the same.

    I have a friend that has access to Telestream Vantige (https://www.telestream.net/vantage/overview.htm) and when he mux the files togehetr the file is playing fine. So I am woundering what is FFMPEG doing that makes the file unplayable on the device.

    Added an image of how it looks like when its played on the divece and a line is dipslayed:
    Image
    [Attachment 78890 - Click to enlarge]
    Quote Quote  
  6. Have you tried mp4 instead of ts with the old device?
    Quote Quote  
  7. Member
    Join Date
    May 2024
    Location
    Sweden
    Search PM
    The device in question only supports .ts unfortunately. I'm currios why same files that are muxed with Telestream Vantage works but not with FFMPEG. Must be some settinge in FFMPEG that i'm missing.

    If I analyze the working file from Telestream Vantage and FFMPEG the main diffrence I can see is that Vantig: One audio frame in One PES Packet and FFMPEG: Five audio frames in One PES Packet. Could this be the issue? How do I set how manny frames there should be in one PES packet in FFMPEG?
    Last edited by Meta83; 7th May 2024 at 01:44.
    Quote Quote  
  8. I would suggest to add the dvdsub to mkv first and then remux the mkv to ts.
    Quote Quote  
  9. Member
    Join Date
    May 2024
    Location
    Sweden
    Search PM
    I tried it that way and got same result.

    First:
    Code:
    ffmpeg -i VideoAudioFile.ts -i DVBfile.dvb -c:v copy -c:a copy -c:s copy -copyts outputfile.mkv
    Then:
    Code:
    ffmpeg -i VideoAudioFile.mkv -map 0 -c copy outputfile.ts
    Quote Quote  
  10. Another way.
    Convert the DVD Subtitle to BR-PGS (sup) with BDSup2Sub, the mux the created sup file to ts with tsmuxer.
    Quote Quote  
  11. Member
    Join Date
    May 2024
    Location
    Sweden
    Search PM
    Unfortunately that does not help me, file needs to be .ts with DVB sub.
    Quote Quote  
  12. Member
    Join Date
    May 2024
    Location
    Sweden
    Search PM
    ok, so I found a command that almoste works

    Code:
    ffmpeg -i <video file> -i <DVB file> -map 0 -map 1 -flags +global_header -c:v libx264 -c:a copy -c:s copy -f tee "[bsfs/v=dump_extra=freq=keyframe]" -copyts <output file>
    But now the Audio is dropping out here and there, do you know what could be causing it?
    Quote Quote  



Similar Threads

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