VideoHelp Forum




+ Reply to Thread
Results 1 to 13 of 13
  1. Okay I have a strange issue and could use some help- probably an easy fix. I record xbox gameplay with a capture card. (elgato HD60 s). I also have a desktop microphone connected through an interface that I use to record my own voice while I'm playing. The software the capture card comes with (Elgato Game Capture HD) records the gameplay and my commentary as a .ts file (The TS file separates the gameplay audio and my commentary as separate tracks, 1 and 2 respectively). To edit the video I export it to MP4. (I use Power Director 18 for video editing). Game Capture HD software has built-in exporting- it exports the whole thing to a single MP4 file for me to use in POwerLink. The problem is, sometimes when I export the file, about half way through the video the audio disappears- It's just gone. (But when I play the pre-exported video in Game Capture HD it's there- everything is fine, and when I play the TS file everything is fine too (but I have to toggle between the two tracks- I cant hear them both at the same time)), PowerDirector does not accept TS files so I need another way to export it to MP4. Elgato support has told me the issue is not with my computer but with the built in export feature of their software and told me to try updating their software and make sure my GPU is up to date, which they both are, and we checked the specs on my PC which were adequate. At this point I really need to export this TS file. They told me to try handbrake, but none of us seem to know how to export both tracks of the TS file. When I export it to MP4 I cant hear my commentary, just the gameplay audio.

    Anyone care to help me? I can download different software if I need to.
    Quote Quote  
  2. Use ffmpeg. Put this in a batch file:

    Code:
    "C:\Program Files\ffmpeg\bin\ffmpeg.exe" -i %1 -codec copy -map 0 "%~dpn1.mp4"
    pause
    Change the path to where you put ffmpeg.exe on your computer. You can put the batch file anywhere and drag/drop a TS (or most other types of) file onto it. Put it in your SendTo folder and you can right click on a video anywhere on your computer and select SendTo BatchName.bat.
    Quote Quote  
  3. I'm a little confused- what exactly will that do?
    Quote Quote  
  4. It will remux (copy, no encoding) all audio and video tracks from the source video to an MP4 file. If you get an error message (not all codecs are supported by mp4, some need special commands, etc.) upload a small sample and I'll adjust the command.
    Quote Quote  
  5. Okay so how do I make a batch file? Do I just put that code into a text file and save it as a .bat? And I'm looking for ffmpeg.exe and do not see it on my PC.

    Thanks
    Quote Quote  
  6. Originally Posted by dpsrjr View Post
    Okay so how do I make a batch file? Do I just put that code into a text file and save it as a .bat?
    Yes.

    Originally Posted by dpsrjr View Post
    And I'm looking for ffmpeg.exe and do not see it on my PC.
    You have to download it. https://www.videohelp.com/software/ffmpeg
    Quote Quote  
  7. Originally Posted by jagabo View Post
    Use ffmpeg. Put this in a batch file:

    Code:
    "C:\Program Files\ffmpeg\bin\ffmpeg.exe" -i %1 -codec copy -map 0 "%~dpn1.mp4"
    pause
    Change the path to where you put ffmpeg.exe on your computer. You can put the batch file anywhere and drag/drop a TS (or most other types of) file onto it. Put it in your SendTo folder and you can right click on a video anywhere on your computer and select SendTo BatchName.bat.
    For the last 2 steps do I right click the original .ts file? (So should I keep one copy of it in the batch file and the original copy wherever it was to begin with?

    And then for the last where I select SendTo BatchName.bat, "BatchName" is whatever I saved the batch file as?
    Quote Quote  
  8. Originally Posted by dpsrjr View Post
    Originally Posted by jagabo View Post
    Use ffmpeg. Put this in a batch file:

    Code:
    "C:\Program Files\ffmpeg\bin\ffmpeg.exe" -i %1 -codec copy -map 0 "%~dpn1.mp4"
    pause
    Change the path to where you put ffmpeg.exe on your computer. You can put the batch file anywhere and drag/drop a TS (or most other types of) file onto it. Put it in your SendTo folder and you can right click on a video anywhere on your computer and select SendTo BatchName.bat.
    For the last 2 steps do I right click the original .ts file?
    Yes.

    Originally Posted by dpsrjr View Post
    So should I keep one copy of it in the batch file and the original copy wherever it was to begin with?
    I don't understand what you're asking here. The batch contains only the text I gave and goes in your SendTo folder. You can leave your original video file where it is. The new mp4 file will be created in the same folder as the original video.

    Originally Posted by dpsrjr View Post
    And then for the last where I select SendTo BatchName.bat, "BatchName" is whatever I saved the batch file as?
    Yes, you right click on your original video file in Windows Explorer and select Send To -> BatchName.bat -- where BatchName.bat is whatever you named the batch file -- for example, you could name it RemuxToMP4.bat and it will show up as Send To -> RemuxToMP4.bat. If you have Explorer set to hide extensions you will only see Send To -> RemuxToMP4.
    Quote Quote  
  9. Image
    [Attachment 52209 - Click to enlarge]
    Image
    [Attachment 52210 - Click to enlarge]

    http://www.myffmpeg.com

    Anyways, command line ffmpeg as above will always do the trick if you can figure out the parameters.
    The only issue is that in the future, you may need help to change parameters should needs change - ie. you'll need to edit the batch file and read the ffmpeg help.

    ...

    If you're the drag and drop type that wants to manipulate things without twiddling the command line parameters or reading, you'll need a ffmpeg GUI (window) interface.

    eg. Picture 1. Drag and drop your mkv into myffmpeg.
    Picture 2. Make sure the audio and video are set to PASSTHROUGH, output format MP4.
    (If you're missing an audio track, click the audio+ icon in the upper right to add more tracks.)
    You can change the output name by clicking the FILE icon in the bottom right.
    Click the START button to transcode.

    Sure, it's paid - maybe you can find another ffmpeg GUI that is free that does the same easily in the software section? - but it is brain-dead easy to work.
    Quote Quote  
  10. Originally Posted by jagabo View Post
    Originally Posted by dpsrjr View Post
    Originally Posted by jagabo View Post
    Use ffmpeg. Put this in a batch file:

    Code:
    "C:\Program Files\ffmpeg\bin\ffmpeg.exe" -i %1 -codec copy -map 0 "%~dpn1.mp4"
    pause
    Change the path to where you put ffmpeg.exe on your computer. You can put the batch file anywhere and drag/drop a TS (or most other types of) file onto it. Put it in your SendTo folder and you can right click on a video anywhere on your computer and select SendTo BatchName.bat.
    For the last 2 steps do I right click the original .ts file?
    Yes.

    Originally Posted by dpsrjr View Post
    So should I keep one copy of it in the batch file and the original copy wherever it was to begin with?
    I don't understand what you're asking here. The batch contains only the text I gave and goes in your SendTo folder. You can leave your original video file where it is. The new mp4 file will be created in the same folder as the original video.

    Originally Posted by dpsrjr View Post
    And then for the last where I select SendTo BatchName.bat, "BatchName" is whatever I saved the batch file as?
    Yes, you right click on your original video file in Windows Explorer and select Send To -> BatchName.bat -- where BatchName.bat is whatever you named the batch file -- for example, you could name it RemuxToMP4.bat and it will show up as Send To -> RemuxToMP4.bat. If you have Explorer set to hide extensions you will only see Send To -> RemuxToMP4.
    When I right-click on the .ts file and select SendTo, it doesn't include the batch file. What I did do is I copied it onto the desktop and drag and dropped it into the batch file. When I run it the command prompt says,

    [mpegts @ 000002b843359240] Stream #1: not enough frames to estimate rate; consider increasing probesize
    [mpegts @ 000002b843359240] start time for stream 1 is not set in estimate_timings_from_pts
    [mpegts @ 000002b843359240] Could not find codec parameters for stream 1 (Video: mpeg2video ([2][0][0][0] / 0x0002), none(tv)): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Quote Quote  
  11. Originally Posted by dpsrjr View Post
    When I right-click on the .ts file and select SendTo, it doesn't include the batch file.
    Are you sure it was in your SendTo folder? In Windows 7-10 the SendTo folder is at

    Code:
    C:\Users\USERNAME\AppData\Roaming\Microsoft\Windows\SendTo
    Where USERNAME is the account you're currently logged in as. You can quickly navigate to there by opening Explorer and entering "shell:sendto" in the address bar and pressing ENTER.



    Originally Posted by dpsrjr View Post
    What I did do is I copied it onto the desktop and drag and dropped it into the batch file. When I run it the command prompt says,

    [mpegts @ 000002b843359240] Stream #1: not enough frames to estimate rate; consider increasing probesize
    [mpegts @ 000002b843359240] start time for stream 1 is not set in estimate_timings_from_pts
    [mpegts @ 000002b843359240] Could not find codec parameters for stream 1 (Video: mpeg2video ([2][0][0][0] / 0x0002), none(tv)): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    I have a few TS files from an old Elgato Game Capture HD. They are AVC (h.264) video, not MPEG 2. The ffmpeg command I gave had no problems with those files (it did spit out a few error messages about DTS timestamps). In any case, did you get an MP4 file?
    Quote Quote  
  12. Originally Posted by jagabo View Post
    Originally Posted by dpsrjr View Post
    When I right-click on the .ts file and select SendTo, it doesn't include the batch file.
    Are you sure it was in your SendTo folder? In Windows 7-10 the SendTo folder is at

    Code:
    C:\Users\USERNAME\AppData\Roaming\Microsoft\Windows\SendTo
    Where USERNAME is the account you're currently logged in as. You can quickly navigate to there by opening Explorer and entering "shellendto" in the address bar and pressing ENTER.



    Originally Posted by dpsrjr View Post
    What I did do is I copied it onto the desktop and drag and dropped it into the batch file. When I run it the command prompt says,

    [mpegts @ 000002b843359240] Stream #1: not enough frames to estimate rate; consider increasing probesize
    [mpegts @ 000002b843359240] start time for stream 1 is not set in estimate_timings_from_pts
    [mpegts @ 000002b843359240] Could not find codec parameters for stream 1 (Video: mpeg2video ([2][0][0][0] / 0x0002), none(tv)): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    I have a few TS files from an old Elgato Game Capture HD. They are AVC (h.264) video, not MPEG 2. The ffmpeg command I gave had no problems with those files (it did spit out a few error messages about DTS timestamps). In any case, did you get an MP4 file?
    I still can't get it to work. On my computer, ffmpeg.exe is found in C:\Users\*instertmyname*\ffmpeg-4.2.2-win64-static\bin so, I just added \ffmpeg.exe to the end of the batch file. I was able to put the batch file in my SendTo, (I don't know why it wasn't in there- I put it there earlier). When I right click the .ts file and SendTo the batch file command prompt says

    C:\Users\*instertmyname*\Desktop>"C:\Users\*inster tmyname*\ffmpeg-4.2.2-win64-static" -i C:\Users\*insertmyname*\Desktop\Recording_2020-03-02_02-03-59_0001.ts -codec copy -map 0 "C:\Users\*insertmyname*\Desktop\Recording_202 0-03-02_02-03-59_0001.mp4"
    '"C:\Users\*insertmyname*\ffmpeg-4.2.2-win64-static"' is not recognized as an internal or external command,
    operable program or batch file.

    In the command prompt it doesn't include the \ffmpeg.exe but it's definitely in the text file.
    C:\Users\DanSpicerDrumming\Desktop>pause
    Press any key to continue . . .
    Quote Quote  
  13. The batch file needs to specify the full path to ffmpeg.exe:

    Code:
    "C:\Users\*inster tmyname*\ffmpeg-4.2.2-win64-static\bin\ffmpeg.exe"
    Or, make it simple on yourself: put a copy of ffmpeg.exe in C:\Windows\. Then your batch file don't have to specify the full path, just ffmpeg. Or copy/paste the full contents of your batch file into a post. Put it in a code block so the forum software doesn't split long lines.
    Quote Quote  



Similar Threads

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