Avalpa Community

The place where we can talk freely about Avalpa product and services
It is currently Fri May 20, 2022 6:35 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Dec 23, 2013 10:01 pm 
Offline

Joined: Thu Dec 12, 2013 2:21 am
Posts: 1
Hello,

I would like to create a multi-program ts and I am evaluating open-caster to achieve the same. Using the tutorial samples, I could generate a 3 program ts file using the firstvideo.ts, secondvideo.ts and thirdvideo.ts. First of all, I am a newbie to dvb world and I am trying to learn the technology. Anyway, I am trying to generate a 2 program ts file from videos taken from youtube. Using ffmpeg, I first convert .mp4 files to ts files.

ffmpeg -i Bugs_Bunny.mp4 -an -vcodec mpeg2video -f mpeg2video -b 5000k -maxrate 5000k -minrate 5000k -bf 2 -bufsize 1835008 bugsbunny.mp2
esvideompeg2pes bugsbunny.mp2 > bugsbunny_video.pes
pesvideo2ts 2064 25 112 5270000 0 bugsbunny_video.pes > bugsbunny_video.ts

ffmpeg -i Bugs_Bunny.mp4 -ac 2 -vn -acodec mp2 -f mp2 -ab 128000 -ar 48000 bugsbunny_audio.mp2
esaudio2pes bugsbunny_audio.mp2 1152 48000 384 0 > bugsbunny_audio.pes
pesaudio2ts 257 1152 48000 384 0 bugsbunny_audio.pes > bugsbunny_audio.ts

ffmpeg -i Tom_Jerry.mp4 -an -vcodec mpeg2video -f mpeg2video -b 5000k -maxrate 5000k -minrate 5000k -bf 2 -bufsize 1835008 tomjerry.mp2
esvideompeg2pes tomjerry.mp2 > tomjerry_video.pes
pesvideo2ts 2064 25 112 5270000 0 tomjerry_video.pes > tomjerry_video.ts

ffmpeg -i Tom_Jerry.mp4 -ac 2 -vn -acodec mp2 -f mp2 -ab 128000 -ar 48000 tomjerry_audio.mp2
esaudio2pes tomjerry_audio.mp2 1152 48000 384 0 > tomjerry_audio.pes
pesaudio2ts 257 1152 48000 384 0 tomjerry_audio.pes > tomjerry_audio.ts

Using mplayer, I could see that ts files play with no errors. Now, the task is to multiplex them to get a 2-program ts. I modified the mptsconfig.py to have only two programs and I was able to multiplex bugsbunny video (and tomjerry) with the provided sample ts file.

tscbrmuxer b:5270000 bugsbunny_video.ts b:188000 bugsbunny_audio.ts b:2300000 secondvideo.ts b:188000 secondaudio.ts b:4000 mptspat.ts b:4000 mptspmt1.ts b:4000 mptspmt2.ts b:4000 mptsnit.ts b:4000 mptssdt.ts > bugsbunny_sample.ts

I could play using mplayer,
mplayer bugsbunny_sample.ts -tsprog 1
mplayer bugsbunny_sample.ts -tsprog 2

However, when I try the same for bugsbunny and tomjerry video, it is not working.
tscbrmuxer b:5270000 bugsbunny_video.ts b:188000 bugsbunny_audio.ts b:5270000 tomjerry_video.ts b:188000 tomjerry_audio.ts b:4000 mptspat.ts b:4000 mptspmt1.ts b:4000 mptspmt2.ts b:4000 mptsnit.ts b:4000 mptssdt.ts > bugsbunny_tomjerry.ts

I think I am not setting the bitrates properly and I don't understand how the bitrates are being set for non-video/non-audio files. Can someone please help me (and explain) in this regard? Sorry, if this question is very basic. Unfortunately, I don't want to spend lot of time in understanding opencaster at this moment.


Thanks a lot,
Krishnan


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group