Cloning a video format (to another video file)

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
Post Reply
JLC17
Level 1
Level 1
Posts: 46
Joined: Tue Feb 07, 2017 11:51 am

Cloning a video format (to another video file)

Post by JLC17 » Mon Aug 20, 2018 10:38 am

I have 2 video files. VideoA.MKV, and VideoB.MKV

VideoA.MKV plays perfectly on my smart TV.

VideoB.MKV comes up with "unsupported filetype". However, it plays fine on my PC. So clearly there's a codec issue.

Inspecting both files the only difference I can see is the working one is

Code: Select all

Format settings                          : CABAC / 4 Ref Frames
while the unsupported is

Code: Select all

Format settings                          : CABAC / 8 Ref Frames
Is it possible for me to use ffmpeg to transcode a new version of VideoB.MKV by pointing it at VideoA.MKV and say "use the video parameters in that file (please)" ????

I'm sure tools like Handbrake could transcode the file too. However, to be honest I have no idea where to find the different parameters. I did have a look, but could see any sign of "Ref frames". Also, for future cases, it may be something else that's different. Now I have a working VideoA.MKV, I may as well see if I can use it as a template ?

Thanks all.

User avatar
Joe2Shoe
Level 4
Level 4
Posts: 418
Joined: Wed Oct 18, 2017 8:12 pm
Location: Ozone

Re: Cloning a video format (to another video file)

Post by Joe2Shoe » Mon Aug 20, 2018 11:00 am

Are both video files the same size? I would convert both with winff to .mp4 files.
"Tolerance is the refuge of men without conviction."
"Common sense is not so common" - Voltaire

gm10
Level 13
Level 13
Posts: 4661
Joined: Thu Jun 21, 2018 5:11 pm

Re: Cloning a video format (to another video file)

Post by gm10 » Mon Aug 20, 2018 11:14 am

JLC17 wrote:
Mon Aug 20, 2018 10:38 am
Is it possible for me to use ffmpeg to transcode a new version of VideoB.MKV by pointing it at VideoA.MKV and say "use the video parameters in that file (please)" ????
Not like that, no, but you can set the number of reference frames like this --ref 4 if that is indeed the issue.

rui no onna
Level 4
Level 4
Posts: 241
Joined: Thu Jul 19, 2018 4:18 pm

Re: Cloning a video format (to another video file)

Post by rui no onna » Mon Aug 20, 2018 11:20 am

Easy way, install Handbrake and select a device preset (e.g. Roku, FireTV, Playstation, Chromecast, Android, Apple). The settings used for those should be compatible with most Smart TVs and Blu-ray players.

If you want to learn to do it from command line, here are the list of options:
https://sites.google.com/site/linuxenco ... eg-mapping

For best compatibility, you'd probably want to stick to High or Main Profile @ Level 4.0 and at most 5 ref frames.

User avatar
phd21
Level 17
Level 17
Posts: 7512
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Cloning a video format (to another video file)

Post by phd21 » Mon Aug 20, 2018 11:27 am

HI JLC17,

I just read your post and the good replies to it. Here are my thoughts on this as well.

It would help to know more about your system setup. If you run "inxi -Fxzd" from the console terminal prompt, highlight the results, copy and paste them back here, that should provide enough information.

I have the same problem sometimes where some videos of the same file type play fine and others do not.

Make sure you have "ffmpeg" installed. I recommend using "ffmpeg" version 3.x.

+1 for using "WinFF-gtk" a desktop GUI front-end to "ffmpeg". Test a file that is not working by converting to the same format or another format to see if it works, then you can do the same for other videos that are not working. Try to keep the same video resolution and frame rate.

There are other video (multimedia) converters available to install and use in addition to the excellent WinFF. Most video editors can also convert one video format to another.

Hope this helps ...
Phd21: Mint KDE 18.3 & 19, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

JLC17
Level 1
Level 1
Posts: 46
Joined: Tue Feb 07, 2017 11:51 am

Re: Cloning a video format (to another video file)

Post by JLC17 » Tue Aug 28, 2018 4:00 am

Thanks for all the replies, guys.

For now the problem has "gone away", as I remembered my Blu-Ray player will play USB media, and it was able to play the file the TV wouldn't.

Also the TV supports Miracast (or whatever it's called nowdays) so I could always cast a tablet running VLC to the screen.

Post Reply

Return to “Sound, Multimedia, & Codecs”