VideoHelp Forum
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Member
    Join Date
    May 2014
    Location
    United States
    Search Comp PM
    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.

    PHP Code:
    ffmpeg -i Filename.mkv -vcodec copy -acodec copy Filename.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.

    This is the line I used for the slow conversion.

    PHP Code:
    ffmpeg -i Filename.mkv Filename.mp4 
    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.

    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"
                
    }
            }, 
    Quote Quote  
  2. 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.
    Quote Quote  
  3. Change with H264 Level Editor or the like.
    if the level indication was used as it should be used that won't help. (then only a reencode will help)
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!