I tried to find a solution for multiplexing different inputs (ts) into one MPTS, so that can be used as input for DVB-T modulator. Basically, what I want is to select certain TS provided by satellite receiver, repack them into one MPTS and send to the modulator. Currently, I have managed to do it with one stream, using following command:
~/DATVRelease/ffmpeg \
-re -i URL_SINGLE_INPUT_TS_STREAM -vcodec copy -acodec copy \
-f mpegts -mpegts_original_network_id 1 -mpegts_transport_stream_id 1 \
-mpegts_service_id 1 -mpegts_pmt_start_pid 1000 -mpegts_start_pid 1001 \
-metadata service_provider="YOUR CALL" \
-metadata service_name="N1 (ALEKSANDAR)" \
~/dvb/videots
where the videots is fifo pipe produced by mkfifo command. The following code produced the result on receiver side:
https://i.stack.imgur.com/BZugM.jpg
There is a -map function in ffmpeg where I can add multiple audio channels / or video channels, but they wont be on the receiver side detected as different services TV channels, because in my understanding the adequate PMT table must be created (iso13818)
The only open source I could find is this one http://www.scara.com/~schirmer/o/mplex13818/ , but I still wonder if ffmpeg could do this work for me?