Hello everyone.. Newbie alert!
I use a USB flash drive to play videos on my Samsung TV: model is UA32J4170 (if that helps)
So, my question is:
some videos won't play.. So, I was wondering if there's a code I can use with ffmpeg to convert these videos into playable ones.
Example of videos not working on the TV (error: This file format is not supported, Video codec: h264)
Example of videos working well:Code:Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/avc1/mp41) File size : 3.71 GiB Duration : 1 h 42 min Overall bit rate : 5 184 kb/s Writing application : Lavf58.45.100 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Main@L4.2 Format settings : CABAC / 3 Ref Frames Format settings, CABAC : Yes Format settings, Reference : 3 frames Format settings, GOP : M=3, N=100 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 1 h 42 min Bit rate : 5 046 kb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 50.000 FPS Standard : Component Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.049 Stream size : 3.61 GiB (97%) Title : NeuLion MP4 - Video Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Codec configuration box : avcC Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : mp4a-40-2 Duration : 1 h 42 min Bit rate mode : Constant Bit rate : 129 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 44.1 kHz Frame rate : 43.066 FPS (1024 SPF) Compression mode : Lossy Stream size : 94.3 MiB (2%) Title : NeuLion MP4 - Audio Default : Yes Alternate group : 1
1. What do I need to do to make the first one play on the TV?Code:Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/avc1/mp41) File size : 2.62 GiB Duration : 1 h 13 min Overall bit rate mode : Constant Overall bit rate : 5 098 kb/s Writing application : Lavf58.45.100 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Main@L4 Format settings : CABAC / 2 Ref Frames Format settings, CABAC : Yes Format settings, Reference : 2 frames Format settings, GOP : M=1, N=50 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 1 h 13 min Source duration : 1 min 55 s Bit rate mode : Constant Bit rate : 5 000 kb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.096 Stream size : 2.57 GiB (98%) Source stream size : 2.57 GiB (98%) mdhd_Duration : 4410520 Codec configuration box : avcC Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : mp4a-40-2 Duration : 1 h 13 min Bit rate mode : Constant Bit rate : 93.4 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Stream size : 49.1 MiB (2%) Default : Yes Alternate group : 1
2. If for these videos, I had the audio as m4a and the video as mp4 then I muxed them together.. What commands do I need to make them work from the first trial?
3. I know the TV also won't play x265.. If I already have some x265 videos, what can I do to convert them into a playable format like in the example?
Please advise
Thanks in advance
+ Reply to Thread
Results 1 to 30 of 48
-
-
Check the Technical Data which you find in the manual of your TV. You can download the manual if you don't have it.
Just guessing for your 1st video:
I don't think it plays Level 4.2 and 50fps at this resolution. Maximum is level 4.1. You may have to re-encode it accordingly. But as I said consult the manual. -
To change the frame rate to 25 fps:
Code:ffmpeg -i input.mp4 -vf fps=25 -c:v libx264 c:a copy output.mp4
Code:ffmpeg -i input.mp4 -vf scale=1280:720 -c:v libx264 c:a copy output.mp4
-
Thanks, jagabo
I tried the first code, but it said:
[NULL @ 0000000102592040] Unable to find a suitable output format for 'c:a'
c:a: Invalid argument -
I believe jagabo has a typo, try:
Code:ffmpeg -i input.mp4 -vf fps=25 -c:v libx264 -c:a copy output.mp4
Code:ffmpeg -i input.mp4 -vf scale=1280:720 -c:v libx264 -c:a copy output.mp4
Last edited by zing269; 14th Feb 2021 at 09:29. Reason: fixed typo
-
Oops, yes. I copy/pasted from another batch file, deleting unneeded arguments -- and accidentally deleted the leading hyphen on the -c:a.
-
Sharc gave you the most important answer: go to the table in the manual for your TV set and look at what video it can display. Merely changing headers is not very likely to be of much use, unless you have a simple container problem (e.g., TV will play AVI, but not MOV).
I've attached the page from my 11-year-old Samsung TV to show you what sort of table you are looking for when you read the manual.
Also, frame rates seldom matter. The three criteria that usually bound what can and what cannot be displayed are:
Resolution (e.g., 1920x1080)
Codec (e.g., h.264, MPEG-2)
Complexity (usually specified as a profile).
Complexity often gets ignored but because it determines how much CPU horsepower is required to decode the video, it can often be the breaking point for TV sets which usually don't have a very advanced CPU.
PAL vs. NTSC seldom matters anymore. Also, most modern sets can play 60 fps progressive, something that not that many years ago was a problem for some TVs.Last edited by johnmeyer; 14th Feb 2021 at 13:39.
-
If you have a video with 4.2 Format profile load it into tsmuxergui and change level from 4.2 to 4.1 and start muxing and load the ts into mkvmerge and start muxing as mkv,no need to re-encode,this won't work with video that are 2k and higher since they won't play in tvs that have 1920x1080 as the max resolution.
I think,therefore i am a hamster. -
Thank you all for your replies
@Sharc & johnmeyer: Still looking for the manual online
@johns0 tsMuxer is not opening the file
gives me an unspecified error message
[Attachment 57366 - Click to enlarge]
@jagabo & zing269: trying the command; thank you. It's taking a long time, so I still can't report back if it's working. -
https://www.samsung.com/levant/support/model/UA32J4303ARXTW/#downloads
The Technical Specs are not very detailed, but see section 'Supported Video Codecs':
The maximum framerate is 30 fps. -
I can play 1920x1080 at 60fps on my moms 2 year old samsung tv so that chart is outdated.
I think,therefore i am a hamster. -
-
There was a release of x264 a short while ago that caused problems for some players, r2969.
see if these play -
-
You can get faster encoding (but lower quality) by using a faster preset:
Code:ffmpeg -i input.mp4 -vf fps=25 -c:v libx264 -preset veryfast -c:a copy output.mp4
Code:ffmpeg -i input.mp4 -vf scale=1280:720 -c:v libx264 -preset veryfast -c:a copy output.mp4
Last edited by jagabo; 14th Feb 2021 at 21:22.
-
Update:
the command jagabo & zing269 gave me worked well
Code:ffmpeg -i input.mp4 -vf fps=25 -c:v libx264 -c:a copy output.mp4
I still need to try it for the x265 videos I have on my Hard drive
Thank you everyone for your efforts..
I have another question though
How do I combine that command with this one
Code:ffmpeg -i name_of_video.mp4 -i name_of_audio.m4a -c copy final_video.mp4
Thanks!Last edited by sasouna; 14th Feb 2021 at 23:42.
-
-
Here's a 30 sec. sample
https://we.tl/t-bMnaHZeTqa -
Try to change the profile level with H264 level editor, so you dont need to reencode and loss quality.
-
Try this file to see if it works.
I think,therefore i am a hamster. -
Similar Threads
-
mp4 not playing sound on Samsung TV
By Frederickgolf in forum MacReplies: 10Last Post: 6th Sep 2020, 18:38 -
Samsung TV playing video with 7.1 audio
By Video0001 in forum DVB / IPTVReplies: 13Last Post: 5th Dec 2017, 16:43 -
Samsung writer won't reinstall, not supported by Samsung
By blacktooth in forum DVD & Blu-ray WritersReplies: 4Last Post: 11th Jan 2017, 22:47 -
MKV movies has STOPPED playing on Samsung Smart TV
By WindChilln in forum Newbie / General discussionsReplies: 4Last Post: 22nd Oct 2016, 09:19 -
Region code needed for Samsung
By martinalison in forum DVD & Blu-ray PlayersReplies: 1Last Post: 11th Oct 2016, 19:35