VideoHelp Forum




+ Reply to Thread
Results 1 to 15 of 15
  1. Member
    Join Date
    Mar 2010
    Location
    Slovenia
    Search Comp PM
    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
    Quote Quote  
  2. Member
    Join Date
    Sep 2007
    Location
    Europe
    Search PM
    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).
    Quote Quote  
  3. Member
    Join Date
    Mar 2010
    Location
    Slovenia
    Search Comp PM
    Thank you for the reply!

    I don't know so much about the command for ffmpeg, soo can you please tell me step by step how to do this?
    Quote Quote  
  4. Member
    Join Date
    Sep 2007
    Location
    Europe
    Search PM
    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?
    Quote Quote  
  5. Member
    Join Date
    Mar 2010
    Location
    Slovenia
    Search Comp PM
    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
    Quote Quote  
  6. Member
    Join Date
    Mar 2010
    Location
    Slovenia
    Search Comp PM
    In a way it must go. Because I have found somewhere an example in that it works.
    Quote Quote  
  7. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Originally Posted by lusky View Post
    In a way it must go. Because I have found somewhere an example in that it works.
    Where is that example?
    Quote Quote  
  8. Member
    Join Date
    Mar 2010
    Location
    Slovenia
    Search Comp PM
    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.
    Quote Quote  
  9. Member
    Join Date
    Mar 2010
    Location
    Slovenia
    Search Comp PM
    Can somebody please help me?
    Would be very grateful
    Quote Quote  
  10. Member
    Join Date
    Mar 2010
    Location
    Slovenia
    Search Comp PM
    Thank you!
    That's a good program
    Quote Quote  
  11. Member
    Join Date
    Mar 2010
    Location
    Slovenia
    Search Comp PM
    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.
    Quote Quote  
  12. Member
    Join Date
    Mar 2010
    Location
    Slovenia
    Search Comp PM
    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.
    Quote Quote  
  13. Member
    Join Date
    Sep 2007
    Location
    Europe
    Search PM
    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
    This is the output as reported by MediaInfo...

    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
    MPCHC can play them both but you have to select it at the "Navigate" menu as "Video angle" and 'Audio language".
    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.
    Quote Quote  
  14. Member
    Join Date
    Mar 2010
    Location
    Slovenia
    Search Comp PM
    Thank you very much. That works wery well
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!