I am having trouble converting PAL mpeg2 SD (576i 16:9) TV captures to something that will play nicely on a samsung galaxy tab 2 10.1 (a Christmas present).
All suggestions about settings for ffmpeg and/or x264/mp4box would be very welcome.
I tried:
1. mpeg2 576i -> mp4 x264 576i ... standard samsung galaxy tab 2 10.1 player wouldn't display video component (I assume it didn't like mpeg4 interalced - gave up on it).
2. mpeg2 576i -> mp4 x264 576p50 ... standard samsung galaxy tab 2 10.1 player displayed the video squashed horizontally even though PAR set.
My unsuccessful settings are as follows:
2(a) using ffmpeg, x264 and mp4box
whereCode:"C:\software\avs2yuv\avs2yuv.exe" "%avs1%" -o - | "%X264EXE%" - --stdin y4m --thread-input --frames %FRAMES% --profile high --level 3.2 --preset fast --no-cabac --crf %crf% --fps %fpso% --sar 16:11 --colormatrix bt470bg -o "%PARtemp%" "%ffmpegEXE%" -y -i "%~1" -vn -c:a libvo_aacenc -ab 192K -ar 44100 -ac 2 "%parAAC%" "%mp4boxEXE%" -add "%PARtemp%" -add "%parAAC%":lang=eng -new "%PARAACmp4%"
avs1 = avsynth script to deinterlace to 576p50(scabby, didn't want to upside to 720p50)
crf = 20
fps = 50
2(b) using ffmpeg
whereCode:"%ffmpegEXE%" -y -i "%fINPUT%" -vn -c:a libvo_aacenc -ab %audiobitrate% -ar %audiofreq% -ac 2 "%fOUTPUTa%" "%ffmpegEXE%" -y -i "%fINPUT%" -i "%fOUTPUTa%" -acodec copy -c:v h264 -preset fast -filter:v yadif=1:-1:0,setdar=16:9 -r 50 -profile:v high -level 3.2 -qscale:v %qscale% -coder 0 "%fOUTPUT%"
qscale=1
If you managed it to convert PAL mpeg2 576i files to play on that device, how did you do it and with what settings ?
Thanks.
+ Reply to Thread
Results 1 to 7 of 7
-
-
It plays fine in MPC-HC. Is there something I should try to look for in VLC ?
Yes, that's what I thought.
I'm a bit of a newbie with aspect ratioswhich would you suggest as ffmpeg or x264 settings ?
PS below are the settings of a cclip that came with the Tab 2 10.1
PPS I think I'll report a fault at the samsung website.
"Moments_of_Everyday_Life.mp4" below -----------------------------------------------------------------------
General
Count : 283
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Count of video streams : 1
Count of audio streams : 1
Video_Format_List : AVC
Video_Format_WithHint_List : AVC
Codecs Video : AVC
Video_Language_List : English
Audio_Format_List : AAC
Audio_Format_WithHint_List : AAC
Audio codecs : AAC LC
Audio_Language_List : English
Complete name : Moments_of_Everyday_Life.mp4
File name : Moments_of_Everyday_Life
File extension : mp4
Format : MPEG-4
Format : MPEG-4
Format/Extensions usually used : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
Commercial name : MPEG-4
Format profile : Base Media / Version 2
Internet media type : video/mp4
Codec ID : mp42
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : MPEG-4
Codec : MPEG-4
Codec/Extensions usually used : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
File size : 67891101
File size : 64.7 MiB
File size : 65 MiB
File size : 65 MiB
File size : 64.7 MiB
File size : 64.75 MiB
Duration : 67901
Duration : 1mn 7s
Duration : 1mn 7s 901ms
Duration : 1mn 7s
Duration : 00:01:07.901
Overall bit rate mode : VBR
Overall bit rate mode : Variable
Overall bit rate : 7998834
Overall bit rate : 7 999 Kbps
Stream size : 37131
Stream size : 36.3 KiB (0%)
Stream size : 36 KiB
Stream size : 36 KiB
Stream size : 36.3 KiB
Stream size : 36.26 KiB
Stream size : 36.3 KiB (0%)
Proportion of this stream : 0.00055
HeaderSize : 36014
DataSize : 67855087
FooterSize : 0
IsStreamable : Yes
Encoded date : UTC 2012-03-13 03:50:30
Tagged date : UTC 2012-03-13 03:50:30
File creation date : UTC 2012-12-30 06:38:47.880
File creation date (local) : 2012-12-30 17:08:47.880
File last modification date : UTC 2012-12-30 06:38:54.750
File last modification date (local) : 2012-12-30 17:08:54.750
©TIM : 00:00:00:00
©TSC : 24000
©TSZ : 1001
Video
Count : 256
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
StreamOrder : 0
ID : 1
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format/Url : http://developers.videolan.org/x264.html
Commercial name : AVC
Format profile : High@L3.2
Format settings : CABAC / 3 Ref Frames
Format settings, CABAC : Yes
Format settings, CABAC : Yes
Format settings, ReFrames : 3
Format settings, ReFrames : 3 frames
Internet media type : video/H264
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : AVC
Codec : AVC
Codec/Family : AVC
Codec/Info : Advanced Video Codec
Codec/Url : http://developers.videolan.org/x264.html
Codec/CC : avc1
Codec profile : High@L3.2
Codec settings : CABAC / 3 Ref Frames
Codec settings, CABAC : Yes
Codec_Settings_RefFrames : 3
Duration : 67901
Duration : 1mn 7s
Duration : 1mn 7s 901ms
Duration : 1mn 7s
Duration : 00:01:07.901
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 7804860
Bit rate : 7 805 Kbps
Nominal bit rate : 8999936
Nominal bit rate : 9 000 Kbps
Width : 1280
Width : 1 280 pixels
Height : 720
Height : 720 pixels
Pixel aspect ratio : 1.000
Display aspect ratio : 1.778
Display aspect ratio : 16:9
Rotation : 0.000
Frame rate mode : CFR
Frame rate mode : Constant
Frame rate : 23.976
Frame rate : 23.976 fps
Frame count : 1628
Standard : NTSC
Resolution : 8
Resolution : 8 bits
Colorimetry : 4:2:0
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8
Bit depth : 8 bits
Scan type : Progressive
Scan type : Progressive
Interlacement : PPF
Interlacement : Progressive
Bits/(Pixel*Frame) : 0.353
Delay : 0
Delay : 00:00:00.000
Delay, origin : Container
Delay, origin : Container
Stream size : 66244954
Stream size : 63.2 MiB (98%)
Stream size : 63 MiB
Stream size : 63 MiB
Stream size : 63.2 MiB
Stream size : 63.18 MiB
Stream size : 63.2 MiB (98%)
Proportion of this stream : 0.97575
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2012-03-13 03:50:30
Tagged date : UTC 2012-03-13 03:50:30
Buffer size : 29999616 / 29999616
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
Count : 218
Count of stream of this kind : 1
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 0
StreamOrder : 1
ID : 2
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Commercial name : AAC
Format profile : LC
Codec ID : 40
Codec : AAC LC
Codec : AAC LC
Codec/Family : AAC
Codec/CC : 40
Duration : 67901
Duration : 1mn 7s
Duration : 1mn 7s 901ms
Duration : 1mn 7s
Duration : 00:01:07.901
Source duration : 67942
Source duration : 1mn 7s
Source duration : 1mn 7s 942ms
Source duration : 1mn 7s
Source duration : 00:01:07.942
Bit rate mode : VBR
Bit rate mode : Variable
Bit rate : 192000
Bit rate : 192 Kbps
Maximum bit rate : 290785
Maximum bit rate : 291 Kbps
Channel(s) : 2
Channel(s) : 2 channels
Channel positions : Front: L R
Channel positions : 2/0/0
Sampling rate : 44100
Sampling rate : 44.1 KHz
Samples count : 2994434
Frame count : 2924
Source frame count : 2926
Compression mode : Lossy
Compression mode : Lossy
Delay : 0
Delay : 00:00:00.000
Delay, origin : Container
Delay, origin : Container
Delay relative to video : 0
Video0 delay : 0
Stream size : 1609016
Stream size : 1.53 MiB (2%)
Stream size : 2 MiB
Stream size : 1.5 MiB
Stream size : 1.53 MiB
Stream size : 1.534 MiB
Stream size : 1.53 MiB (2%)
Proportion of this stream : 0.02370
Source stream size : 1610117
Source stream size : 1.54 MiB (2%)
Source stream size : 2 MiB
Source stream size : 1.5 MiB
Source stream size : 1.54 MiB
Source stream size : 1.536 MiB
Source stream size : 1.54 MiB (2%)
Source_StreamSize_Proportion : 0.02372
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2012-03-13 03:50:30
Tagged date : UTC 2012-03-13 03:50:30 -
Looks like Samsung Galaxy tab2 fails to read MKV aspect properly as well ?
Code:"%ffmpegEXE%" -y -i "%fINPUT%" -i "%fOUTPUTa%" -c:v h264 -preset fast -filter:v yadif=1:-1:0,setdar=16:9 -r 50 -profile:v high -level 3.2 -qscale:v %qscale% -coder 0 -c:a libvo_aacenc -ab %audiobitrate% -ar %audiofreq% -ac 2 "%fOUTPUT%"
-
Well, problem solved.
I installed the app "MX Player PRO" (circa $5) from the play store onto the Samsung Galaxy Tab 2 10.1 tablet and it played everything I threw at it ... and the player was configured to use the hardware decoder as bonus
So, I settled on these to convert PAL 567i mpeg2 into to mpeg4(h264/aac) to save space on the tablet (eg 13MB reduced down to 4MB) ...
1. deinterlaced 50fps 720x576 PAL "SD"
Code:"%ffmpegEXE%" -y -i "%fINPUT%" -c:a libvo_aacenc -ab %audiobitrate% -ar %audiofreq% -ac 2 -c:v h264 -preset fast -filter:v yadif=1:-1:0,setdar=16:9 -r 50 -profile:v high -level 3.2 -crf 20 -coder 0 "%fOUTPUT%"
Code:"%ffmpegEXE%" -y -i "%fINPUT%" -c:v h264 -preset fast -flags +ildct+ilme -ildctcmp satd -top 1 -profile:v high -level 3.2 -crf 20 -coder 0 -c:a libvo_aacenc -ab %audiobitrate% -ar %audiofreq% -ac 2 "%fOUTPUT%"
-
for future reference, a script is show in in this post, which also tinkers with volume and DRC:
https://forum.videohelp.com/threads/352067-normalizing-audio-volume-using-new-ffmpeg-op...=1#post2209714
Similar Threads
-
Samsung Galaxy Gio: E Book?
By Tom Saurus in forum Off topicReplies: 9Last Post: 16th Aug 2012, 03:10 -
About Samsung Galaxy 4.0 Player
By shans in forum Portable VideoReplies: 0Last Post: 4th Apr 2012, 01:39 -
Wi-Fi Problems With Samsung S2 Galaxy
By Nitro89 in forum Newbie / General discussionsReplies: 0Last Post: 24th Aug 2011, 05:35 -
Importing Video from Samsung Galaxy S
By kepadams in forum Off topicReplies: 1Last Post: 6th Feb 2011, 18:06 -
commandline ffmpeg & x264 settings for Ipod 5.5
By halsboss in forum Video ConversionReplies: 4Last Post: 8th May 2008, 22:10