VideoHelp Forum




+ Reply to Thread
Results 1 to 21 of 21
  1. Is there a demux that generates .m4v instead of .h264 file? There are muxer that can do the reverse but they don't demux back to m4v.

    Thanks
    Quote Quote  
  2. m4v = renamed mp4 file
    -> you could i.e.
    1. use ffmpeg to directly multiplex mts to mp4
    2. extract the raw streams with ffmpeg or tsMuxeR and then mux the output with MP4Box
    Quote Quote  
  3. I'd probably do it the "long way" using the tools I already have installed.
    MTS to MKV using MKVMergeGUI, then MKV to MP4 using My MP4Box GUI.
    Quote Quote  
  4. txMuxeR demux to .H264 and .AC3.

    I only need the video stream in .m4v for authoring. Would MP4Box be able to do that?

    Thanks
    Quote Quote  
  5. Yes, mp4box can multiplex H.264 content into an mp4 container.
    Quote Quote  
  6. The m2ts/ts is produced by using VideoRedo to stitch 2 m2ts files together. I've tried to import it into Encore and it says the encoder is not available. I was hoping demux-and-convert-to-m4v will solve the problem. Will give it a try.

    Thanks
    Quote Quote  
  7. Why do you need m4v? Encore will accept h264 or 264 elementary stream. Or just rename the extension

    But if the original video wasn't blu-ray compliant to begin with (and processing in videoredo won't change that), encore should re-encode it
    Quote Quote  
  8. Encore complains about the H264 file that VideoRedo demuxed (about encoder/codec). If I rename it to .m4v, it hangs.

    I used My MP4Box GUI since I am not good at command lines.

    The result .264 file can be imported into Encore. But it's recognized as audio file and untranscoded. Renaming to .m4v, same result.

    And I can't get My MP4Box GUI to mux -- single h264 file or adding ac3 audio does not make difference as clicking on Mux button results in nothing.

    Apparently something is not right. What should command line look like?

    Thanks
    Quote Quote  
  9. Test if the files import into encore ok before you use videoredo? or only after videoredo processing does it become b0rked ?

    I've never seen the "encoder not available" message - is this a registered version? Sometimes there are limitations in trial versions

    What is the original source m2ts from?
    Quote Quote  
  10. Code:
    MP4box --add "Path to RAW .264 file" -brand avc -new "Path to output .m4v/mp4 file"
    there are also options to set the Frame rate and the pixel aspect ratio, see: http://gpac.wp.mines-telecom.fr/mp4box/mp4box-documentation/
    Quote Quote  
  11. The original m4v imports fine in Encore. VideoRedo is used to replace a short segment in the original. The resulting file fails to import: .m2ts requires transcoding and .h264 complains about encoder. This is not a trial version -- I don't think Encore has a trial version.

    Is there an option to pick the ending frame (not just second)?

    Thanks
    Quote Quote  
  12. It took MP4Box hours but it finally failed with the error below. I'd need to go back to create the stream another time.

    [MPEG-2 TS Import] Error adding sample: Bad Parameter (93/100)
    [MPEG-2 TS Import] Error adding sample: Bad Parameter (94/100)
    [MPEG-2 TS Import] Error adding sample: Bad Parameter
    [MPEG-2 TS] Invalid section start (@ptr_field=103, @data_size=78)
    [MPEG-2 TS] Creating table 4 17335
    [MPEG-2 TS] corrupted section (CRC32 failed)
    [MPEG-2 TS] Creating table 179 0=================== | (97/100)
    Error importing video.m2ts#video: Bad Parameter
    Quote Quote  
  13. It seems like videoredo is causing the problems

    Maybe you should try something else like solveigMM video splitter

    Or cut & join on keyframes with tssniper or tsmuxer (by timecodes)
    Quote Quote  
  14. also, are you feeding MP4Box with the m2ts file? (I thought you wanted to put a raw stream into the container,..)
    Quote Quote  
  15. I had to put 2 video together, essentially replacing a small piece in a long sequence.

    tssniper is not working on my machine. I can post the error later.

    tsmuxer does not have frame accuracy.

    solveigMM is expensive.

    I thought MP4Box can take tracks out of m2ts. If not, I can extract .h264 with tsMuxer.

    Thanks
    Quote Quote  
  16. MP4Box successfully converted to m4v file. Unfortunately, Encore considered it untranscoded.

    From MediaInfo, I can see the following difference b/w the 2 files.

    The most glaring thing is the fps is now at 25. The bit rate is also wrong (should not be there at all).

    How could I correct this?

    Thanks

    ==== Original
    Format : AVC
    Format/Info : Advanced Video Codec

    Video
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 4 frames
    Bit rate mode : Variable
    Maximum bit rate : 35.0 Mbps
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate : 29.970 fps
    Standard : NTSC
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Interlaced
    Scan order : Top Field First
    Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
    Transfer characteristics : BT.709-5, BT.1361
    Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

    ==== New
    Format : avc
    Codec ID : avc
    File size : 11.4 GiB
    Duration : 3h 26mn
    Overall bit rate : 7 906 Kbps


    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 4 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 3h 26mn
    Bit rate mode : Variable
    Bit rate : 7 905 Kbps
    Maximum bit rate : 35.0 Mbps
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 25.000 fps
    Original frame rate : 29.970 fps
    Standard : NTSC
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Interlaced
    Scan order : Top Field First
    Bits/(Pixel*Frame) : 0.152
    Stream size : 11.4 GiB (100%)
    Title : Imported with GPAC 0.4.6-DEV (internal rev. 5)
    Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
    Transfer characteristics : BT.709-5, BT.1361
    Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
    Last edited by cheerful; 7th Jun 2012 at 21:11.
    Quote Quote  
  17. you can use -fps

    if you don't specify an fps when muxing elementary streams, 25 is assumed

    http://gpac.wp.mines-telecom.fr/mp4box/mp4box-documentation/
    Quote Quote  
  18. I agree + the other infos are there because the stream is now in an mp4 container which provides additional data in the headers. (mediainfo only provides data from the headers)
    But I doubt any of these has anything to do with encode not accepting the stream,... has encoder may be problems with interlaced avc streams?
    Quote Quote  
  19. Used the -fps 29.970 switch. The result file shown in MediaInfo as

    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 4 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 2h 51mn
    Bit rate mode : Variable
    Bit rate : 9 477 Kbps
    Maximum bit rate : 35.0 Mbps
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 29.970 fps
    Standard : NTSC
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Interlaced
    Scan order : Top Field First
    Bits/(Pixel*Frame) : 0.152
    Stream size : 11.4 GiB (100%)

    However, when imported, it still requires transcoding. It's shown in Encore as 1920x1080 at 14.99 fps.

    So I thought maybe it's matter how fps is counted when interlaced. So I did it again with -fps 59.940.

    Frame rate mode : Constant
    Frame rate : 59.940 fps
    Original frame rate : 29.970 fps

    In Encore, it's shown as 29.970. Yet, it still requires transcoding.

    Who could be missing?

    Thanks
    Last edited by cheerful; 8th Jun 2012 at 19:53.
    Quote Quote  
  20. It could be many things. Ask in the videoredo forum . Since the export had problems, it really seems to be the culprit. Re-wrapping it or doing anything else to it probably won't change anything

    Or try SolveigMM trial

    It might be buffer underrun (e.g. if you join or edit 2 VBR videos, there is a chance it is no longer blu-ray compliant)
    Quote Quote  
  21. Both are VBR.

    I tried to use SolveigMM. It can't choose segments to join, only full files. So I first had to save the segments from file A. It was able to cut out the piece to replace and save A1 and A2.

    Then I found A1 can't import into Encore. Upon close look, its end point is not a I-frame (K-frame in SolveigMM). I'd think cut can end at any frame. So I move the cut end to an K-frame. Now A1 imports just fine into Encore.

    Does anyone if cut can end at non-I-frame?

    Bad news is joining is failing. I will open a separate thread as the subject has changed.

    Thanks
    Last edited by cheerful; 9th Jun 2012 at 20:26.
    Quote Quote  



Similar Threads

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