This forum has been archived. All content is frozen. Please use KDE Discuss instead.

MTS Problems

Tags: None
(comma "," separated)
bdedera
Registered Member
Posts
4
Karma
0

MTS Problems

Sun Nov 16, 2014 9:08 pm
Hi,


I have Problems working with MTS files from my Panasonic HD 220. 1980*1028p 50fps

I can't skip: The monitor shows always the first frames.
I cut the file, but the second part shows the content of the first.

No Problems with mpg4 . m4v, etc

Any idea?

ubuntu 14.10, (installed a few days ago9
kdenlive 0.9. 10 (via ppa)


Thanks


B.
vpinon
KDE Developer
Posts
708
Karma
6
OS

Sun Nov 16, 2014 10:06 pm
Does avplay / ffplay seek in the file properly ? If not, then you know where to look for an upgrade...
bdedera
Registered Member
Posts
4
Karma
0

Re: MTS Problems

Sun Nov 16, 2014 10:39 pm
Where / how can I check?


B
vpinon
KDE Developer
Posts
708
Karma
6
OS

Mon Nov 17, 2014 6:35 am
avplay [your file]
if you are on debian/ubuntu/derivatives, or else
ffplay [your file]
then right/left arrows...
bdedera
Registered Member
Posts
4
Karma
0

Re:

Mon Nov 17, 2014 2:17 pm
vpinon wrote:avplay [your file]
if you are on debian/ubuntu/derivatives, or else
ffplay [your file]
then right/left arrows...



The MTS-Files are fine with VLC / SMPlayer!

They don't work in openshot, too.


What now???


B
User avatar
ttguy
Moderator
Posts
1152
Karma
6
OS

Re: MTS Problems

Tue Nov 18, 2014 1:28 pm
bdedera wrote:The MTS-Files are fine with VLC / SMPlayer!

B


But what about ffplay ? We want to know if they work with ffplay because that is the software that kdnelive is based on. So if they do not play on it then you might need to upgrade your ffmpeg/avconv
User avatar
qubodup
Registered Member
Posts
142
Karma
0

Re: MTS Problems

Fri Nov 28, 2014 4:16 am
I haven't encountered this particular problem, however sometimes imported mts files are only as long as imported image files, when they are actually much longer. This is almost always the case with the first file from a Canon VIXIA HFM40

To fix this on Linux, I use this in the command line:
Code: Select all
ffmpeg -i in.mts -c copy fix.mts

I created a scriptfile containing the following in an executable file called mtsfix in ~/.local/bin/ :
Code: Select all
ffmpeg -i "$1" -c copy "${1%.MTS}-fix.mts"


Importing the output file gives the correct length in kdenlive:
Image

I have a problem that sounds somewhat similar to yours with videos recorded on my iShare S200 (I do not recommend that camera!): The video in some files starts from the starts at some point without warning. A problem that's hard to spot because if you seek into the affected area, the problem doesn't occur. You have to play back the frame which actually causes the defect.

ffmpeg wasn't able to fix this, but avidemuxer was able to:
Code: Select all
avidemux2_cli --load in.avi --no-audio --save out.avi

or as a script (~/.local/bin/avidemuxfix):
Code: Select all
avidemux2_cli --load "$1" --no-audio --save "$1-fix.avi"

Please note that I have not tested the latter with .mts files, only .avi

Let us know if any of these help!
User avatar
CyborgAlpha
Registered Member
Posts
12
Karma
0
OS

Re: MTS Problems

Sat Nov 29, 2014 11:16 am
Since this topic is about MTS problems. I'm encountering something weird. Here are two videos (on youtube) that I rendered same system;
1. https://www.youtube.com/watch?v=jmiKvy4OMTQ
2. https://www.youtube.com/watch?v=LRcNNMAy_no

The first plays fine, and the second has issues. I have no idea why one video has issues and the other doesn't.
Any suggestions would be helpful

OS = Kubuntu 14.04 64bit with FFmpeg
tomaswhite
Registered Member
Posts
8
Karma
0

Re: MTS Problems

Mon Dec 22, 2014 2:38 am
CyborgAlpha wrote:Since this topic is about MTS problems. I'm encountering something weird. Here are two videos (on youtube) that I rendered same system;
1. https://www.youtube.com/watch?v=jmiKvy4OMTQ
2. https://www.youtube.com/watch?v=LRcNNMAy_no

The first plays fine, and the second has issues. I have no idea why one video has issues and the other doesn't.
Any suggestions would be helpful

OS = Kubuntu 14.04 64bit with FFmpeg


I have checked the second one and didn't see any problem??
Anyway , what is the format you used to upload your video?
User avatar
CyborgAlpha
Registered Member
Posts
12
Karma
0
OS

Re: MTS Problems

Tue Dec 23, 2014 11:16 pm
tomaswhite wrote:
CyborgAlpha wrote:Since this topic is about MTS problems. I'm encountering something weird. Here are two videos (on youtube) that I rendered same system;
1. https://www.youtube.com/watch?v=jmiKvy4OMTQ
2. https://www.youtube.com/watch?v=LRcNNMAy_no

The first plays fine, and the second has issues. I have no idea why one video has issues and the other doesn't.
Any suggestions would be helpful

OS = Kubuntu 14.04 64bit with FFmpeg


I have checked the second one and didn't see any problem??
Anyway , what is the format you used to upload your video?


It's bizarre . I use the mp4 = mp4-video+mp3-audio
It appears to be a problem with the multi-threading option. Fine on 2 (MTS) & up 6 concurrent threads (720p)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]