Tell FFmpeg to generate two programs in the output MPTS. program title=ProgOne:st=0:st=1 -program ProgTwo:st=2:st=3 See the Advance options chapter of FFmpeg documentation and wiki for -map. Normally they correspond to the video and audio stream. Here we select the first and second streams for both files. Select the particular elementry streams you want to multiplex into the output MPTS. Select the source files which contains the elementary streams you want to multiplex into the output MPTS -map 0:0 -map 0:1 -map 1:0 -map 1:1 program title=ProgOne:st=0:st=1 -program title=ProgTwo:st=2:st=3 \īelowing is simple illustrations for every option. ![]() Here is the basic command to generate one MPEG2 TS file containing multiple programs. The only open source I could find is this one, but I still wonder if ffmpeg could do this work for me? 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 following code produced the result on receiver side: Where the videots is fifo pipe produced by mkfifo command. metadata service_name="N1 (ALEKSANDAR)" \ ![]() mpegts_service_id 1 -mpegts_pmt_start_pid 1000 -mpegts_start_pid 1001 \ f mpegts -mpegts_original_network_id 1 -mpegts_transport_stream_id 1 \ re -i URL_SINGLE_INPUT_TS_STREAM -vcodec copy -acodec copy \ Currently, I have managed to do it with one stream, using following command: ~/DATVRelease/ffmpeg \ Basically, what I want is to select certain TS provided by satellite receiver, repack them into one MPTS and send to the modulator. ![]() ![]() 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |