|
|
| PoBear |
| Posted: Feb 19 2014, 06:42 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 51
Member No.: 23022
Joined: 10-February 08

|
Hi guys
I'm experienced in using Vdub to convert MPEG-2 Standard Def TV files to DIVX.
I've now acquired an HD source and I am looking for advice on the best way to edit the new files.
The video is H.264 in a .TS container and is reported by VLC media Player as
MPEG-4 AVC (part 10) (H.264) Res: 1920 x 1080 Frame rate: 25 Decoded format: Planar 4:2:0 YUV
The audio is also in the .TS container as is reported as
MPEG AAC Audio (mp4a) sample rate 48KHz
I am trying to remove the start and end segments and any commercials in the file.
Providing I can cut it in suitable positions I would like to avoid re-encoding either the video or the audio.
Can I do this in Vdub and how?
If I can't do it in Vdub any recommendations for a tool, preferably free?
Many thanks in advance. |
 |
| raffriff42 |
| Posted: Feb 20 2014, 04:37 AM |
 |
|

Advanced Member
  
Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12

|
I don't think Vdub can copy streams from a .TS; ffmpeg can, though. download: http://ffmpeg.zeranoe.com/builds
For simple trimming of start and end only (no editing of commercials), here's a command line that copies the steams into a new MP4 container, starting at "0:01:00" (1 minute) and having a total duration of "0:02:00" (2 minutes)
| CODE | | ffmpeg.exe -ss 0:01:00 -y -i "input.ts" -vcodec copy -acodec copy -t 0:02:00 "output.mp4" |
If you *must* edit the commercials, or you just prefer working in VirtualDub, I would use ffmpeg to remux the video into an AVI container, where VirtualDub can do its stream-copy editing. You will have to transcode the audio, as AAC is not compatible with AVI (I think). I would decode the audio to PCM and re-encode to AC3 within VirtualDub. So your ffmpeg command would be | CODE | | ffmpeg.exe -y -i "input.ts" -vcodec copy -acodec pcm_s16le "output.avi" | That -acodec pcm_s16le command may not work as is, depending on the ffmpeg; watch for error messages. |
 |
| -vdub- |
| Posted: Feb 20 2014, 10:06 AM |
 |
|
Advanced Member
  
Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10

|
Another way to do this among the many ways
Remux ts to mp4 after load the remuxed mp4 video using an FFmpeg codec based convert type GUI tool Or a basic (CLI) command as the one below will do. To remux FFMpeg video and audio into mp4 container. At least maybe it will do, easier to get an FFMPeg based tool to mux/demux/remux media files
ffmpeg.exe -i "sourcefile.ts" -c:v copy -c:a copy -f mp4 "outfile.mp4"
-codec copy to copy all streams Other available stream specifiers v = video a = audio s = subtitle d = data t = attachments Further options for stream selection refer always first to the included FFMpeg manuals
Use Fcchandlers Quicktime Virtualdub plugin and also install ACM_AAC Codec. After doing this will then allow you to edit and later save the mp4 (x264 video and aac audio) in an avi container
Editing Set Direct Copy Video and Direct Copy Audio Edit the video using only I frames (Yellow Keys) check marks are in correct places many times virtualdub will play you and will be wrong. After editing save the video as AVI (without encoding).
The two filters mentioned are available here https://sourceforge.net/projects/fcchandler/files/ |
 |
| PoBear |
| Posted: Feb 23 2014, 11:49 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 51
Member No.: 23022
Joined: 10-February 08

|
Thanks for the ideas
raffriff42 - Do you H.264 in a TS contained or TS containers in general as I currently process MPEG-2 in a TS container for SD television?
I will do some experimenting and let you know how I get on. |
 |
| -vdub- |
| Posted: Feb 24 2014, 12:25 AM |
 |
|
Advanced Member
  
Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10

|
TS has always been the preferred broadcaster stream container as it has padding to try avoid errors and inconsistencies when media is broadcasting airwaves and other *waves used today
Either way it is the format streams inside all that counts, which can be re-muxed from TS to MP4 and back to TS and many other containers
You may find this useful http://en.wikipedia.org/wiki/Comparison_of...ntainer_formats
If have a file that Virtualdub cannot load such as no plugins installed. Use MKVToolnix or FFMPeg to mux the video into an MKV container. Then the video.mkv will more likely be able to be opened after with Virtualdub using drag and drop or load video using the File menu. This also depends on other factors but is more likely to work faster than installing correct plugins. Though if need to continue to use Virtualdub always better to have the some plugins installed
A Thought! For batch work when need to do a multi video drag and drop to the batch wizard. Instead drag and drop many MKV videos would maybe be a better option. Something I had never thought of previously until writing this. Which is a (work-around) for a Virtualdub bug |
 |