Evaldas
30th March 2016, 01:55
Ok, so let's get back to beating the same beaten horse.
I have a Windows Media .wmv file with wmv3 video stream inside (specs bellow) and want to remux that video stream into mp4 container. Tried lots of different things with ffmpeg 3.0, but with no success. For example with ffmpeg
ffmpeg -i original.wmv -an -vcodec copy out.mp4
I get the error message (which is uderstandable to some extent):
[mp4 @ 03655420] Could not find tag for codec wmv3 in stream #0, codec not currently supported in container
Also tried dumping raw stream as .vc1:
ffmpeg -i original.wmv -an -vcodec copy out.vc1
and upon importing ffmpeg sees the .vc1 stream as the stream with resolution 6034x4098 and doesn't accept "-video_size 720x576" option, etc.
But... since VC-1 MP/SP is the same as WMV3, is it possible somehow to just change video stream Codec ID from WMV3 to WVC1 (or VC-1)? As I said, tried different things with ffmpeg, read some half decade–decade old posts http://forum.doom9.org/showthread.php?t=160693, http://forum.doom9.org/showthread.php?t=119102, but didn't find definitive answer to this question. Maybe the tooling situation changed over this time?
P.S. Never mind if WMA2 audio is not supported in mp4 container, I could just reencode it to aac, but I don't want to touch (reencode) the video stream. Side question, WMA2 audio is definitively not supported in mp4 container?
.wmv file specs:
General
Complete name : original.wmv
Format : Windows Media
File size : 518 MiB
Duration : 1h 11mn
Overall bit rate mode : Constant
Overall bit rate : 1 018 Kbps
Maximum Overall bit rate : 1 027 Kbps
Video
ID : 2
Format : VC-1
Format profile : Main
Codec ID : WMV3
Codec ID/Info : Windows Media Video 9
Codec ID/Hint : WMV3
Description of the codec : Windows Media Video 9
Duration : 1h 11mn
Bit rate mode : Constant
Bit rate : 935 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 5:4
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.090
Stream size : 476 MiB (92%)
Audio
ID : 1
Format : WMA
Format version : Version 2
Codec ID : 161
Codec ID/Info : Windows Media Audio
Description of the codec : Windows Media Audio 9.1 - 80 kbps, 44 kHz, stereo (A/V) 1-pass CBR
Duration : 1h 11mn
Bit rate mode : Constant
Bit rate : 80.0 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Stream size : 40.7 MiB (8%)
I have a Windows Media .wmv file with wmv3 video stream inside (specs bellow) and want to remux that video stream into mp4 container. Tried lots of different things with ffmpeg 3.0, but with no success. For example with ffmpeg
ffmpeg -i original.wmv -an -vcodec copy out.mp4
I get the error message (which is uderstandable to some extent):
[mp4 @ 03655420] Could not find tag for codec wmv3 in stream #0, codec not currently supported in container
Also tried dumping raw stream as .vc1:
ffmpeg -i original.wmv -an -vcodec copy out.vc1
and upon importing ffmpeg sees the .vc1 stream as the stream with resolution 6034x4098 and doesn't accept "-video_size 720x576" option, etc.
But... since VC-1 MP/SP is the same as WMV3, is it possible somehow to just change video stream Codec ID from WMV3 to WVC1 (or VC-1)? As I said, tried different things with ffmpeg, read some half decade–decade old posts http://forum.doom9.org/showthread.php?t=160693, http://forum.doom9.org/showthread.php?t=119102, but didn't find definitive answer to this question. Maybe the tooling situation changed over this time?
P.S. Never mind if WMA2 audio is not supported in mp4 container, I could just reencode it to aac, but I don't want to touch (reencode) the video stream. Side question, WMA2 audio is definitively not supported in mp4 container?
.wmv file specs:
General
Complete name : original.wmv
Format : Windows Media
File size : 518 MiB
Duration : 1h 11mn
Overall bit rate mode : Constant
Overall bit rate : 1 018 Kbps
Maximum Overall bit rate : 1 027 Kbps
Video
ID : 2
Format : VC-1
Format profile : Main
Codec ID : WMV3
Codec ID/Info : Windows Media Video 9
Codec ID/Hint : WMV3
Description of the codec : Windows Media Video 9
Duration : 1h 11mn
Bit rate mode : Constant
Bit rate : 935 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 5:4
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.090
Stream size : 476 MiB (92%)
Audio
ID : 1
Format : WMA
Format version : Version 2
Codec ID : 161
Codec ID/Info : Windows Media Audio
Description of the codec : Windows Media Audio 9.1 - 80 kbps, 44 kHz, stereo (A/V) 1-pass CBR
Duration : 1h 11mn
Bit rate mode : Constant
Bit rate : 80.0 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Stream size : 40.7 MiB (8%)