Music Fan
11th May 2022, 08:58
Hi,
I recorded a streaming in flv a while ago and the video resolution changed during the streaming.
I achieved to split the file to get 2 files, each with its own resolution, using this method (ffprobe then ffmpeg) ;
https://superuser.com/questions/1298954/how-to-split-video-files-upon-detected-change-in-resolution-ie-recorded-strea
I kept the flv container but I can change it if needed.
The problem is that the second file has the same header than the first and I'd like to correct it to make it recognizable by all players.
I can though play it with MPC-HC which opens it directly at its actual resolution, as if header was ignored, but VLC can't : it opens the file at the size of original's header resolution and displays a green image.
MediaInfo does not detect its actual resolution either.
Can ffmpeg correct it ?
Here are informations about metadata but I don't see how to change resolution ;
https://ffmpeg.org/ffmpeg-bitstream-filters.html#h264_005fmetadata
I tried the option -aspect (on the second flv) but it only added informations in the header about resolution in MediaInfo (thus there is resolution plus original resolution). It didn't make it more playable by VLC.
If I demux the second file in .h264 with ffmpeg, MediaInfo still detects only the original resolution.
I also tried My MP4Box GUI but it seems that only framerate can be modified, not resolution.
Thanks for suggestions ;)
I recorded a streaming in flv a while ago and the video resolution changed during the streaming.
I achieved to split the file to get 2 files, each with its own resolution, using this method (ffprobe then ffmpeg) ;
https://superuser.com/questions/1298954/how-to-split-video-files-upon-detected-change-in-resolution-ie-recorded-strea
I kept the flv container but I can change it if needed.
The problem is that the second file has the same header than the first and I'd like to correct it to make it recognizable by all players.
I can though play it with MPC-HC which opens it directly at its actual resolution, as if header was ignored, but VLC can't : it opens the file at the size of original's header resolution and displays a green image.
MediaInfo does not detect its actual resolution either.
Can ffmpeg correct it ?
Here are informations about metadata but I don't see how to change resolution ;
https://ffmpeg.org/ffmpeg-bitstream-filters.html#h264_005fmetadata
I tried the option -aspect (on the second flv) but it only added informations in the header about resolution in MediaInfo (thus there is resolution plus original resolution). It didn't make it more playable by VLC.
If I demux the second file in .h264 with ffmpeg, MediaInfo still detects only the original resolution.
I also tried My MP4Box GUI but it seems that only framerate can be modified, not resolution.
Thanks for suggestions ;)