Log in

View Full Version : Unable to navigate video in MPlayer after remuxing to wmv with ffmpeg


300watt
24th April 2013, 22:01
If I play the remuxed video and try to step forward or back by 10 seconds with the arrow keys in MPlayer, it doesn't work. In VLC steps forward work, but not back. The original .avi files work fine. I remuxed them with:

ffmpeg -f concat -i file.txt -c copy -ss 01:11:57 -t 0:33:03 -f asf out.wmv

Some navigational info must be missing in the stream, any idea what exactly? How does one fix this?

poisondeathray
24th April 2013, 23:10
If I play the remuxed video and try to step forward or back by 10 seconds with the arrow keys in MPlayer, it doesn't work. In VLC steps forward work, but not back. The original .avi files work fine. I remuxed them with:

ffmpeg -f concat -i file.txt -c copy -ss 01:11:57 -t 0:33:03 -f asf out.wmv

Some navigational info must be missing in the stream, any idea what exactly? How does one fix this?



"original avi files"?? Were they wmv3 in avi ? or something else ?

you can try running it through asfbin

300watt
24th April 2013, 23:54
I'm just trying to remux the container to asf, without touching the encoding, which is what the -c copy option should do, and it seems that the streams within remained unchanged (I did split it though):

source:
Input #0, avi, from '1.avi':
Metadata:
encoder : Nandub v1.0rc2
Duration: 01:23:51.73, start: 0.000000, bitrate: 1157 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 512x384 [SAR 1:1 DAR 4:3], 29.97 tbr, 29.97 tbn, 29.98 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 157 kb/s

out:

Input #0, asf, from 'out.wmv':
Metadata:
encoder : Lavf55.0.100
Duration: 00:33:03.42, start: 0.000000, bitrate: 1180 kb/s
Stream #0:0: Video: mpeg4 (XVID / 0x44495658), yuv420p, 512x384, 29.97 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 157 kb/s

I should try asfbin. I guess I will have to demux the audio/video with ffmpeg first and then mux the streams with asfbin.

poisondeathray
25th April 2013, 00:28
I'm just trying to remux the container to asf, without touching the encodin

xvid in asf container ? Why ? Just curious ...

300watt
25th April 2013, 01:06
xvid in asf container ? Why ? Just curious ...

asf/mp4 are my standard container formats on the PC, and I'm also a quality-loss perfectionist so I try to never re-encode.

I believe ffmpeg refused to put the xvid into mp4 when i tried.

poisondeathray
25th April 2013, 06:11
What's wrong with AVI on a PC ? Especially for xvid ? I never knew asf could even hold xvid

You might try concatenating as AVI , check navigation behaviour . If still bad, try to "fix" with divfix or "rederive keyframes" in vdub . Then try to mux into asf

If navigation was fine as AVI, but poor as asf, there are some advanced options in asfbin that might help, maybe forcing index (not sure what it does exactly)

300watt
25th April 2013, 11:30
AVI is lacking extended properties in windows (like genre, publisher, director, mood etc) which I need for organizing my files. I'd be using .mkv only pretty much If I could somehow get these extended windows properties for it.

Gonna check navigation in avi.

nixo
25th April 2013, 12:56
I believe ffmpeg refused to put the xvid into mp4 when i tried.

Mp4box usually works fine for ASP+MP3.

--
Nikolaj

fvisagie
26th April 2013, 10:04
I believe ffmpeg refused to put the xvid into mp4 when i tried.
Mp4box usually works fine for ASP+MP3.


That should also work with ffmpeg. With my somewhat dated build:
ffmpeg -i test.avi -c:v copy -c:a copy test.mp4

Input #0, avi, from 'test.avi':
Metadata:
encoder : Lavf54.22.104
Duration: 00:03:59.78, start: 0.000000, bitrate: 881 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 128 kb/s
Output #0, mp4, to 'test.mp4':
Metadata:
encoder : Lavf54.22.104
Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 tbn, 25 tbc
Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 48000 Hz, stereo, 128 kb/s

Cheers,
Francois