I'm trying to convert a Xvid video to MP4 using handbrake, but it only coverts roughly half of the video then stops, and the only video player that will play the video to which I have installed is, if you heard of it PotPlayer.
If handbrake is unsuccessfully and usually handbrake converts almost anything I throw at it successfully, what alternative is there ?
+ Reply to Thread
Results 1 to 12 of 12
-
-
Format : AVI
Format/Info : Audio Video Interleave
File size : 1.42 GiB
Duration : 1h 47mn
Overall bit rate : 1 891 Kbps
Writing library : VirtualDub build 32593/release
Video
ID : 0
Format : MPEG-4 Visual
Format profile : Advanced Simple@L5
Format settings, BVOP : 2
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Muxing mode : Packed bitstream
Codec ID : XVID
Codec ID/Hint : XviD
Duration : 1h 47mn
Source duration : 1h 36mn
Bit rate : 1 434 Kbps
Width : 720 pixels
Height : 304 pixels
Display aspect ratio : 2.35:1
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.262
Stream size : 992 MiB (68%)
Writing library : XviD 66
Audio
ID : 1
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : 2000
Duration : 1h 47mn
Source duration : 1h 36mn
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Frame rate : 31.250 fps (1536 spf)
Compression mode : Lossy
Stream size : 310 MiB (21%)
Alignment : Aligned on interleaves
Interleave, duration : 40 ms (1.00 video frame)
Interleave, preload duration : 512 ms -
Here's a script
If you want your video to be maximum compressed with a constant factor of 18 (slow, but Best options based on trade off between time and quality)
ffmpeg -i "Your video.avi" -crf 20 -bf 5 -refs 9 -me_method umh -me_range 24 -subq 9 -trellis 2 -x264-params b-adapt=2 -ac 2 -acodec libvo_aacenc -ab 192k "Output Video.mp4"
A bit more faster but a few MB more in size
ffmpeg -i "Your video.avi" -crf 20 -bf 5 -refs 9 -me_method umh -me_range 24 -subq 9 -ac 2 -acodec libvo_aacenc -ab 192k "Output Video.mp4"
Or if you want it to happen faster (using a preset, "faster")
ffmpeg -i "Your video.avi" -crf 20 -preset faster -ac 2 -acodec libvo_aacenc -ab 192k "Output Video.mp4"
If you don't like the quality you can reduce the CRF value from 20 to something less to increase the quality, like 18 or something.
Both the above converts it but the output file size can't be predicted (will be much less than the original that's sure), If you want a fix on file size then you would need to do a bitrate based encoding. But I think these are enough. -
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (ac3 (native) -> aac (libvo_aacenc))
Press [q] to stop, [?] for help
[mpeg4 @ 000000de17c78040] Video uses a non-standard and wasteful way to store B-frames ('packed B-frames'). Consider using the mpeg4_unpack_bframes bitstream filter without encoding but stream copy to fix it.
frame= 115 fps=0.0 q=25.0 size= 60kB time=00:00:05.21 bitrate= 94.0kbits/frame= 238 fps=238 q=25.0 size= 202kB time=00:00:10.16 bitrate= 162.4kbits/[mpeg4 @ 000000de17c78040] ac-tex damaged at 18 6
[mpeg4 @ 000000de17c78040] Error at MB: 294
[mpeg4 @ 000000de17c78040] marker does not match f_code
Last message repeated 6016 times -
[mpeg4 @ 000000de17c7dce0] ac-tex damaged at 29 4
[mpeg4 @ 000000de17c7dce0] Error at MB: 213
[mpeg4 @ 000000de17c7dce0] marker does not match f_code -
frame= 886 fps= 12 q=25.0 size= 2999kB time=00:00:36.08 bitrate= 680.9kbits/frame= 932 fps= 12 q=25.0 size= 3050kB time=00:00:37.91 bitrate= 659.0kbits/frame= 949 fps= 12 q=25.0 size= 3137kB time=00:00:38.58 bitrate= 666.1kbits/frame= 961 fps= 12 q=25.0 size= 3225kB time=00:00:39.07 bitrate= 676.1kbits/frame= 974 fps= 12 q=25.0 size= 3309kB time=00:00:39.60 bitrate= 684.4kbits/frame= 984 fps= 13 q=25.0 size= 3351kB time=00:00:39.98 bitrate= 686.6kbits/frame= 999 fps= 13 q=25.0 size= 3419kB time=00:00:40.60 bitrate= 689.7kbits/frame= 1014 fps= 13 q=25.0 size= 3496kB time=00:00:41.20 bitrate= 695.1kbits/frame= 1031 fps= 13 q=25.0 size= 3565kB time=00:00:41.88 bitrate= 697.3kbits/frame= 1047 fps= 13 q=25.0 size= 3636kB time=00:00:42.52 bitrate= 700.5kbits/frame= 1068 fps= 13 q=25.0 size= 3703kB time=00:00:43.35 bitrate= 699.6kbits/frame= 1098 fps= 13 q=25.0 size= 3760kB time=00:00:44.53 bitrate= 691.7kbits/frame= 1133 fps= 14 q=25.0 size= 3817kB time=00:00:45.94 bitrate= 680.7kbits/frame= 1194 fps= 14 q=25.0 size= 3907kB time=00:00:48.41 bitrate= 661.1kbits/[mpeg4 @ 000000de17c7dce0] ac-tex damaged at 22 8
[mpeg4 @ 000000de17c7dce0] Error at MB: 390
[mpeg4 @ 000000de17c7dce0] marker does not match f_code -
Seems to be a corrupt streams, can you try repacking the video into a mkv file?
ffmpeg -i "yourvideo.avi" -c copy "YourVideo.mkv" (It's very fast and takes usually seconds, so don't worry)
And then try one of the above commands.
Where did you get this video from? Is it by a torrent? Then certainly the video haven't finished downloading yet. -
Thanks for your help, I found another version of the video file I was able to play.
-
Similar Threads
-
Weird artifacts when converting from MKV to MP4 in Handbrake/Mediacoder
By fighuass in forum Video ConversionReplies: 4Last Post: 1st Apr 2015, 00:01 -
Converting from MP4-AVC to AVI-MP4(xvid)
By GruntVidStar in forum Video ConversionReplies: 24Last Post: 23rd Apr 2014, 15:34 -
Converting AVI to MP4 w/ Handbrake Results in "Cannot Render File"!
By Baasha in forum Video ConversionReplies: 1Last Post: 12th Oct 2013, 17:17 -
Converting DVD to x264 mp4 with Handbrake: how to preserve 5.1 audio?
By Radio Radio in forum Newbie / General discussionsReplies: 21Last Post: 5th May 2013, 18:50 -
Confused about handbrake picture settings (for converting VOB --> MP4)
By VideoThat in forum DVD RippingReplies: 7Last Post: 4th May 2012, 12:11