View previous topic :: View next topic |
Author |
Message |
paddlaren Tux's lil' helper
Joined: 23 Nov 2005 Posts: 125 Location: Hörby, Sweden
|
Posted: Fri Dec 19, 2014 9:33 pm Post subject: Videoeditor for MKV with subtitles |
|
|
Hi,
I am recording a lot of film using TV Headend and on some channels here in Sweden the subtitles are sent as separate streams. Films are stored as MKV-files. I am now looking for a video editor where I can remove commercials and properly maintain the subtitles in sync. I am only interested in the Swedish subs if that makes things easier.
I am aware of that I can write a script to extract streams, render the subtitles, and then cut the commercials but that is not what I am asking for at the moment, that is what I already know
Output of for Nine Month with Hugh Grant. Subs are both in Swedish, Danish, Finish and Norwegian:
+ EBML head
|+ EBML version: 1
|+ EBML read version: 1
|+ EBML maximum ID length: 4
|+ EBML maximum size length: 8
|+ Doc type: matroska
|+ Doc type version: 2
|+ Doc type read version: 2
+ Segment, size 1753020792
|+ Seek head (subentries will be skipped)
|+ EbmlVoid (size: 430)
|+ Segment information
| + Segment UID: 0x42 0x19 0xfd 0x9e 0xc7 0x4d 0xeb 0xe9 0x99 0xbc 0x7c 0x4c 0x1a 0xf8 0xae 0xba
| + Title: Nio månader
| + Muxing application: Tvheadend Matroska muxer
| + Writing application: Tvheadend 3.4.27~gfbda802-dirty
| + Timecode scale: 1000000
| + Duration: 6539.720s (01:48:59.720)
|+ Segment tracks
| + A track
| + Track number: 1 (track ID for mkvmerge & mkvextract: 0)
| + Track UID: 1
| + Track type: video
| + Lacing flag: 0
| + Codec ID: V_MPEG2
| + CodecPrivate, length 158
| + Default duration: 40.000ms (25.000 frames/fields per second for a video track)
| + Video track
| + Pixel width: 720
| + Pixel height: 576
| + Display unit: 3 (aspect ratio)
| + Display width: 16
| + Display height: 9
| + A track
| + Track number: 2 (track ID for mkvmerge & mkvextract: 1)
| + Track UID: 2
| + Track type: audio
| + Lacing flag: 0
| + Codec ID: A_MPEG/L2
| + Language: swe
| + Default duration: 24.000ms (41.667 frames/fields per second for a video track)
| + Audio track
| + Sampling frequency: 48000
| + Channels: 2
| + A track
| + Track number: 3 (track ID for mkvmerge & mkvextract: 2)
| + Track UID: 3
| + Track type: subtitles
| + Lacing flag: 0
| + Codec ID: S_TEXT/UTF8
| + Language: swe
| + A track
| + Track number: 4 (track ID for mkvmerge & mkvextract: 3)
| + Track UID: 4
| + Track type: subtitles
| + Lacing flag: 0
| + Codec ID: S_TEXT/UTF8
| + Language: nor
| + A track
| + Track number: 5 (track ID for mkvmerge & mkvextract: 4)
| + Track UID: 5
| + Track type: subtitles
| + Lacing flag: 0
| + Codec ID: S_TEXT/UTF8
| + Language: dan
| + A track
| + Track number: 6 (track ID for mkvmerge & mkvextract: 5)
| + Track UID: 6
| + Track type: subtitles
| + Lacing flag: 0
| + Codec ID: S_TEXT/UTF8
| + Language: fin
|+ Tags
| + Tag
| + Targets
| + TargetTypeValue: 50
| + Simple
| + Name: DATE_BROADCASTED
| + String: 2014-12-19 05:20:00
| + DefaultLanguage: 1
| + TagLanguage: und
| + Tag
| + Targets
| + TargetTypeValue: 50
| + Simple
| + Name: ORIGINAL_MEDIA_TYPE
| + String: TV
| + DefaultLanguage: 1
| + TagLanguage: und
| + Tag
| + Targets
| + TargetTypeValue: 50
| + Simple
| + Name: CONTENT_TYPE
| + String: Movie / Drama
| + DefaultLanguage: 1
| + TagLanguage: und
| + Tag
| + Targets
| + TargetTypeValue: 50
| + Simple
| + Name: TVCHANNEL
| + String: C More First
| + DefaultLanguage: 1
| + TagLanguage: und
| + Tag
| + Targets
| + TargetTypeValue: 50
| + Simple
| + Name: SUMMARY
| + String: Han är obeskrivligt lycklig med sin flickvän Rebecca (Julianne Moore), men tappar fotfästet totalt när hon blir oväntat gravid. Saken blir inte bättre när paret får en förlossningsläkare (Robin Williams) som är både rysk och helknasig.
| + DefaultLanguage: 1
| + TagLanguage: swe
|+ Cluster |
|
Back to top |
|
|
DawgG l33t
Joined: 17 Sep 2003 Posts: 866
|
Posted: Sat Feb 07, 2015 7:14 pm Post subject: |
|
|
Quote: | I am now looking for a video editor where I can remove commercials and properly maintain the subtitles in sync. |
i don't think there is one for GNU/Linux.
the only thing i can think of is using ffmpeg with its map and skip/seek-options. it's pretty close to script-writing but you only have to remux, not re-encode.
you have to know the exact timestamps of the commercials; so if the movie is 60minutes long, you want to keep streams 0-3 and there are commercials from 00:20:00 to 00:25:00 you'd extract the parts before and after the commercials, eg
Code: | ffmpeg -i file.mkv -ss 00:00:00 -to 00:20:00 -map 0:0 -map 0:1 -map 0:2 -map 0:3 -c:v copy -c:a copy -c.s copy movie1.mkv
ffmpeg -i file.mkv -ss 00:25:00 -to 01:00:00 -map 0:0 -map 0:1 -map 0:2 -map 0:3 -c:v copy -c:a copy -c.s copy movie2.mkv |
(more info on seeking here: https://trac.ffmpeg.org/wiki/Seeking )
when you only the parts you want you concatenate them again.
there' s probably other ways to do it, but this should work.
GOOD LUCK! _________________ DUMM KLICKT GUT. |
|
Back to top |
|
|
paddlaren Tux's lil' helper
Joined: 23 Nov 2005 Posts: 125 Location: Hörby, Sweden
|
Posted: Sun Feb 08, 2015 12:05 pm Post subject: |
|
|
Thanks,
Scripting is no problem so this is particular useful for me.
BR
Erik |
|
Back to top |
|
|
littletux n00b
Joined: 08 Dec 2003 Posts: 74
|
Posted: Thu Mar 26, 2015 4:52 pm Post subject: |
|
|
I'm not shure this is exactly what you want, but mkvtoolnix with either qt5 wxwidgets or both flags for a gui could be what you are searching for |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|