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:
Here is the output I get frome FFMPEG:Code:ffmpeg -i <video file> -i <DVB file> -f mpegts -c:v copy -c:a copy -c:s copy -copyts <output file>
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!
+ Reply to Thread
Results 1 to 12 of 12
-
-
Retry with
Code:ffmpeg -i <video file> -i <DVB file> -c:v copy -c:a copy -c:s copy <output file>
-
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>
-
Dvd subs are normally split into 2 files, an idx and a sub file.
Try loading the idx file at <DVB file>. -
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:
[Attachment 78890 - Click to enlarge] -
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.
-
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
Code:ffmpeg -i VideoAudioFile.mkv -map 0 -c copy outputfile.ts
-
Unfortunately that does not help me, file needs to be .ts with DVB sub.
-
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>
Similar Threads
-
Issues saving AmarecTV video file to MP4 error about output format 738x553
By MrKool in forum Video ConversionReplies: 2Last Post: 22nd Jul 2023, 18:31 -
Why is Muxing necessary if I can just convert an MKV file to MP4?
By SilentPlanet in forum Newbie / General discussionsReplies: 23Last Post: 21st Sep 2021, 00:02 -
Why does muxing a video stream into a MKV file change that stream?
By 4L7zHhiyQO3Thui6 in forum Video ConversionReplies: 14Last Post: 11th Mar 2021, 03:45 -
Spreadsheet to aid batch muxing video and subtitles file in mkvmerge
By aspenx in forum Video ConversionReplies: 4Last Post: 16th Mar 2020, 12:16 -
Muxing 5.1 ac3 file from DVD into MP4 HD File
By tom z in forum AudioReplies: 2Last Post: 12th Jul 2019, 20:31