Hey, so I've got some weird problem that I'd like to fix. I'm trying to convert an MKV file to MP4, using ffmpeg's copy, so that I can watch it on my TV, but after I convert the file my TV says, "Video format not supported", but continues to play the file with just the sound playing. The file plays fine in VLC. It also plays fine with windows media player on my one computer, but on my laptop there is a ton of artifacting occurring, which I don't know how to explain.
This is the line I ran using ffmpeg to copy the mkv to mp4.
Since that wasn't working I tried converting the video file the slow way, which worked. The video played on the TV, and there was no artifacts when playing the video on my laptop. The problem is I have a ton of videos and this conversion takes a really long time, and more than doubles the file size. I also don't want to lose any video/audio quality.PHP Code:
ffmpeg -i Filename.mkv -vcodec copy -acodec copy Filename.mp4
This is the line I used for the slow conversion.
So I used ffprobe to try and figure out the difference, printing the results to a .json file. The first set of information is from the copied file that doesn't play, the second set of information is from the slow converted file that does play.PHP Code:
ffmpeg -i Filename.mkv Filename.mp4
Does anyone know what is causing the file to not play on my TV? And what is the best way, using ffmpeg, to convert the .mkv to .mp4?
PHP Code:
"streams": [
{
"index": 0,
"codec_name": "h264",
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"profile": "High",
"codec_type": "video",
"codec_time_base": "1001/48000",
"codec_tag_string": "avc1",
"codec_tag": "0x31637661",
"width": 1280,
"height": 960,
"has_b_frames": 2,
"sample_aspect_ratio": "1:1",
"display_aspect_ratio": "4:3",
"pix_fmt": "yuv420p",
"level": 51,
"chroma_location": "left",
"refs": 12,
"is_avc": "1",
"nal_length_size": "4",
"r_frame_rate": "24000/1001",
"avg_frame_rate": "534320000/22285591",
"time_base": "1/16000",
"start_pts": 0,
"start_time": "0.000000",
"duration_ts": 22285591,
"duration": "1392.849438",
"bit_rate": "480371",
"bits_per_raw_sample": "8",
"nb_frames": "33395",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
},
"tags": {
"language": "eng",
"handler_name": "VideoHandler"
}
},
PHP Code:
"streams": [
{
"index": 0,
"codec_name": "h264",
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"profile": "High",
"codec_type": "video",
"codec_time_base": "1001/48000",
"codec_tag_string": "avc1",
"codec_tag": "0x31637661",
"width": 1280,
"height": 960,
"has_b_frames": 2,
"sample_aspect_ratio": "1:1",
"display_aspect_ratio": "4:3",
"pix_fmt": "yuv420p",
"level": 32,
"chroma_location": "left",
"refs": 4,
"is_avc": "1",
"nal_length_size": "4",
"r_frame_rate": "24000/1001",
"avg_frame_rate": "24000/1001",
"time_base": "1/24000",
"start_pts": 0,
"start_time": "0.000000",
"duration_ts": 33428395,
"duration": "1392.849792",
"bit_rate": "990841",
"bits_per_raw_sample": "8",
"nb_frames": "33395",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
},
"tags": {
"language": "eng",
"handler_name": "VideoHandler"
}
},
+ Reply to Thread
Results 1 to 4 of 4
-
-
-
The first has level 5.1. The second 3.2. Your TV most likely doesn't support level above 4.1. Change with H264 Level Editor or the like.
-
Change with H264 Level Editor or the like.users currently on my ignore list: deadrats, Stears555, marcorocchini
Similar Threads
-
Shrinking video: is MKV to MKV quicker than MKV to MP4?
By OM2 in forum Video ConversionReplies: 5Last Post: 25th May 2013, 14:51 -
Transformation of the transport stream video to MP4 or MKV(without ffmpeg)
By Stears555 in forum Video ConversionReplies: 9Last Post: 1st Apr 2013, 05:51 -
FFMPEG - mkv to mp4 playback issues
By emerysteele in forum Video ConversionReplies: 1Last Post: 5th Aug 2012, 16:51 -
Convert MKV with .ass subs to mp4 with ffmpeg
By bearnado in forum Video ConversionReplies: 2Last Post: 1st Mar 2012, 02:21 -
VirtualDub: Working with MKV & MP4 (frame jumps, RGB decompression etc.)
By pokepika in forum Video ConversionReplies: 4Last Post: 21st Sep 2011, 19:28