Hi.
I have a bizarre problem with the video that I downloaded.
The video was supposed to be in 1080p (1920x1080) but it's not.
The first few seconds are in 640x360 and then the resolution changes to 1920x1080.
How is that even possible?
Is there a way to fix it without re-encoding?
MediaInfo shows two values:
Width : 640 pixels
Original width : 1 920 pixels
Height : 360 pixels
Original height : 1 080 pixels
I have attached a sample.
Full video:
Code:https://1fichier.com/?jm7tlzmxkm1bnd98i4yj
+ Reply to Thread
Results 1 to 16 of 16
-
Last edited by m0ck; 16th Jun 2022 at 06:42.
-
Container headers indicate 640x360 while the stream headers signal 1920x1080 remuxing
try:Code:ffmpeg -i "Path to video.mp4" -c copy "path to output.mp4"
The first few seconds are in 640x360 and then the resolution changes to 1920x1080.
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini -
Remuxing did get rid of the extra header here,....
users currently on my ignore list: deadrats, Stears555, marcorocchini -
How come it doesn't work for me? Can you send me a remuxed sample MP4 to check?
-
There's definitely something odd at 9.5sec. My NLE wouldn't display any video after 9.5sec, and when I re-encoded it, it paused at 9.5sec for a bit then continued on, but produced black after that 9.5sec point. VDub also stopped then, saying "Frame Format Incompatible". VideoRedo couldn't do anything with it.
Last edited by Alwyn; 16th Jun 2022 at 05:54.
-
Yeah, there's something wrong with the stream headers too. (Mediainfo only reports the first headers it finds)
extracting the raw stream using:
Code:MP4Box -raw 1 "C:\Users\Selur\Desktop\video.mp4" -out "E:\Output\remux_2022-06-16@12_51_50_9010_02.264"
Code:General Count : 331 Count of stream of this kind : 1 Kind of stream : General Kind of stream : General Stream identifier : 0 Count of video streams : 1 Video_Format_List : AVC Video_Format_WithHint_List : AVC Codecs Video : AVC Complete name : e:\Output\remux_2022-06-16@12_51_50_9010_02.264 Folder name : e:\Output File name extension : remux_2022-06-16@12_51_50_9010_02.264 File name : remux_2022-06-16@12_51_50_9010_02 File extension : 264 Format : AVC Format : AVC Format/Info : Advanced Video Codec Format/Url : http://developers.videolan.org/x264.html Format/Extensions usually used : avc h264 264 Commercial name : AVC Internet media type : video/H264 File size : 30095490 File size : 28.7 MiB File size : 29 MiB File size : 29 MiB File size : 28.7 MiB File size : 28.70 MiB File creation date : UTC 2022-06-16 10:51:53.726 File creation date (local) : 2022-06-16 12:51:53.726 File last modification date : UTC 2022-06-16 10:51:53.803 File last modification date (local) : 2022-06-16 12:51:53.803 Writing library : x264 - core 152 r2854 e9a5903 Writing library : x264 core 152 r2854 e9a5903 Encoded_Library_Name : x264 Encoded_Library_Version : core 152 r2854 e9a5903 Encoding settings : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=9 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=11 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=2 / keyint=120 / keyint_min=12 / scenecut=0 / intra_refresh=0 / rc_lookahead=40 / rc=cbr / mbtree=1 / bitrate=419 / ratetol=1.0 / qcomp=0.60 / qpmin=3 / qpmax=51 / qpstep=8 / vbv_maxrate=419 / vbv_bufsize=1679 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00 Video Count : 381 Count of stream of this kind : 1 Kind of stream : Video Kind of stream : Video Stream identifier : 0 Format : AVC Format : AVC Format/Info : Advanced Video Codec Format/Url : http://developers.videolan.org/x264.html Commercial name : AVC Format profile : High@L4 Format settings : CABAC / 4 Ref Frames Format settings, CABAC : Yes Format settings, CABAC : Yes Format settings, Reference frames : 4 Format settings, Reference frames : 4 frames Format settings, GOP : M=1, N=120 Internet media type : video/H264 Bit rate : 419000 Bit rate : 419 kb/s Width : 1920 Width : 1 920 pixels Height : 1080 Height : 1 080 pixels
Code:[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent Track Importing MPEG-4 AVC - Width 640 Height 360 FPS 25/1 SAR 1/1 AVC|H264 Import results: 2040 samples (4115 NALUs) - Slices: 17 I 2023 P 0 B - 1 SEI - 17 IDR - 0 CRA The given code is not a valid one: , using 'und' as 3-letter code
users currently on my ignore list: deadrats, Stears555, marcorocchini -
Code:
MP4box -info c:\Users\Selur\Desktop\video.mp4
Code:[isom/avcc] Missing REXT profile signaling, patching. # Movie Info - 2 tracks - TimeScale 1000 Duration 00:01:21.607 Fragmented: no Progressive (moov before mdat) Major Brand isom - version 512 - compatible brands: isom iso2 avc1 mp41 Created: UNKNOWN DATE iTunes Info: tool: Lavf58.29.100 # Track 1 Info - ID 1 - TimeScale 25000 Media Duration 00:01:21.600 Track has 1 edits: track duration is 00:01:21.600 Track flags: Enabled In Movie Media Info: Language "Undetermined (und)" - Type "vide:avc1" - 2040 samples Visual Sample Entry Info: width=640 height=360 (depth=24 bits) Visual Track layout: x=0 y=0 width=640 height=360 AVC/H264 Video - Visual Size 640 x 360 AVC Info: 1 SPS - 1 PPS - Profile High @ Level 3 NAL Unit length bits: 32 Pixel Aspect Ratio 1:1 - Indicated track size 640 x 360 Chroma format YUV 4:2:0 - Luma bit depth 8 - chroma bit depth 8 SPS#1 hash: 7B6CBBB863D2FBD4100E1C5746087B4B67BDC986 PPS#1 hash: 7C8F8169BC70DC403DDC9FA6573C73BD57BAD9B5 RFC6381 Codec Parameters: avc1.64001E Average GOP length: 127 samples Max sample duration: 1000 / 25000 # Track 2 Info - ID 2 - TimeScale 44100 Media Duration 00:01:21.606 Track has 1 edits: track duration is 00:01:21.607 Track flags: Enabled In Movie Media Info: Language "Undetermined (und)" - Type "soun:mp4a" - 3515 samples Alternate Group ID 1 MPEG-4 Audio AAC LC (AOT=2 implicit) - 2 Channel(s) - SampleRate 44100 RFC6381 Codec Parameters: mp4a.40.2 All samples are sync Max sample duration: 1024 / 44100
yup, using:
Code:ffplay -v debug "path to file"
Code:[h264 @ 000002111ea695c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2 [ffplay_buffer @ 000002111f4200c0] Setting 'video_size' to value '640x360' [ffplay_buffer @ 000002111f4200c0] Setting 'pix_fmt' to value '0' [ffplay_buffer @ 000002111f4200c0] Setting 'time_base' to value '1/25000' [ffplay_buffer @ 000002111f4200c0] Setting 'pixel_aspect' to value '1/1' [ffplay_buffer @ 000002111f4200c0] Setting 'frame_rate' to value '25/1' [ffplay_buffer @ 000002111f4200c0] w:640 h:360 pixfmt:yuv420p tb:1/25000 fr:25/1 sar:1/1
Code:[h264 @ 000002111ea68600] nal_unit_type: 9(AUD), nal_ref_idc: 0/0 [h264 @ 000002111ea68600] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2 [h264 @ 000002111ea695c0] nal_unit_type: 9(AUD), nal_ref_idc: 0/0 [h264 @ 000002111ea695c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2 [h264 @ 000002111ea6fe40] nal_unit_type: 9(AUD), nal_ref_idc: 0/0 [h264 @ 000002111ea6fe40] nal_unit_type: 7(SPS), nal_ref_idc: 3 [h264 @ 000002111ea6fe40] nal_unit_type: 8(PPS), nal_ref_idc: 3 [h264 @ 000002111ea6fe40] nal_unit_type: 5(IDR), nal_ref_idc: 3 [h264 @ 000002111ea6fe40] Format yuv420p chosen by get_format(). [h264 @ 000002111ea6fe40] Reinit context to 1920x1088, pix_fmt: yuv420p [h264 @ 000002111e98cd00] nal_unit_type: 9(AUD), nal_ref_idc: 0/0 [h264 @ 000002111e98cd00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
Last edited by Selur; 16th Jun 2022 at 06:33.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
So basically the video is corrupted and cannot be fixed?
Here is full video if it helps.
Code:https://1fichier.com/?jm7tlzmxkm1bnd98i4yj
-
The owner of this file has chosen to protect access with a password.
Please enter it belowusers currently on my ignore list: deadrats, Stears555, marcorocchini -
works now
users currently on my ignore list: deadrats, Stears555, marcorocchini -
try a 2step method:
Code:ffmpeg -ss 10 -i "PATH TO video.mp4" -c copy -bsf:v h264_mp4toannexb "path to intermediate.mp4" ffmpeg -i "path to intermediate.mp4" -c copy -bsf:v h264_mp4toannexb "path to output.mp4"
Code:Width : 1920 Width : 1 920 pixels Height : 1080 Height : 1 080 pixels Stored_Height : 1088 Sampled_Width : 1920 Sampled_Height : 1080 Pixel aspect ratio : 1.000 Display aspect ratio : 1.778 Display aspect ratio : 16:9
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini -
Well, it works. But the video is missing 10 sec from the beginning and that's something I can't accept, unfortunately.
Anyways, thx so much for trying to help and figure out the solution. I appreciate it. -
Combine the first bit and the last bit. First bit attached.
-
This is common with streaming downloads. The video starts streaming at a low resolution/bitrate then speeds up and switches to HD when it sees there's sufficient bandwidth available. The best way to fix this to go back to the original streaming source and force it to start with HD when you capture. If you can't do that just trim away the first part of the video. It's just a studio logo.
Similar Threads
-
Vegas Pro 19 changing resolution
By magnu in forum EditingReplies: 5Last Post: 8th Nov 2021, 16:24 -
Aspect Ratio Changing but resolution isn't
By bradwiggo in forum Video ConversionReplies: 3Last Post: 6th Mar 2021, 09:13 -
Video wall resolution problem
By lanca57 in forum DVB / IPTVReplies: 2Last Post: 1st Feb 2020, 13:10 -
XMedia Recode Changing resolution
By hibbs in forum Newbie / General discussionsReplies: 1Last Post: 8th Apr 2018, 23:06 -
change the very low resolution of video to high resolution
By idi0t in forum Newbie / General discussionsReplies: 22Last Post: 1st Jul 2017, 09:51