Hello people!!! =)
Can somebody please help me?
I want to put together three or more .avi files and convert them to one .ts file.
I wnat to do something like this, but with three or more inputs:
ffmpeg -i test1.avi -i test2.avi -i test3.avi -vcodec mpeg2video -s 640x480 -b xxxxk -acodec ac3 -ab 192k -f mpegts output_file.ts
Something like this, but here is missing something, please supplemented it.
I want to do something like in digital television, where we have in one frekvenc more channels and we can switch between the channels.
I hope you understand me and I realy hope anyone can please please please help me
+ Reply to Thread
Results 1 to 15 of 15
-
-
You can't do this. It would mean you'd encode three mpeg2 streams in parallel at the same time. AFAIK there's not any encoder that can do this.
I think the procedure would be to encode avi 1, 2 and 3 separately and then mux it into a ts container. Perhaps then the FFmpeg -newvideo and -map commands allow to do this (I never tried). -
For encoding to separate mpeg2 streams you can use any good video converter,
https://www.videohelp.com/tools/sections/video-encoders-mpg-dvd
I have no experience with ts muxing. I even don't know if what you want is possible.
Perhaps someone else can give you some advice on that? -
I realy hope someone can help, because I have tryed so many thing and nothing work like I wont.
It hear so sympl but it isn't -
In a way it must go. Because I have found somewhere an example in that it works.
-
Finali I found it
, this is the link for it http://files.apek.si/SVN_MuxA_20100121.ts
Hope it helps you and can help me to do the same think. -
I have another question
Can someone please post me how to map(with command -map 0:0,....) three .avi files into one .avi file? Everything remains the same. I mean the video codec, audio codec, resolution,...
I have tray something but it doesn't work. -
Nobody know nothing about the mapping? Because I think that my problem can be resolved with mapping. But I don't know how it works. So can somebody tell me that with an example.
If something is not clear write me. -
OK... FFmpeg surprises me! It can encode multiple audio and video streams in parallel. Never tried it before because I never needed it.
Here's an example for two avi sources...
Code:ffmpeg.exe" -i "c:\clip1.avi" -i "c:\clip2.avi" -vcodec mpeg2video -aspect 4:3 -s 720x576 -r 25.000 -vb 4000000 -acodec mp2 -ab 192000 -ar 48000 -ac 2 -y "c:/out_clip.ts" -map 0:0 -map 0:1 -newvideo -newaudio -map 1:0 -map 1:1
Code:General ID : 1 Complete name : G:\test.ts Format : MPEG-TS File size : 40.6 MiB Duration : 44s 760ms Overall bit rate : 7 606 Kbps Video #1 ID : 256 (0x100) Menu ID : 1 (0x1) Format : MPEG Video Format version : Version 2 Format profile : Main@Main Format settings, BVOP : No Format settings, Matrix : Default Duration : 44s 280ms Bit rate mode : Variable Width : 720 pixels Height : 576 pixels Display aspect ratio : 4:3 Frame rate : 25.000 fps Standard : PAL Resolution : 8 bits Colorimetry : 4:2:0 Scan type : Progressive Video #2 ID : 258 (0x102) Menu ID : 1 (0x1) Format : MPEG Video Format version : Version 2 Format profile : Main@Main Format settings, BVOP : No Format settings, Matrix : Default Duration : 37s 800ms Bit rate mode : Variable Width : 720 pixels Height : 576 pixels Display aspect ratio : 4:3 Frame rate : 25.000 fps Standard : PAL Resolution : 8 bits Colorimetry : 4:2:0 Scan type : Progressive Audio #1 ID : 257 (0x101) Menu ID : 1 (0x1) Format : MPEG Audio Format version : Version 1 Format profile : Layer 2 Duration : 44s 760ms Bit rate mode : Constant Bit rate : 192 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Stream size : 1.02 MiB (3%) Audio #2 ID : 259 (0x103) Menu ID : 1 (0x1) Format : MPEG Audio Format version : Version 1 Format profile : Layer 2 Duration : 38s 520ms Bit rate mode : Constant Bit rate : 192 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Stream size : 903 KiB (2%) Menu ID : 4095 (0xFFF) Menu ID : 1 (0x1) List : 256 (0x100) (MPEG Video) / 257 (0x101) (MPEG Audio) / 258 (0x102) (MPEG Video) / 259 (0x103) (MPEG Audio) Service name : Service01 Service provider : FFmpeg Service type : digital television
Put some efforts in it and try it with three sources (add extra -i "source" and -newvideo -newaudio -map 2:0 -map 2:1 commands).
My experiment keeps in sync and doesn't show hic-ups but there's no guarantee it succeeds in any case.Last edited by Chris K; 31st Mar 2010 at 10:09.
Similar Threads
-
How to get output file size before converting a file using ffmpeg?
By hayden in forum ProgrammingReplies: 1Last Post: 26th Feb 2012, 07:04 -
Streaming separate network audio and local video file inputs to a multicast address
By bwehrspann in forum Video Streaming DownloadingReplies: 0Last Post: 10th Feb 2010, 11:42 -
ffmpeg choppy audio from large avi but not small avi source file
By cybertheque in forum Capturing and VCRReplies: 9Last Post: 13th Oct 2008, 15:38 -
Merging audio file and video file using ffmpeg
By suresh3484 in forum ffmpegX general discussionReplies: 0Last Post: 27th May 2008, 03:05 -
HP m7760n video inputs ~ how do I get these inputs to work?
By FTLOSM in forum Newbie / General discussionsReplies: 6Last Post: 22nd Sep 2007, 19:19