Use MediaInfo ---> http://mediainfo.sourceforge.net/enHow can I find out what codec is used in this mp4 file?
HiNow how do I identify the codec that is not working right on my linux machine?
Code: Select all
General
Complete name : C:\m\titanictest.mp4
Format : AVI
Format/Info : Audio Video Interleave
File size : 3.26 MiB
Duration : 20s 360ms
Overall bit rate : 1 345 Kbps
Video
ID : 0
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : H264
Duration : 20s 360ms
Bit rate : 1 267 Kbps
Nominal bit rate : 1 545 Kbps
Width : 1 920 pixels
Height : 836 pixels
Display aspect ratio : 2.25:1
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.032
Stream size : 3.08 MiB (94%)
Writing library : x264 core 120 r2164 da19765
Encoding settings : cabac=1 / ref=5 / deblock=1:-2:-1 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=1545 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Code: Select all
General
Complete name : C:\m\Barbie in a Mermaid Tale 2 2012 DVDRip Srkfan Silver RG\Barbie in a Mermaid Tale 2 2012 DVDRip Srkfan Silver RG.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 210 MiB
Duration : 1h 12mn
Overall bit rate mode : Variable
Overall bit rate : 402 Kbps
Encoded date : UTC 2012-03-09 10:01:19
Tagged date : UTC 2012-03-09 10:01:19
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 12mn
Bit rate : 369 Kbps
Maximum bit rate : 1 065 Kbps
Width : 720 pixels
Height : 400 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.053
Stream size : 192 MiB (92%)
Title : àïo
Writing library : x264 core 120 r2164 da19765
Encoding settings : cabac=1 / ref=5 / deblock=1:-2:-1 / analyse=0x3:0x113 / me=umh / subme=5 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc=2pass / mbtree=0 / bitrate=369 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=2:1.00
Encoded date : UTC 2012-03-09 10:01:19
Tagged date : UTC 2012-03-09 10:01:26
HiThe ultimate question is what can I do to get the broken file to play on linux vlc?
Code: Select all
ffmpeg -i titanictest.mp4 -vcodec copy -acodec copy new_titanictest.mp4
This is one of the worst sample files I've ever seen.
Code: Select all
avi warning: cannot get packet header, track disabled
Code: Select all
main debug: picture might be displayed late (missing 2 ms)
main debug: picture might be displayed late (missing 7 ms)
main debug: picture might be displayed late (missing 0 ms)
Code: Select all
faad warning: Array index out of range
faad warning: Maximum number of scalefactor bands exceeded
faad warning: Scalefactor out of range
faad warning: Maximum number of bitstream elements exceeded
faad warning: Bitstream value not allowed by specification
faad warning: Unexpected channel configuration change
faad warning: Channel coupling not yet implemented
faad warning: PCE shall be the first element in a frame
faad warning: Gain control not yet implemented
Thank you!So to sum it up, this file is broken at every stage.
In the vlc preferences (just for ffmpeg and h264 I believe) there is an option how vlc treats faulty files. If you chose for your linux vlc version the same setting of the option as in the windows vlc version (and if both vlc versions are identical with same ffmpeg versions) it should work in both cases.Nevertheless, the point is that windows VLC managed to play the file whereas Linux VLC choked on the file. So windows VLC is somehow using code that is more fault tolerant, which is a very huge benefit.
VLC for Windows is showing some of the images but many are dropped. No audio is heard, at all, by any player I've tried. VLC for Windows is not playing the file, it's just running it, more or less.So windows VLC is somehow using code that is more fault tolerant, which is a very huge benefit.
Or alternatively, is there a utilty to enable me to easily repair the file? I unsuccessfully tried fixing with ffmpeg already but maybe I need to pass it special command options.
Code: Select all
General
Complete name : C:\m\titanic.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 2.09 GiB
Duration : 3h 6mn
Overall bit rate mode : Variable
Overall bit rate : 1 600 Kbps
Encoded date : UTC 2012-03-15 15:07:37
Tagged date : UTC 2012-03-15 15:07:37
Writing application : Yamb 2.1.0.0 [http://yamb.unite-video.com]
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 3h 6mn
Bit rate : 1 545 Kbps
Maximum bit rate : 8 131 Kbps
Width : 1 920 pixels
Height : 836 pixels
Display aspect ratio : 2.25:1
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.039
Stream size : 2.00 GiB (96%)
Writing library : x264 core 120 r2164 da19765
Encoding settings : cabac=1 / ref=5 / deblock=1:-2:-1 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=1545 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2012-03-15 17:35:10
Tagged date : UTC 2012-03-15 15:10:45
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Codec ID : 40
Duration : 3h 6mn
Bit rate mode : Variable
Bit rate : 64.0 Kbps
Maximum bit rate : 74.9 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz / 24.0 KHz
Compression mode : Lossy
Stream size : 85.5 MiB (4%)
Encoded date : UTC 2012-03-15 15:09:55
Tagged date : UTC 2012-03-15 15:10:45
OK, so what we need is a sample of the original file.First of all, that file titanictest.mp4 was created by me using a program called avidemux. All I did was trim the movie so that I'd have a short sample clip.
Return to “VLC media player for Linux and friends Troubleshooting”
Users browsing this forum: No registered users and 16 guests