Output Error Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument > ffmpeg.exe -i input.mp4 -map 0 -c:v copy -c:a copy -c:s srt output.mkv > ffmpeg.exe -i input.mp4 -map 0 -c copy -c:s srt output.mkv When I try to use either of the two commands below using "-map 0" just like I did when I remuxed the original MKV into an MP4, the commands fail and both result in the "Full Output" shown at the bottom. > ffmpeg.exe -i input.mp4 -c:v copy -c:a copy -c:s srt output.mkv > ffmpeg.exe -i input.mp4 -c copy -c:s srt output.mkv These two commands work, however, the output MKV only contains ONE of the TWO audio streams. However, if I omit "-map 0" from the command, it works but only ONE of the audio streams get copied to the output MKV file. The resulting output MP4 contains all the streams from the original MKV.īut if I try to remux the output MP4 into an MKV using the same command, but with a different codec for the subtitles (srt) and different file extension (mkv), I get an error. > ffmpeg.exe -i input.mp4 -map 0 -c copy -c:s mov_text output.mkv I was able to remux the MKV into an MP4 using this command. This step is causing you apparently all the troubles.I have an MKV file that contains 5 streams. Therefore in your case, the improvement would have been to drop off MKV. This way the video is passed bit-exact to the destination, the original audio and the subtitles are present, no intermediary codecs/containers/formats are used. subtitles are added during final muxing HDTV is passed to H264cutter (which works wonderful, despite come negative comments I've read) SDTV is parsed throuh ProjectX, which also is used to extract subtitles, also from HDTV files (I am currently working for another solution) copy the files (usually they are M2TS for HDTV and TS for SDTV) to the local HDD I also process HDTV, with a higher level of workmanship - I add subtitles and keep the original languages, not an easy task with the tools one has, and this is my workflow: While I fully agree with your goal, I still think your process can be improved. It accepts raw AVI (from avisynth mount) but as soon as any cuts are made it gets confused and frame order gets screwed up again.Īll I want to do is edit some videos together without re-encoding (until rendering of course). It doesn't accept MKV or TS, it supposedly accepts M2TS but it just freezes, it accepts MP4 but it seems to ignore the timecodes in the MP4 file so that's no good. It's only the fact that Vegas Pro is stupidly picky about its input formats that's causing these issues. I obviously delete the TS file once the MKV is made but I don't see why that's relevant: I can remux the MKV to TS and it plays fine. If no errors, mux to MKV using MKV Merge and copy MKV to archive. If there are errors, copy TS to archive. Record HD channel using MediaPortal to TS format (AVC / AC3) There are usually a couple of warnings but the way the file plays in Vegas Pro would suggest errors once a second at least, which is certainly not the case. Well TS-Doctor would've flagged up any errors. However, editing DOES NOT imply playback, just using it, and consequently the error correction algorithms are not applied. h264 file anyway.ĭon't confuse the things - even a bad stream can be played flawless if the error correction can correct the errors. That doesn't help because Vegas Pro doesn't read elementary streams. Keep the last H264 and the original audio (and of course the original MKV file). However, try to demux the TS back to elementar streams, that was my advice. I don't use Vegas for a long time, it's too complex for my simple jobs, but there should have been an option something like Lay Out Tracks Using Media Timecode or timestamps or similar.Īnd IIRC there is also a possibility to preview them in preferences or options or settings, you'll find it for sure. Is it even possible to get a working MP4 from an MKV like this? Maybe there's another remuxer I could try or there's some ffmpeg options that will help? This may result in incorrect timestamps in the output file. Non-monotonous DTS in output stream 0:0 previous: 3119681, current: 3119040 changing to 3119682. I get loads of warnings during the remuxing like this: For example, using this input line:įfmpeg -i "D:\input.mkv" -vcodec copy -acodec copy "D:\output.mp4" I'm using ffmpeg to remux and have tried a few different things (straight from MKV to MP4, from MKV to TS to MP4, MKV to elementary stream to MP4) but the resulting MP4 just doesn't play properly in MPC-HC, let alone within Vegas Pro (the frames jump around out-of-order). It seems MP4 is the best input format for it, and it works for some files, but I'm not having any joy remuxing some 1080i/25 TV recordings (AVC/AC3 in an MKV) into working MP4s with correct timestamps. I'm trying to use a video editor that doesn't support MKV and it really struggles with TS files too (Sony Vegas Pro).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |